Files
slsa-verifier/.github/workflows/pre-submit.references.yml
Mend Renovate ed7976a0d4 chore(deps): update github-actions (#529)
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-24 14:36:38 +00:00

30 lines
921 B
YAML

name: References pre submits
on:
pull_request:
types: [opened, edited, reopened, synchronize]
permissions: read-all
jobs:
check-docs:
runs-on: ubuntu-latest
if: ${{ contains(github.event.pull_request.body, '#label:release') }}
env:
BODY: ${{ github.event.pull_request.body }}
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
- name: Check documentation is up-to-date
run: |
RELEASE_TAG=$(:
echo "$BODY" |
grep -oE '^[[:blank:]]*#label:release[[:blank:]]+v?[0-9]+\.[0-9]+\.[0-9]+' |
sed -E 's/.*([0-9]+\.[0-9]+\.[0-9])/\1/'
)
if [[ -z "$RELEASE_TAG" ]]; then
echo 'Invalid release PR body. Must include `#label:release vX.Y.Z`'
exit 1
fi
RELEASE_TAG="${RELEASE_TAG}" ./.github/workflows/scripts/pre-release/references.sh