Skip to content

Commit

Permalink
citation wf
Browse files Browse the repository at this point in the history
  • Loading branch information
gbayarri committed Jan 22, 2025
1 parent e1d9829 commit 919e84c
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/citation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,28 @@ on:
- cron: '0 0 * * 1' # Runs every Monday
push:
branches:
- main
- master

jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- uses: peter-murray/workflow-application-token-action@v3
id: generate_token
with:
repository: bioexcel/biobb_wf_md_setup
path: ./
application_id: ${{ vars.GHAPUSH }}
application_private_key: ${{ secrets.GHAPUSH }}

- uses: actions/checkout@v3
with:
token: ${{ steps.generate_token.outputs.token }}

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

- name: Check if file has changed
run: ls -la ./

- name: Commit and push changes if file has changed
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
Expand Down

0 comments on commit 919e84c

Please sign in to comment.