Skip to content

Commit

Permalink
Fix release workflows to update go module index to core module rather…
Browse files Browse the repository at this point in the history
… than root module (#22)
  • Loading branch information
Kwintenvdb authored Oct 11, 2022
1 parent 546317c commit 799a5d3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 4 additions & 4 deletions .github/workflows/release_patch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 799a5d3

Please sign in to comment.