diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d2107bb2d1..a98efd087a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -165,13 +165,16 @@ jobs: contents: write steps: - name: Configure git + env: + GITHUB_USERNAME: ${{ vars.LINKERD2_PROXY_GITHUB_USERNAME || 'github-actions[bot]' }} run: | git config --global --add safe.directory "$PWD" # actions/runner#2033 - git config --global user.name 'github-actions[bot]' - git config --global user.email 'github-actions[bot]@users.noreply.github.com' + git config --global user.name "$GITHUB_USERNAME" + git config --global user.email "$GITHUB_USERNAME"@users.noreply.github.com # Tag the release. - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 with: + token: ${{ secrets.LINKERD2_PROXY_GITHUB_TOKEN || github.token }} ref: ${{ needs.meta.outputs.ref }} - run: git tag -a -m 'v${{ needs.meta.outputs.version }}' '${{ needs.meta.outputs.tag }}' # Fetch the artifacts.