File tree Expand file tree Collapse file tree 1 file changed +8
-12
lines changed
Expand file tree Collapse file tree 1 file changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -40,20 +40,16 @@ jobs:
4040 git config --global user.name "Application Collection Bot"
4141 git config --global user.email "[email protected] " 4242
43- - name : Import GPG key
44- id : import_gpg
45- uses : crazy-max/ghaction-import-gpg@v2
46- with :
47- git_user_signingkey : true
48- git_commit_gpgsign : true
49- env :
50- GPG_PRIVATE_KEY : ${{ env.PRIVATE_KEY }}
51-
5243 - name : Generate empty commit
5344 id : generate-images
5445 env :
5546 GH_TOKEN : ${{ steps.create-token.outputs.token }}
5647 run : |
57- gh auth setup-git
58- git commit --allow-empty -m "Signed commit test"
59- git push origin gh-app-tests
48+ export SHA=$( git rev-parse gh-app-tests:. )
49+ export CONTENT=$( base64 -i . )
50+ gh api --method PUT /repos/:owner/:repo/contents/. \
51+ --field message="Signed commit test" \
52+ --field content="$CONTENT" \
53+ --field encoding="base64" \
54+ --field branch="gh-app-tests" \
55+ --field sha="$SHA"
You can’t perform that action at this time.
0 commit comments