Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion .github/workflows/periodic-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: Periodic updates

on:
push:
branches: [ main ]
branches: [ master ]
paths: [ files.list ]
schedule:
- cron: "0 0 * * *"
workflow_dispatch: ~
Expand All @@ -27,9 +28,25 @@ jobs:

- name: Push
uses: JamesIves/github-pages-deploy-action@v4
id: deploy-file
with:
branch: master
folder: .
git-config-name: github-actions[bot]
git-config-email: 41898282+github-actions[bot]@users.noreply.github.com
commit-message: updated ${{ steps.current-time.outputs.formattedTime }} UTC

- name: tagging-get-current-time
if: ${{ steps.deploy-file.outputs.deployment-status == 'success' }}
uses: srfrnk/current-time@master
id: current-time-tagging
with:
format: "YYYYMMDD"

- name: tagging
if: ${{ steps.deploy-file.outputs.deployment-status == 'success' }}
uses: anothrNick/[email protected]
env:
CUSTOM_TAG: ${{ steps.current-time-tagging.outputs.formattedTime }}
DEFAULT_BRANCH: master
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18 changes: 18 additions & 0 deletions .github/workflows/verify-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Verify updates (check only)

on:
pull_request:
paths: [ files.list ]
workflow_dispatch: ~

jobs:
update:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Update
run: |
bash update-files.sh