changing tag
All checks were successful
Build Org Website / build (push) Successful in 1m2s

This commit is contained in:
2026-05-14 11:54:15 +01:00
parent 608bfe904e
commit c182ad18e5

View File

@@ -4,6 +4,9 @@ on:
push:
branches:
- main
paths-ignore:
- assets/content/hidden-details.json
- assets/scripts/hidden-details.js
schedule:
- cron: "0 0 * * *"
@@ -13,12 +16,34 @@ on:
jobs:
build:
runs-on: org-web
env:
SITE_OUTPUT_DIR: /home/zaine/master-folder/org_files/org_web/output
steps:
- name: Check out repo
uses: actions/checkout@v4
with:
ref: main
fetch-depth: 0
- name: Commit hidden details files on scheduled run
if: ${{ github.event_name == 'schedule' }}
run: |
git checkout main
git pull --ff-only origin main
git config user.name "gitea-actions"
git config user.email "gitea-actions@localhost"
git add assets/content/hidden-details.json assets/scripts/hidden-details.js
if git diff --cached --quiet; then
echo "No hidden details changes to commit."
else
git commit -m "Update hidden details [skip actions]"
git push origin HEAD:main
fi
- name: Build site
run: |
@@ -30,4 +55,4 @@ jobs:
env:
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
API_KEY: ${{ secrets.API_KEY }}
run: /snap/bin/pwsh -NoProfile -File ./gitea-build-monitor.ps1
run: /snap/bin/pwsh -NoProfile -File ./gitea-build-monitor.ps1