From f0061e98e2319eea307f641dae7e400798e19bbd Mon Sep 17 00:00:00 2001 From: mtkennerly Date: Mon, 31 Oct 2022 10:46:41 +0800 Subject: [PATCH] Allow passing timestamp to run step --- .github/workflows/set-timestamp.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/set-timestamp.yaml b/.github/workflows/set-timestamp.yaml index 0c9f80cd..e59d1489 100644 --- a/.github/workflows/set-timestamp.yaml +++ b/.github/workflows/set-timestamp.yaml @@ -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 }}