Skip to content

Commit c8375a4

Browse files
committed
citation wf
1 parent b9b8e2d commit c8375a4

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

.github/workflows/citation.yaml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,30 @@ on:
55
- cron: '0 0 * * 1' # Runs every Monday
66
push:
77
branches:
8-
- main
8+
- master
99

1010
jobs:
1111
sync:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- name: Checkout repo
15-
uses: actions/checkout@v2
14+
- uses: peter-murray/workflow-application-token-action@v3
15+
id: generate_token
1616
with:
17-
repository: bioexcel/biobb_godmd
18-
path: ./
17+
application_id: ${{ vars.GHAPUSH }}
18+
application_private_key: ${{ secrets.GHAPUSH }}
19+
20+
- uses: actions/checkout@v3
21+
with:
22+
token: ${{ steps.generate_token.outputs.token }}
1923

2024
- name: Download file using wget
2125
run: wget -O ./CITATION.cff https://raw.githubusercontent.com/bioexcel/biobb/master/CITATION.cff
2226

23-
- name: Check if file has changed
24-
run: ls -la ./
25-
2627
- name: Commit and push changes if file has changed
28+
env:
29+
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
2730
run: |
2831
git config --global user.name 'github-actions[bot]'
2932
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
30-
git diff --exit-code CITATION.cff || (git add CITATION.cff && git commit -m "Updated CITATION.cff" && git push)
33+
git diff --exit-code CITATION.cff || (git add CITATION.cff && git commit -m "Updated CITATION.cff" && git push)
34+

0 commit comments

Comments
 (0)