Skip to content

Commit

Permalink
ci: use a GitHub App and repository bypass rules for pushing to prote…
Browse files Browse the repository at this point in the history
…cted branch (#679)
  • Loading branch information
gr2m authored Mar 28, 2024
1 parent e783bed commit df144a4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,15 @@ jobs:
name: release
runs-on: ubuntu-latest
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.GR2M_SEMANTIC_RELEASE_ID }}
private-key: ${{ secrets.GR2M_SEMANTIC_RELEASE_PRIVATE_KEY }}
github-api-url: "https://github.acme-inc.com/api/v3"
- uses: actions/checkout@v4
with:
token: ${{ steps.app-token.outputs.token }}
- uses: actions/setup-node@v4
with:
node-version: lts/*
Expand All @@ -20,8 +28,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: |
git config user.name github-actions
git config user.email github-actions@github.com
git config user.name gr2m-semantic-release[bot]
git config user.email gr2m-semantic-release[bot]@users.noreply.github.com
git add .gitignore dist/
git commit -m "build"
- run: >-
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,6 @@ jobs:
branch: test-add-reviewers-${{ github.run_number }}
commit-message: Just testing [skip ci]
reviewers: gr2m
team_reviewers: test-reviewers
- uses: octokit/request-action@v2.x
id: get-pull-request
with:
Expand Down

0 comments on commit df144a4

Please sign in to comment.