Skip to content

Commit 249a163

Browse files
committed
citation wf
1 parent e45a0fe commit 249a163

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/citation.yaml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,22 @@ 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_io
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'

0 commit comments

Comments
 (0)