Skip to content

Commit cc580f2

Browse files
author
Tim Schneeberger
authored
Fix auth
1 parent f212862 commit cc580f2

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

.github/workflows/package-deb.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,9 @@ jobs:
191191
- uses: actions/checkout@v2
192192
with:
193193
repository: 'ThePBone/PPA-Repository'
194+
token: ${{ secrets.REPO_AUTH_TOKEN }}
195+
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
196+
fetch-depth: 0
194197

195198
- name: Prepare version information (1/3)
196199
uses: oprypin/find-latest-tag@v1
@@ -236,18 +239,17 @@ jobs:
236239
gpg --default-key "${EMAIL}" -abs -o - Release > Release.gpg
237240
gpg --default-key "${EMAIL}" --clearsign -o - Release > InRelease
238241
239-
- name: Commit files
240-
run: |
241-
git config --local user.email "[email protected]"
242-
git config --local user.name "Tim Schneeberger"
243-
git add .
244-
git commit -m "Update JamesDSP packages" -a
245-
246-
- name: Push changes
247-
uses: ad-m/github-push-action@master
242+
- name: Push to PPA
243+
uses: cpina/github-action-push-to-another-repository@main
244+
env:
245+
API_TOKEN_GITHUB: ${{ secrets.REPO_AUTH_TOKEN }}
248246
with:
249-
github_token: ${{ secrets.REPO_AUTH_TOKEN }}
250-
branch: master
247+
source-directory: '.'
248+
destination-github-username: 'ThePBone'
249+
destination-repository-name: 'PPA-Repository'
250+
user-email: [email protected]
251+
target-branch: master
252+
251253

252254
attach-to-release:
253255
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)