Skip to content

Commit c94b162

Browse files
authored
Merge pull request #58 from psadi/feature/test-tip
ci: no persist-cred for tagging #test-1
2 parents b742b53 + 083f00a commit c94b162

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/ci.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,18 +67,21 @@ jobs:
6767

6868
tag:
6969
name: "👻 Tip Tag"
70+
permissions:
71+
actions: read
72+
security-events: write
73+
contents: write
7074
runs-on: ubuntu-latest
7175
needs:
7276
- build_appimage
73-
if: ${{ github.event_name == 'schedule' }}
7477
steps:
7578
- uses: actions/checkout@v4 # zizmor: ignore[artipacked]
7679
- name: Tip Tag
7780
run: |
7881
git config user.name "github-actions[bot]"
7982
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
80-
git tag -fa tip -m "Latest Continuous Release" ${GITHUB_SHA}
81-
git push --force origin tip
83+
git tag -fa test-tip -m "Latest Continuous Release" ${GITHUB_SHA}
84+
git push --force origin test-tip
8285
8386
release_stable:
8487
name: 👻 Release Ghostty AppImage (Stable)
@@ -109,14 +112,14 @@ jobs:
109112

110113
release_nightly:
111114
name: 👻 Release Ghostty AppImage (Nightly)
115+
if: ${{ github.event_name == 'schedule' && github.ref_name == 'main' }}
112116
needs:
113117
- build_appimage
114118
- tag
115119
permissions:
116120
actions: read
117121
contents: write
118122
runs-on: ubuntu-latest
119-
if: ${{ github.event_name == 'schedule' }}
120123
steps:
121124
- uses: actions/download-artifact@v4
122125
with:
@@ -125,13 +128,13 @@ jobs:
125128
- uses: actions/download-artifact@v4
126129
with:
127130
name: ghostty-appimage-x86_64
131+
128132
- name: Ghostty Tip ("Nightly")
129-
if: ${{ github.event_name == 'schedule' && github.ref_name == 'main' }}
130133
uses: softprops/[email protected]
131134
with:
132135
name: '👻 Ghostty Tip ("Nightly")'
133136
prerelease: true
134-
tag_name: tip
137+
tag_name: test-tip
135138
target_commitish: ${{ github.sha }}
136139
files: |
137140
*.AppImage*

0 commit comments

Comments
 (0)