Skip to content

Commit 8e9c05d

Browse files
committed
use circleci env vars
1 parent 026687b commit 8e9c05d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ jobs:
120120
git tag -a "$NEW_TAG" -m "Release $NEW_TAG"
121121
122122
# Push using HTTPS with GitHub token (no fingerprint needed)
123-
git push https://${GH_TOKEN}@github.com/snyk/cli-extension-dep-graph.git "$NEW_TAG"
123+
git push https://${GH_TOKEN}@github.com/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME} "$NEW_TAG"
124124
125125
# Filters for branches
126126
filters_pr_only: &filters_pr_only

docs/RELEASE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ When code is merged to `main` using **"Squash and merge"**, the following happen
6161

6262
1. **Run Tests**: All tests (lint, unit tests, integration tests, security scans) must pass
6363
2. **Determine Version**: The `version-bump.sh` script reads the commit subject (PR title) and determines the version bump
64-
3. **Tag Release**: If a release is needed (not a chore), a git tag is created and pushed (e.g., `v1.2.3`)
64+
3. **Tag Release**: If a release is needed (not a chore), a git tag is created and pushed (e.g., `v1.2.3`) using CircleCI's built-in environment variables (`CIRCLE_PROJECT_USERNAME` and `CIRCLE_PROJECT_REPONAME`)
6565
4. **Build & Release**: GoReleaser creates:
6666
- GitHub Release with changelog
6767
- Source archives for Linux, macOS, and Windows

0 commit comments

Comments
 (0)