-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix release workflows to update go module index to core module rather…
… than root module (#22)
- Loading branch information
1 parent
546317c
commit 799a5d3
Showing
2 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,14 +39,14 @@ jobs: | |
sh update_version.sh | ||
git add . | ||
git commit -m "Release $SPRINT_VERSION_WITH_PATCH" | ||
git tag -a v$SPRINT_VERSION_WITH_PATCH -m "Release $SPRINT_VERSION_WITH_PATCH" | ||
git tag -a core/v$SPRINT_VERSION_WITH_PATCH -m "Release $SPRINT_VERSION_WITH_PATCH" | ||
git push --follow-tags | ||
# Update the Go modules index so that "go get github.com/dynatrace-oss/opentelemetry-exporter-go" | ||
# Update the Go modules index so that "go get github.com/dynatrace-oss/opentelemetry-exporter-go/core" | ||
# will resolve to the latest tag. | ||
# Users may install a specific version, e.g. "go get github.com/dynatrace-oss/[email protected]" | ||
# Users may install a specific version, e.g. "go get github.com/dynatrace-oss/opentelemetry-exporter-go/core@v1.245.1" | ||
- uses: actions/setup-go@v3 | ||
- name: Update Go modules index | ||
env: | ||
SPRINT_VERSION_WITH_PATCH: ${{ format('{0}{1}', inputs.sprintVersion, '.1') }} | ||
run: GOPROXY=proxy.golang.org go list -m github.com/dynatrace-oss/opentelemetry-exporter-go@v$SPRINT_VERSION_WITH_PATCH | ||
run: GOPROXY=proxy.golang.org go list -m github.com/dynatrace-oss/opentelemetry-exporter-go/core@v$SPRINT_VERSION_WITH_PATCH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,14 +33,14 @@ jobs: | |
sh update_version.sh | ||
git add . | ||
git commit -m "Release $SPRINT_VERSION_WITH_PATCH" | ||
git tag -a v$SPRINT_VERSION_WITH_PATCH -m "Release $SPRINT_VERSION_WITH_PATCH" | ||
git tag -a core/v$SPRINT_VERSION_WITH_PATCH -m "Release $SPRINT_VERSION_WITH_PATCH" | ||
git push --follow-tags | ||
# Update the Go modules index so that "go get github.com/dynatrace-oss/opentelemetry-exporter-go" | ||
# Update the Go modules index so that "go get github.com/dynatrace-oss/opentelemetry-exporter-go/core" | ||
# will resolve to the latest tag. | ||
# Users may install a specific version, e.g. "go get github.com/dynatrace-oss/[email protected]" | ||
# Users may install a specific version, e.g. "go get github.com/dynatrace-oss/opentelemetry-exporter-go/core@v1.245.2" | ||
- uses: actions/setup-go@v3 | ||
- name: Update Go modules index | ||
env: | ||
SPRINT_VERSION_WITH_PATCH: ${{ inputs.sprintVersion }} | ||
run: GOPROXY=proxy.golang.org go list -m github.com/dynatrace-oss/opentelemetry-exporter-go@v$SPRINT_VERSION_WITH_PATCH | ||
run: GOPROXY=proxy.golang.org go list -m github.com/dynatrace-oss/opentelemetry-exporter-go/core@v$SPRINT_VERSION_WITH_PATCH |