This repository has been archived on 2025-06-27. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
ludusavi-manifest/.github/workflows/set-timestamp.yaml
2022-11-01 00:56:49 +08:00

33 lines
1,008 B
YAML

on:
workflow_dispatch: ~
# inputs:
# timestamp:
# description: 'Timestamp to inject into wiki-meta-cache.yaml. Example: 2022-10-30T19:37:23.138Z'
# required: true
# type: string
name: Set lastCheckedRecentChanges
jobs:
set-timestamp:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- uses: actions/cache@v3
with:
path: data/wiki-meta-cache.yaml
key: wiki-meta-cache-v2-${{ github.run_id }}
restore-keys: |
wiki-meta-cache-v2
- name: Initial content
run: |
cat data/wiki-meta-cache.yaml
- 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: |
cat data/wiki-meta-cache.yaml