Sync apa.csl #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sync apa.csl | |
on: | |
schedule: | |
- cron: '0 0 */14 * *' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout destination repository | |
uses: actions/checkout@v4 | |
with: | |
repository: 'gwbrck/tud-slides' | |
- name: Download file | |
run: | | |
curl -L https://raw.githubusercontent.com/citation-style-language/styles/master/apa.csl > $GITHUB_WORKSPACE/_extensions/tud-slides/apa.csl | |
- name: Commit and push if it changed | |
run: | | |
git config --global user.email "action@github.com" | |
git config --global user.name "GitHub Action" | |
git add . | |
git diff --quiet && git diff --staged --quiet || git commit -m 'Update file' | |
git push |