Skip to content

Commit 890cfe5

Browse files
committed
ci: update release token name
1 parent 88c001c commit 890cfe5

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.github/workflows/release-prechecks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,6 @@ jobs:
6464
- name: Run GoReleaser test
6565
env:
6666
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
67-
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}
67+
SCOOP_NORGATEAV_CRESTRON: ${{ secrets.SCOOP_NORGATEAV_CRESTRON }}
6868
run: |
6969
make goreleaser-test

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
args: release --clean
6767
env:
6868
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
69-
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}
69+
SCOOP_NORGATEAV_CRESTRON: ${{ secrets.SCOOP_NORGATEAV_CRESTRON }}
7070

7171
- name: Update GitHub Release with Release Notes
7272
env:

.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ scoops:
6161
repository:
6262
owner: Norgate-AV
6363
name: scoop-norgateav-crestron
64-
token: "{{ .Env.RELEASE_TOKEN }}"
64+
token: "{{ .Env.SCOOP_NORGATEAV_CRESTRON }}"
6565
directory: bucket
6666
homepage: https://github.com/Norgate-AV/spc
6767
description: "A better way to compile Crestron SIMPL+ files"

scripts/test-goreleaser.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ echo ""
161161
print_status "2. 📋 Checking Required Secrets..."
162162

163163
check_secret "GITHUB_TOKEN" "GitHub Actions token (auto-provided)"
164-
check_secret "RELEASE_TOKEN" "Token for Scoop repository"
164+
check_secret "SCOOP_NORGATEAV_CRESTRON" "Token for Scoop repository"
165165
echo ""
166166

167167
# 3. Required repositories check
@@ -196,16 +196,16 @@ fi
196196

197197
print_status "6. 🔑 Checking Release Token Permissions..."
198198

199-
if [ -z "${RELEASE_TOKEN}" ]; then
200-
print_warning "RELEASE_TOKEN is not set; skipping permission checks"
201-
WARNINGS+=("RELEASE_TOKEN is not set; skipping permission checks")
199+
if [ -z "${SCOOP_NORGATEAV_CRESTRON}" ]; then
200+
print_warning "SCOOP_NORGATEAV_CRESTRON is not set; skipping permission checks"
201+
WARNINGS+=("SCOOP_NORGATEAV_CRESTRON is not set; skipping permission checks")
202202
else
203203
REPOS_TO_CHECK=(
204204
"Norgate-AV/scoop-norgateav-crestron"
205205
)
206206

207207
for repo in "${REPOS_TO_CHECK[@]}"; do
208-
check_token_contents_permission "${RELEASE_TOKEN}" "$repo" "RELEASE_TOKEN"
208+
check_token_contents_permission "${SCOOP_NORGATEAV_CRESTRON}" "$repo" "SCOOP_NORGATEAV_CRESTRON"
209209
done
210210
fi
211211
echo ""

0 commit comments

Comments
 (0)