diff --git a/.github/workflows/scraper.yml b/.github/workflows/scraper.yml index 397e36e..f64b4a7 100644 --- a/.github/workflows/scraper.yml +++ b/.github/workflows/scraper.yml @@ -209,3 +209,27 @@ jobs: - name: Deploy to GitHub Pages id: deployment 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