Skip to content

Commit

Permalink
wip: uses git to determine commit hash
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgilman committed Feb 1, 2024
1 parent d513b3d commit 3641c4f
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,30 +113,22 @@ jobs:
id: sign
run: |
echo -n "${{ secrets.signing_key }}" | base64 --decode > /tmp/privkey
SIG=$(updater signing sign -k /tmp/privkey "${{ github.sha }}")
COMMIT=$(git rev-parse HEAD)
SIG=$(updater signing sign -k /tmp/privkey "$COMMIT")
rm /tmp/privkey
echo "signature=${SIG}" >> $GITHUB_OUTPUT
- name: Create PR
run: |
BODY="BEGIN-AUTO-DEPLOY-SIGNATURE:${{ steps.sign.outputs.signature }}:END-AUTO-DEPLOY-SIGNATURE"
COMMIT=$(git rev-parse HEAD)
git config --global user.email "[email protected]"
git config --global user.name "catalyst-cibot"
git add .
git commit -m "chore: auto-deploy from ${{ github.event.repository.name }}"
git push origin "auto-deploy-${{ github.sha }}"
git push origin "auto-deploy-$COMMIT"
gh pr create --title "chore: auto-deploy from ${{ github.event.repository.name }}" --body "$BODY"
env:
GITHUB_TOKEN: ${{ secrets.token }}
# - name: Commit and push
# uses: xxxxxxxxxxxxxxxxxxxxx@xx
# with:
# author_name: catalyst-cibot
# author_email:
# - name: Commit and push
# uses: EndBug/add-and-commit@v9
# with:
# author_name: catalyst-cibot
# author_email:
GITHUB_TOKEN: ${{ secrets.token }}

0 comments on commit 3641c4f

Please sign in to comment.