Update docs #18
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
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help | |
on: | |
push: | |
branches: [main, development] | |
paths: ['DESCRIPTION'] | |
workflow_dispatch: | |
name: write-codemeta | |
jobs: | |
write-codemeta: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
use-public-rspm: true | |
- name: Install codemeta | |
run: Rscript -e 'install.packages("codemeta")' | |
- name: Write codemeta file | |
run: Rscript -e 'codemeta::write_codemeta()' | |
- name: Commit codemeta file | |
run: | | |
git config --local user.name "$GITHUB_ACTOR" | |
git config --local user.email "[email protected]" | |
git add codemeta.json | |
git commit -m "Re-write codemeta.json" || echo "No changes to commit" | |
git push origin || echo "No changes to commit" |