forked from galaxyproject/galaxy-hub
-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (36 loc) · 1.18 KB
/
Copy pathupdate-eu-citations.yml
File metadata and controls
42 lines (36 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Update EU Citations
on:
workflow_dispatch:
schedule:
- cron: '00 23 * * 0'
permissions:
contents: write
pull-requests: write
jobs:
update-citations:
runs-on: ubuntu-latest
if: github.repository_owner == 'galaxyproject'
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Generate GitHub App token
id: app-token
uses: actions/create-github-app-token@v3
with:
client-id: ${{ secrets.HUB_BOT_APP_CLIENT_ID }}
private-key: ${{ secrets.HUB_BOT_APP_PRIVATE_KEY }}
- name: Setup Python
uses: actions/setup-python@v6.3.0
with:
python-version: '3.12'
- name: Sync citation bibliographies
run: python scripts/update-eu-citations.py
- name: Create Pull Request
uses: peter-evans/create-pull-request@v8
with:
token: ${{ steps.app-token.outputs.token }}
commit-message: 'chore(eu): update citations'
title: 'Update EU citation bibliographies'
body: 'Auto-generated PR with updated citation bibliographies for Galaxy Europe and its subsites.'
branch: update-eu-citations
delete-branch: true