Skip to content

Fix go release #48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Sep 21, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 11 additions & 17 deletions .github/workflows/release-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,17 @@ on:
branches: [release/*]

jobs:
read-version:
name: Read version to release
publish-go-subrepo:
name: Publish to cucumber/messgaes-go subrepo
runs-on: ubuntu-latest
outputs:
version: ${{ steps.versions.outputs.changelog-latest-version }}
environment: Release
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: cucumber/[email protected]
id: versions

publish-go:
name: Create go/v* tag
runs-on: ubuntu-latest
needs: read-version
steps:
- uses: actions/checkout@v3
- name: Create git tag
run: |
git tag "go/v${{ needs.read-version.outputs.version }}"
git push --tags
with:
fetch-depth: '0'
- uses: cucumber/[email protected]
with:
working-directory: go
github-token: ${{ secrets.CUKEBOT_GITHUB_TOKEN }}