Allow passing timestamp to run step

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

View file

@ -9,7 +9,7 @@ on:
name: Set lastCheckedRecentChanges
jobs:
recent:
set-timestamp:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
@ -22,4 +22,6 @@ jobs:
restore-keys: |
wiki-meta-cache
- run: |
echo "lastCheckedRecentChanges: '${{ inputs.timestamp }}'" > data/wiki-meta-cache.yaml
echo "lastCheckedRecentChanges: '$TIMESTAMP'" > data/wiki-meta-cache.yaml
env:
TIMESTAMP: ${{ inputs.timestamp }}