Skip to content

Support sha256 as HashAlgorithm of delta files in upd03_parse_manifes… #21

Support sha256 as HashAlgorithm of delta files in upd03_parse_manifes…

Support sha256 as HashAlgorithm of delta files in upd03_parse_manifes… #21

name: Sync Static Files
defaults:
run:
shell: bash
on:
push:
branches:
- main
paths-ignore:
- 'data/**'
workflow_dispatch:
concurrency: sync-static-files
jobs:
update:
runs-on: windows-latest
steps:
- name: Checkout main
uses: actions/checkout@v4
with:
ref: main
- name: Checkout gh-pages
uses: actions/checkout@v4
with:
ref: gh-pages
path: data/gh-pages
- name: Sync static files
# https://superuser.com/questions/280425/getting-robocopy-to-return-a-proper-exit-code
run: |
robocopy /job:RSYNC-STATIC-FILES || [ $? -lt 8 ]
- name: Commit changes of static files
uses: EndBug/add-and-commit@v9
with:
cwd: data/gh-pages
default_author: github_actions
message: 'Sync static files'
fetch: false