mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-10-08 03:10:26 +00:00
ci: isolate nightly release test credentials
This commit is contained in:
parent
3780c29d9b
commit
db071953c0
2 changed files with 8 additions and 6 deletions
7
.github/workflows/nightly.yml
vendored
7
.github/workflows/nightly.yml
vendored
|
|
@ -60,12 +60,11 @@ jobs:
|
|||
|
||||
- name: Release nightly
|
||||
if: steps.skip.outputs.skip != 'true'
|
||||
env:
|
||||
GH_TOKEN: ${{ steps.app-token.outputs.token }}
|
||||
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
|
||||
run: |
|
||||
git config user.name "fabro-releases[bot]"
|
||||
git config user.email "fabro-releases[bot]@users.noreply.github.com"
|
||||
release_token='${{ steps.app-token.outputs.token }}'
|
||||
git remote set-url origin \
|
||||
"https://x-access-token:${GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
|
||||
"https://x-access-token:${release_token}@github.com/${GITHUB_REPOSITORY}.git"
|
||||
unset release_token
|
||||
bin/dev/release.sh nightly
|
||||
|
|
|
|||
|
|
@ -116,12 +116,15 @@ verify_release_tests() {
|
|||
fi
|
||||
|
||||
echo "Running release-mode test smoke (SEGMENT_WRITE_KEY baked in)..."
|
||||
SEGMENT_WRITE_KEY="fake-for-local-smoke" \
|
||||
cargo nextest run \
|
||||
(
|
||||
unset GH_TOKEN GITHUB_TOKEN
|
||||
SEGMENT_WRITE_KEY="fake-for-local-smoke" \
|
||||
cargo nextest run \
|
||||
--workspace \
|
||||
--release \
|
||||
--profile ci \
|
||||
--status-level slow
|
||||
)
|
||||
}
|
||||
|
||||
main() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue