diff options
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/cargo_publish.yml | 9 | ||||
| -rw-r--r-- | .github/workflows/version_bump.yml | 7 |
2 files changed, 10 insertions, 6 deletions
diff --git a/.github/workflows/cargo_publish.yml b/.github/workflows/cargo_publish.yml index 4bb2ad686..6da233cb9 100644 --- a/.github/workflows/cargo_publish.yml +++ b/.github/workflows/cargo_publish.yml @@ -22,6 +22,7 @@ jobs: - name: Clone repository uses: actions/checkout@v2 with: + token: ${{ secrets.DENOBOT_PAT }} submodules: recursive - uses: dtolnay/rust-toolchain@stable @@ -38,9 +39,11 @@ jobs: - name: Create release tag and check forward commit to main env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # the default secrets.GITHUB_TOKEN won't trigger a workflow run + # when tagging, but it will if we provide a custom PAT + GITHUB_TOKEN: ${{ secrets.DENOBOT_PAT }} GH_WORKFLOW_ACTOR: ${{ github.actor }} run: | - git config user.email "${{ github.actor }}@users.noreply.github.com" - git config user.name "${{ github.actor }}" + git config user.email "propelml@gmail.com" + git config user.name "denobot" ./tools/release/04_post_publish.ts diff --git a/.github/workflows/version_bump.yml b/.github/workflows/version_bump.yml index caba2e014..bc8309b22 100644 --- a/.github/workflows/version_bump.yml +++ b/.github/workflows/version_bump.yml @@ -33,6 +33,7 @@ jobs: - name: Clone repository uses: actions/checkout@v2 with: + token: ${{ secrets.DENOBOT_PAT }} submodules: recursive - uses: dtolnay/rust-toolchain@stable @@ -49,9 +50,9 @@ jobs: - name: Create PR env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.DENOBOT_PAT }} GH_WORKFLOW_ACTOR: ${{ github.actor }} run: | - git config user.email "${{ github.actor }}@users.noreply.github.com" - git config user.name "${{ github.actor }}" + git config user.email "propelml@gmail.com" + git config user.name "denobot" ./tools/release/02_create_pr.ts |
