issues #164
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: issues | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 * * * *' | |
jobs: | |
issues: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
R_KEEP_PKG_SOURCE: yes | |
steps: | |
- name: Install system dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install libglpk-dev | |
- name: Install R. | |
uses: r-lib/actions/setup-r@v2 | |
with: | |
extra-repositories: https://community.r-multiverse.org | |
use-public-rspm: true | |
- name: Install helper R package. | |
run: install.packages("multiverse.internals") | |
shell: Rscript {0} | |
- name: Check out the universe. | |
uses: actions/checkout@v4 | |
- name: Record versions. | |
run: | | |
multiverse.internals::record_versions( | |
versions = "versions.json", | |
repo = "https://community.r-multiverse.org" | |
) | |
shell: Rscript {0} | |
- name: Record issues. | |
run: | | |
multiverse.internals::record_issues( | |
repo = "https://community.r-multiverse.org", | |
versions = "versions.json", | |
output = "issues" | |
) | |
shell: Rscript {0} | |
- name: Record non-standard licenses. | |
run: | | |
multiverse.internals::record_nonstandard_licenses( | |
repo = "https://community.r-multiverse.org", | |
path = "nonstandard_licenses.json" | |
) | |
shell: Rscript {0} | |
- name: Commit and push changes. | |
run: | | |
git add *.json | |
if [ -d issues ]; then | |
git add issues | |
fi | |
if git diff --quiet && git diff --staged --quiet; then | |
echo "No changes to commit." | |
else | |
git config --global user.name github-actions | |
git config --global user.email [email protected] | |
git commit -m "Update issues" | |
git push -u origin main | |
fi |