mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
GH Actions can't push to protected branches. Let's create PRs instead.
This commit is contained in:
parent
abdcbb9844
commit
e208275fea
1 changed files with 12 additions and 7 deletions
19
.github/workflows/checksums.yml
vendored
19
.github/workflows/checksums.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue