mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
name: Checksums
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- stable
|
|
|
|
jobs:
|
|
checksums:
|
|
name: Update Scripts Checksums
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
if: github.repository == 'saltstack/salt-bootstrap'
|
|
with:
|
|
ref: stable
|
|
|
|
- name: Get bootstrap-salt.sh sha256sum
|
|
if: github.repository == 'saltstack/salt-bootstrap'
|
|
run: |
|
|
echo "SH=$(sha256sum bootstrap-salt.sh | awk '{ print $1 }')" >> $GITHUB_ENV
|
|
echo "PS1=$(sha256sum bootstrap-salt.ps1 | awk '{ print $1 }')" >> $GITHUB_ENV
|
|
echo "BS_VERSION=$(sh bootstrap-salt.sh -v | awk '{ print $4 }')" >> $GITHUB_ENV
|
|
|
|
- name: Update Checksums
|
|
if: github.repository == 'saltstack/salt-bootstrap'
|
|
run: |
|
|
echo ${{ env.SH }} > bootstrap-salt.sh.sha256
|
|
echo ${{ env.PS1 }} > bootstrap-salt.ps1.sha256
|
|
|
|
- name: Create Pull Request Against Master
|
|
uses: peter-evans/create-pull-request@v3
|
|
with:
|
|
commit-message: Update sha256 checksums
|
|
delete-branch: true
|