Update #471
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: Update | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '25 3 * * *' | |
permissions: | |
contents: write | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 3 | |
- name: Update | |
run: | | |
git config --local user.name "$GITHUB_ACTOR" | |
git config --local user.email "[email protected]" | |
find . -type f -not -path '*/.*' -exec rm \{\} \; | |
wget --recursive --span-hosts --no-parent --convert-links --level 1 \ | |
https://cran.r-project.org/web/checks/check_issue_kinds.html | |
wget --recursive --span-hosts --no-parent --convert-links --level 1 \ | |
https://cran.r-project.org/web/checks/check_flavors.html | |
wget --recursive https://svn.r-project.org/R-dev-web/trunk/CRAN/QA/Kurt/bin/check-R-ng | |
wget --recursive https://svn.r-project.org/R-dev-web/trunk/CRAN/QA/Kurt/.R/check.Renviron | |
wget --recursive https://svn.r-project.org/R-dev-web/trunk/CRAN/QA/Kurt/lib/R/Scripts/check_CRAN_regular.R | |
wget --recursive https://svn.r-project.org/R-dev-web/trunk/CRAN/QA/Kurt/lib/R/Scripts/check_CRAN_incoming.R | |
git add -A . | |
if ! git diff --cached --exit-code \ | |
-I "^Last updated on [0-9]{4}[-][0-9]{2}[-][0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2} CES?T."; then | |
git commit -m "Update" || echo "No changes to commit" | |
git push origin | |
else | |
echo "No changes to commit" | |
fi |