Skip to content

Commit 0e44932

Browse files
committed
CI: do not skip deployment when pushing new tag
1 parent 95c02f5 commit 0e44932

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/artifacts.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111

1212
jobs:
1313
deploy:
14-
if: github.repository_owner == 'zigtools' && github.ref == 'refs/heads/master'
14+
if: github.repository_owner == 'zigtools'
1515
runs-on: ubuntu-22.04
1616
timeout-minutes: 30
1717
steps:
@@ -20,6 +20,7 @@ jobs:
2020
fetch-depth: 0 # required to resolve the version string
2121

2222
- name: Skip if no new commits
23+
if: github.event_name == 'schedule'
2324
run: |
2425
LAST_SUCCESS_COMMIT=$(curl -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" -H "Authorization: Bearer $GH_TOKEN" "https://api.github.com/repos/zigtools/zls/actions/workflows/artifacts.yml/runs?branch=master&status=success&per_page=1" | jq --raw-output ".workflow_runs[0].head_sha")
2526
CURRENT_COMMIT=$(git rev-parse HEAD)

0 commit comments

Comments
 (0)