Skip to content

Commit

Permalink
build: use private app instead of public bot in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
seandstewart committed Sep 4, 2024
1 parent 6feaaf7 commit 130b549
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 16 deletions.
7 changes: 7 additions & 0 deletions .github/actions/bootstrap-environ/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@ inputs:
runs:
using: composite
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.RELEASE_BOT_APP_ID }}
private-key: ${{ secrets.RELEASE_BOT_APP_PKEY }}
- uses: actions/checkout@v4
with:
token: ${{ steps.app-token.outputs.token }}
- uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ on:
branches: ["main"]
tags: ["*"]

env:
GIT_COMMITTER_NAME: "github-actions[bot]"
GIT_COMMITTER_EMAIL: "41898282+github-actions[bot]@users.noreply.github.com"

defaults:
run:
shell: bash
Expand All @@ -31,10 +27,6 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
runner: ${{ matrix.os }}
- name: Setup Git Credentials
run: |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
- name: Update the Changelog
run: |
make changelog
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ defaults:
run:
shell: bash

env:
GIT_COMMITTER_NAME: "github-actions[bot]"
GIT_COMMITTER_EMAIL: "41898282+github-actions[bot]@users.noreply.github.com"

jobs:
create-version:
runs-on: ${{ matrix.os }}
Expand All @@ -38,10 +34,6 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
runner: ${{ matrix.os }}
- name: Setup Git Credentials
run: |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
- name: Tag New Version
run: make release-version rule=${{ inputs.level }}
- name: Push New Version
Expand Down

0 comments on commit 130b549

Please sign in to comment.