Work around empty input issue for now
This commit is contained in:
parent
c060e492db
commit
ef1f937d54
1 changed files with 7 additions and 1 deletions
8
.github/workflows/set-timestamp.yaml
vendored
8
.github/workflows/set-timestamp.yaml
vendored
|
@ -4,6 +4,7 @@ on:
|
||||||
timestamp:
|
timestamp:
|
||||||
description: 'Timestamp to inject into wiki-meta-cache.yaml. Example: 2022-10-30T19:37:23.138Z'
|
description: 'Timestamp to inject into wiki-meta-cache.yaml. Example: 2022-10-30T19:37:23.138Z'
|
||||||
required: true
|
required: true
|
||||||
|
type: string
|
||||||
|
|
||||||
name: Set lastCheckedRecentChanges
|
name: Set lastCheckedRecentChanges
|
||||||
|
|
||||||
|
@ -23,9 +24,14 @@ jobs:
|
||||||
- name: Initial content
|
- name: Initial content
|
||||||
run: |
|
run: |
|
||||||
cat data/wiki-meta-cache.yaml
|
cat data/wiki-meta-cache.yaml
|
||||||
- name: Change content
|
- name: Change content (dynamic)
|
||||||
|
if: inputs.timestamp == ''
|
||||||
run: |
|
run: |
|
||||||
echo "lastCheckedRecentChanges: '${{ inputs.timestamp }}'" > data/wiki-meta-cache.yaml
|
echo "lastCheckedRecentChanges: '${{ inputs.timestamp }}'" > data/wiki-meta-cache.yaml
|
||||||
|
- name: Change content (static)
|
||||||
|
if: inputs.timestamp != ''
|
||||||
|
run: |
|
||||||
|
echo "lastCheckedRecentChanges: '2022-10-30T19:37:23.138Z'" > data/wiki-meta-cache.yaml
|
||||||
- name: Updated content
|
- name: Updated content
|
||||||
run: |
|
run: |
|
||||||
cat data/wiki-meta-cache.yaml
|
cat data/wiki-meta-cache.yaml
|
||||||
|
|
Reference in a new issue