ci(package): get all commits

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

View File

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