Skip to content

Commit

Permalink
Update refresh-osd.yml
Browse files Browse the repository at this point in the history
try setting up release of snapshot before first cron cycle
  • Loading branch information
brownag authored Nov 22, 2020
1 parent 7710821 commit a086993
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/refresh-osd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,26 @@ jobs:
- run: R CMD build --no-manual ../OSDRegistry
- run: Rscript -e 'system2("R", paste0(sprintf("CMD INSTALL OSDRegistry_%s.tar.gz", read.dcf("DESCRIPTION")[,"Version"])))'
- run: Rscript -e 'OSDRegistry::refresh_registry()'
- run: Rscript -e 'system(sprintf("tar -czvf OSDSnapshot_%s.tar.gz OSD", Sys.Date()))'
- run: Rscript -e 'system(sprintf("zip OSD_%s.zip OSD/*/*", Sys.Date()))'
- run: zip OSD-data-snapshot.zip OSD_*.zip
- uses: actions/upload-artifact@v2
with:
name: OSD-data-snapshot
path: "OSDSnapshot_*.tar.gz"
path: "OSD-data-snapshot.zip"
- run: git config user.email github-actions@github.com
- run: git config user.name SeriesCuratorBot
- run: git add OSD/*/*.txt
- run: Rscript -e 'system(sprintf("git commit -am \"OSD Data Refresh - %s\"", Sys.time()))'
- run: Rscript -e 'system(sprintf("git commit -am \"OSD Data Refresh - %s\"", Sys.Date()))'
- run: git push
- name: Upload snapshot to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: OSD-data-snapshot.zip
asset_name: OSD-data-snapshot.zip
tag: ${{ github.ref }}
overwrite: true
body: "Download the complete Official Series Description weekly snapshot as a ZIP file."
env:
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit a086993

Please sign in to comment.