mirror of
https://github.com/morgan9e/Signal-Desktop-AppImage
synced 2026-04-14 00:04:08 +09:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d6050189f3 | |||
| 35e4564248 | |||
| 73143e0ce0 | |||
| 7fbc376160 | |||
| 681d89235e |
17
.github/workflows/build.yml
vendored
17
.github/workflows/build.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user