GH Actions can't push to protected branches. Let's create PRs instead.

This commit is contained in:
Pedro Algarvio 2020-10-21 13:35:06 +01:00
parent abdcbb9844
commit e208275fea
No known key found for this signature in database
GPG key ID: BB36BF6584A298FF

View file

@ -28,10 +28,12 @@ jobs:
run: |
echo ${{ env.SH }} > bootstrap-salt.sh.sha256
echo ${{ env.PS1 }} > bootstrap-salt.ps1.sha256
git config --global user.name 'SaltStack GH Automation'
git config --global user.email 'actions@github.com'
git add *.sha256
git commit -am "Update sha256 checksums" && git push || true
- name: Create Pull Request Against Master
uses: peter-evans/create-pull-request@v3
with:
commit-message: Update sha256 checksums
delete-branch: true
- uses: actions/checkout@v2
if: github.repository == 'saltstack/salt-bootstrap'
@ -48,6 +50,9 @@ jobs:
if: github.repository == 'saltstack/salt-bootstrap'
run: |
python3 .github/workflows/scripts/update-release-shasum.py ${{ env.BS_VERSION }} ${{ env.SH }}
git config --global user.name 'SaltStack GH Automation'
git config --global user.email 'actions@github.com'
git commit -am "Update README.rst with latest release sha256sum" && git push || true
- name: Create Pull Request Against Develop
uses: peter-evans/create-pull-request@v3
with:
commit-message: Update README.rst with latest release sha256sum
delete-branch: true