Create snapshot from R-multiverse #2
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
on: | |
workflow_dispatch: | |
name: Create snapshot from R-multiverse | |
jobs: | |
snapshot: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: download snapshot | |
run: | | |
rm -Rf src bin docs | |
curl "https://raw.githubusercontent.com/r-multiverse/staging/main/snapshot.url" -Lo snapshot.url | |
cat snapshot.url | xargs curl -Lo snapshot.zip | |
unzip snapshot.zip && rm -f snapshot.zip | |
- name: commit and push | |
run: | | |
git config --global user.name github-actions | |
git config --global user.email [email protected] | |
git add . | |
git commit -m "R-multiverse snapshot ($(date +%F))" | |
git push | |