ci(package): use commit sha

This commit is contained in:
Thomas Hobson 2021-03-14 15:47:11 +13:00
parent ca3a4c3c0b
commit 14f582eb33
No known key found for this signature in database
GPG Key ID: 9F1FD9D87950DB6F
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ jobs:
- name: Build Packages - name: Build Packages
run: | run: |
SHALIST=$(curl "https://api.github.com/repos/$GITHUB_REPOSITORY/pulls/$(jq -r '.pull_request.number' $GITHUB_EVENT_PATH)"/commits | jq '.[].sha' -r) SHALIST=$(curl "https://api.github.com/repos/$GITHUB_REPOSITORY/pulls/$(jq -r '.pull_request.number' $GITHUB_EVENT_PATH)"/commits | jq '.[].commit.tree.sha' -r)
echo "Commits: $SHALIST" echo "Commits: $SHALIST"
docker run -v "${{ github.workspace }}:/piston" docker.pkg.github.com/engineer-man/piston/repo-builder:latest --ci $SHALIST docker run -v "${{ github.workspace }}:/piston" docker.pkg.github.com/engineer-man/piston/repo-builder:latest --ci $SHALIST
ls -la packages repo ls -la packages repo