Fix pushing version bump commits in release/nightly build workflow. (#12372)
Austin S. Hemmelgarn committed
Mar 11, 2022 at 07:55 UTC
4def8dd30027180e35118f867159d1b7999d1112
1 file changed
+4
-3
.github/workflows/release.yml
+4
-3
@@ -32,10 +32,9 @@ jobs:
32
with:
33
fetch-depth: 0
34
submodules: recursive
35
+ token: ${{ secrets.NETDATABOT_GITHUB_TOKEN }}
36
- name: Prepare base ref
37
id: target
37
- env:
38
- GITHUB_TOKEN: ${{ secrets.NETDATABOT_GITHUB_TOKEN }}
38
run: >-
39
.github/scripts/prepare-release-base.sh \
40
${{ github.repository }} \
@@ -72,6 +71,8 @@ jobs:
71
- name: Commit Changes
72
id: commit
73
if: steps.target.outputs.run == 'true'
74
+ env:
75
+ GITHUB_TOKEN: ${{ secrets.NETDATABOT_GITHUB_TOKEN }}
76
run: |
77
git config user.name "netdatabot"
78
git config user.email "bot@netdata.cloud"
@@ -80,7 +81,7 @@ jobs:
81
if [ "${{ steps.target.outputs.type }}" != "nightly" ]; then
82
git tag ${{ github.event.inputs.version }}
83
fi
83
- git push https://${{ secrets.NETDATABOT_GITHUB_TOKEN }}@github.com/${{ github.repository }} ${{ steps.target.outputs.branch }}
84
+ git push --follow-tags origin ${{ steps.target.outputs.branch }}
85
- name: Failure Notification
86
uses: rtCamp/action-slack-notify@v2
87
env: