Skip to content

Bump snowflake to version to 5.0.1 #986

Bump snowflake to version to 5.0.1

Bump snowflake to version to 5.0.1 #986

name: release-hash-check
on:
pull_request:
branches:
- master
paths:
- .in-toto/*.link
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- id: files
run: |
git fetch origin master
LAST_COMMON_COMMIT=$(git merge-base HEAD origin/master)
FILES=$(git --no-pager diff --name-only $LAST_COMMON_COMMIT -- .in-toto | xargs echo)
echo "::set-output name=all::$FILES"
- id: merge
name: Merge branch into latest master
env:
HEAD_BRANCH: ${{ github.head_ref }}
run: |
git fetch origin $HEAD_BRANCH
git checkout origin/master
git config user.name "release-hash-check"
git config user.email "<>"
git merge --no-commit --no-edit origin/$HEAD_BRANCH
- run: python .github/workflows/release-hash-check.py ${{ steps.files.outputs.all }}