Skip to content

Commit

Permalink
ci: Use hugrbot in automation (#360)
Browse files Browse the repository at this point in the history
Uses @hugrbot's token in CI, so messages and tokens are created with its
username.
  • Loading branch information
aborgna-q authored May 24, 2024
1 parent d6d0f09 commit 847bca3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/pr-title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ jobs:
It looks like your proposed title indicates a breaking change. If that's the case,
please make sure to include a "BREAKING CHANGE:" footer in the body of the pull request
describing the breaking change and any migration instructions.
GITHUB_TOKEN: ${{ secrets.HUGRBOT_PAT }}
- name: Fail if the footer is required but missing
if: ${{ steps.breaking.outputs.breaking == 'true' && steps.breaking.outputs.has_breaking_footer == 'false' }}
run: exit 1
Expand Down Expand Up @@ -150,6 +151,8 @@ jobs:
```
${{ steps.lint_pr_title.outputs.error_message }}
```
GITHUB_TOKEN: ${{ secrets.HUGRBOT_PAT }}


# Delete previous comments when the issues have been resolved
# This step doesn't run if any of the previous checks fails.
Expand All @@ -158,3 +161,4 @@ jobs:
with:
header: pr-title-lint-error
delete: true
GITHUB_TOKEN: ${{ secrets.HUGRBOT_PAT }}
2 changes: 1 addition & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ jobs:
- uses: googleapis/release-please-action@v4
with:
# Using a personal access token so releases created by this workflow can trigger the deployment workflow
token: ${{ secrets.RELEASE_PLEASE_PAT }}
token: ${{ secrets.HUGRBOT_PAT }}
config-file: release-please-config.json
2 changes: 1 addition & 1 deletion .github/workflows/release-plz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ jobs:
- name: Run release-plz
uses: MarcoIeni/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.HUGRBOT_PAT }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 comments on commit 847bca3

Please sign in to comment.