Add workflow for setting lastCheckedRecentChanges
This commit is contained in:
parent
226457b1e1
commit
7a479a4187
1 changed files with 25 additions and 0 deletions
25
.github/workflows/set-timestamp.yaml
vendored
Normal file
25
.github/workflows/set-timestamp.yaml
vendored
Normal 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
|
Reference in a new issue