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:
|
||||
description: 'Timestamp to inject into wiki-meta-cache.yaml. Example: 2022-10-30T19:37:23.138Z'
|
||||
required: true
|
||||
type: string
|
||||
|
||||
name: Set lastCheckedRecentChanges
|
||||
|
||||
|
@ -23,9 +24,14 @@ jobs:
|
|||
- name: Initial content
|
||||
run: |
|
||||
cat data/wiki-meta-cache.yaml
|
||||
- name: Change content
|
||||
- name: Change content (dynamic)
|
||||
if: inputs.timestamp == ''
|
||||
run: |
|
||||
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
|
||||
run: |
|
||||
cat data/wiki-meta-cache.yaml
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue