Work around empty input issue for now, take 2

This commit is contained in:
mtkennerly 2022-10-31 11:34:44 +08:00
parent ef1f937d54
commit bad585185a
No known key found for this signature in database
GPG key ID: E764BE00BE6E6408

View file

@ -18,19 +18,15 @@ jobs:
- uses: actions/cache@v3
with:
path: data/wiki-meta-cache.yaml
key: wiki-meta-cache-${{ github.run_id }}
key: wiki-meta-cache-v2-${{ github.run_id }}
restore-keys: |
wiki-meta-cache
- name: Initial content
run: |
cat data/wiki-meta-cache.yaml
- name: Change content (dynamic)
if: inputs.timestamp == ''
run: |
echo "lastCheckedRecentChanges: '${{ inputs.timestamp }}'" > data/wiki-meta-cache.yaml
- name: Change content (static)
if: inputs.timestamp != ''
- name: Change content
run: |
# echo "lastCheckedRecentChanges: '${{ inputs.timestamp }}'" > data/wiki-meta-cache.yaml
echo "lastCheckedRecentChanges: '2022-10-30T19:37:23.138Z'" > data/wiki-meta-cache.yaml
- name: Updated content
run: |