mirror of
https://github.com/quatalog/quatalog.git
synced 2025-11-29 15:55:55 +00:00
Add meta.json shenanigans (hopefully to prevent the action from auto-disabling)
This commit is contained in:
parent
5d012097e7
commit
479dbf2371
24
.github/workflows/scraper.yml
vendored
24
.github/workflows/scraper.yml
vendored
|
|
@ -209,3 +209,27 @@ jobs:
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to GitHub Pages
|
||||||
id: deployment
|
id: deployment
|
||||||
uses: actions/deploy-pages@v4
|
uses: actions/deploy-pages@v4
|
||||||
|
|
||||||
|
update-meta-done:
|
||||||
|
name: Update meta
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: [deploy-site]
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
steps:
|
||||||
|
- name: Checkout meta branch
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: meta
|
||||||
|
|
||||||
|
- name: Update meta.json
|
||||||
|
run: |
|
||||||
|
echo -n \{\"last_deployed\":\"$(date --iso-8601=seconds -u)\"\} > meta.json
|
||||||
|
|
||||||
|
- name: Push meta.json
|
||||||
|
run: |
|
||||||
|
git config user.name "Quatalog Updater"
|
||||||
|
git config user.email "github_actions@quatalog.com"
|
||||||
|
git add meta.json
|
||||||
|
git commit -m "$(date)" || exit 0
|
||||||
|
git push
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue