Work around empty input issue for now

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

View file

@ -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