5 Commits

Author SHA1 Message Date
d6050189f3 Disable scheduled cron job in build.yml
Comment out the scheduled cron job in the build workflow.
2026-03-25 18:11:56 +09:00
35e4564248 Update build.yml 2025-06-15 21:39:29 +09:00
73143e0ce0 Update build.yml 2025-06-15 21:38:56 +09:00
7fbc376160 Update build.yml 2025-06-15 21:33:24 +09:00
681d89235e Update build.yml 2025-06-15 21:25:47 +09:00

View File

@@ -5,8 +5,8 @@ on:
repository_dispatch:
types: [external_build_trigger]
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
# schedule:
# - cron: "0 0 * * *"
jobs:
build:
@@ -20,11 +20,22 @@ jobs:
echo "LATEST_TAG=$LATEST_TAG" >> $GITHUB_OUTPUT
- name: Skip if exists
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_RUN_ID: ${{ github.run_id }}
run: |
LATEST_TAG="${{ steps.get_tag.outputs.LATEST_TAG }}"
MY_RELEASE=$(curl -s https://api.github.com/repos/${{ github.repository }}/releases/latest | jq -r '.tag_name')
if [[ "$LATEST_TAG" == "$MY_RELEASE" ]]; then
exit 78
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer $GITHUB_TOKEN" \
-H "X-GitHub-Api-Version: 2022-11-28" \
"https://api.github.com/repos/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}/force-cancel"
exit 0
fi
- uses: actions/checkout@v4