diff options
author | Austin S. Hemmelgarn <austin@netdata.cloud> | 2022-03-11 07:55:13 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-11 07:55:13 -0500 |
commit | 4def8dd30027180e35118f867159d1b7999d1112 (patch) | |
tree | adc53aca73deb11025f49bf5e5a258a4b980bef1 | |
parent | 091dd8c38f3b461b7c96f217b7db7af25b29de34 (diff) |
Fix pushing version bump commits in release/nightly build workflow. (#12372)
-rw-r--r-- | .github/workflows/release.yml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8701f99dbf..178f2f6819 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,10 +32,9 @@ jobs: with: fetch-depth: 0 submodules: recursive + token: ${{ secrets.NETDATABOT_GITHUB_TOKEN }} - name: Prepare base ref id: target - env: - GITHUB_TOKEN: ${{ secrets.NETDATABOT_GITHUB_TOKEN }} run: >- .github/scripts/prepare-release-base.sh \ ${{ github.repository }} \ @@ -72,6 +71,8 @@ jobs: - name: Commit Changes id: commit if: steps.target.outputs.run == 'true' + env: + GITHUB_TOKEN: ${{ secrets.NETDATABOT_GITHUB_TOKEN }} run: | git config user.name "netdatabot" git config user.email "bot@netdata.cloud" @@ -80,7 +81,7 @@ jobs: if [ "${{ steps.target.outputs.type }}" != "nightly" ]; then git tag ${{ github.event.inputs.version }} fi - git push https://${{ secrets.NETDATABOT_GITHUB_TOKEN }}@github.com/${{ github.repository }} ${{ steps.target.outputs.branch }} + git push --follow-tags origin ${{ steps.target.outputs.branch }} - name: Failure Notification uses: rtCamp/action-slack-notify@v2 env: |