diff --git a/.github/workflows/set-timestamp.yaml b/.github/workflows/set-timestamp.yaml new file mode 100644 index 00000000..0c9f80cd --- /dev/null +++ b/.github/workflows/set-timestamp.yaml @@ -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