@@ -126,14 +126,16 @@ jobs:
126126 - name : Push the changes
127127 if : ${{ steps.info.outputs.prev_pkgver }} != ${{ steps.info.outputs.tag }}
128128 run : |
129- trap 'rm -f ./ssh-key' EXIT && echo "$AUR_PRIVATE_KEY" > ./ssh-key && chmod 0600 ./ssh-key
130- ssh='ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i ../ssh-key'
129+ cd aur-repo
130+ git config user.name Cimbali
131+ git config user.email [email protected] 132+ echo -e "protocol=https\nhost=github.com\nusername=Cimbali\npassword=$PASSWORD" | git credential-store store
131133
132- git -C aur-repo -c user.name=Cimbali -c user.email="[email protected] " commit -am "Update to v${{ steps.info.outputs.tag }}" 133- git -C aur-repo -c core.sshCommand="$ssh" push [email protected] :Cimbali/pympress-pkgbuild.git "master:master " 134+ git commit -am "Update to v${{ steps.info.outputs.tag }}"
135+ git push origin "main:main "
134136
135137 env :
136- AUR_PRIVATE_KEY : ${{ secrets.AUR_PRIVATE_KEY }}
138+ AUR_PRIVATE_KEY : ${{ secrets.PYMPRESS_ACTION_PAT }}
137139
138140
139141 copr :
@@ -164,7 +166,7 @@ jobs:
164166 bash
165167 env :
166168 tag : ${{ steps.info.outputs.tag }}
167- GITHUB_TOKEN : ${{ secrets.GITHUB_PERSONAL_ACCESS_TOKEN }}
169+ GITHUB_TOKEN : ${{ secrets.PYMPRESS_ACTION_PAT }}
168170 run : |
169171 curl -s -u "Cimbali:$GITHUB_TOKEN" -H "X-GitHub-Api-Version: 2022-11-28" -H "Accept: application/vnd.github+json" \
170172 "https://api.github.com/repos/Cimbali/pympress/releases" -o - |
@@ -240,7 +242,7 @@ jobs:
240242 git checkout master
241243 git push gh -f master:master
242244 env :
243- PASSWORD : ${{ secrets.GITHUB_HOMEBREW_TOKEN }}
245+ PASSWORD : ${{ secrets.PYMPRESS_ACTION_PAT }}
244246
245247 - name : Make a brew PR from pypi’s metadata
246248 if : ${{ needs.pypi.outputs.release == 'final' }}
0 commit comments