Work around empty input issue for now, take 2
This commit is contained in:
parent
ef1f937d54
commit
bad585185a
1 changed files with 3 additions and 7 deletions
10
.github/workflows/set-timestamp.yaml
vendored
10
.github/workflows/set-timestamp.yaml
vendored
|
@ -18,19 +18,15 @@ jobs:
|
||||||
- uses: actions/cache@v3
|
- uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: data/wiki-meta-cache.yaml
|
path: data/wiki-meta-cache.yaml
|
||||||
key: wiki-meta-cache-${{ github.run_id }}
|
key: wiki-meta-cache-v2-${{ github.run_id }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
wiki-meta-cache
|
wiki-meta-cache
|
||||||
- name: Initial content
|
- name: Initial content
|
||||||
run: |
|
run: |
|
||||||
cat data/wiki-meta-cache.yaml
|
cat data/wiki-meta-cache.yaml
|
||||||
- name: Change content (dynamic)
|
- name: Change content
|
||||||
if: inputs.timestamp == ''
|
|
||||||
run: |
|
|
||||||
echo "lastCheckedRecentChanges: '${{ inputs.timestamp }}'" > data/wiki-meta-cache.yaml
|
|
||||||
- name: Change content (static)
|
|
||||||
if: inputs.timestamp != ''
|
|
||||||
run: |
|
run: |
|
||||||
|
# echo "lastCheckedRecentChanges: '${{ inputs.timestamp }}'" > data/wiki-meta-cache.yaml
|
||||||
echo "lastCheckedRecentChanges: '2022-10-30T19:37:23.138Z'" > data/wiki-meta-cache.yaml
|
echo "lastCheckedRecentChanges: '2022-10-30T19:37:23.138Z'" > data/wiki-meta-cache.yaml
|
||||||
- name: Updated content
|
- name: Updated content
|
||||||
run: |
|
run: |
|
||||||
|
|
Reference in a new issue