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-10-31 11:06:08 +08:00

31 lines
869 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
name: Set lastCheckedRecentChanges
jobs:
set-timestamp:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- uses: actions/cache@v3
with:
path: data/wiki-meta-cache.yaml
key: wiki-meta-cache-${{ github.run_id }}
restore-keys: |
wiki-meta-cache
- name: Initial content
run: |
cat data/wiki-meta-cache.yaml
- name: Change content
run: |
echo "lastCheckedRecentChanges: '${{ inputs.timestamp }}'" > data/wiki-meta-cache.yaml
- name: Updated content
run: |
cat data/wiki-meta-cache.yaml