Add workflow for setting lastCheckedRecentChanges

This commit is contained in:
mtkennerly 2022-10-31 10:41:13 +08:00
parent 226457b1e1
commit 7a479a4187
No known key found for this signature in database
GPG key ID: E764BE00BE6E6408

25
.github/workflows/set-timestamp.yaml vendored Normal file
View file

@ -0,0 +1,25 @@
on:
workflow_dispatch:
inputs:
timestamp:
description: 'Timestamp to inject into wiki-meta-cache.yaml. Example: 2022-10-30T19:37:23.138Z'
required: true
type: string
name: Set lastCheckedRecentChanges
jobs:
recent:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- uses: actions/cache@v3
with:
path: data/wiki-meta-cache.yaml
key: wiki-meta-cache-${{ github.run_id }}
restore-keys: |
wiki-meta-cache
- run: |
echo "lastCheckedRecentChanges: '${{ inputs.timestamp }}'" > data/wiki-meta-cache.yaml