Skip to content
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

make svu over manual trigger reachable #128

Merged
merged 1 commit into from
Mar 30, 2024
Merged
Show file tree
Hide file tree
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
40 changes: 18 additions & 22 deletions .github/workflows/job_tag.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,22 @@
name: Tag
on:
workflow_call:
secrets:
token:
required: true

jobs:
tag:
on:
workflow_dispatch:
jobs:
tag:
name: tag
runs-on: ubuntu-latest
steps:
# - name: Check out code into the Go module directory
# uses: actions/checkout@v2
# with:
# fetch-depth: 0 # See: https://goreleaser.com/ci/actions/
# - name: Set up Go 1.19
# uses: actions/setup-go@v5
# with:
# go-version: 1.19
# id: go
# - name: Install svu
# - run: go install github.com/caarlos0/svu@latest
# - name: Check out code into the Go module directory
# uses: actions/checkout@v2
# with:
# fetch-depth: 0 # See: https://goreleaser.com/ci/actions/
# - name: Set up Go 1.19
# uses: actions/setup-go@v5
# with:
# go-version: 1.19
# id: go
# - name: Install svu
# - run: go install github.com/caarlos0/svu@latest
- name: Check out code into the Go module directory
uses: actions/checkout@v4
with:
Expand All @@ -31,10 +27,10 @@ jobs:
with:
go-version: 1.21
id: go
env:
env:
GITHUB_TOKEN: ${{secrets.token}}
- run: go install github.com/caarlos0/svu@latest
- run: git config --local user.email "github-actions[bot]@users.noreply.github.com"
- run: git config --local user.name "github-actions[bot]"
- run: git tag "$(svu next)"
- run: git push --tags
- run: git tag "$(svu next)"
- run: git push --tags
12 changes: 3 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
name: Push to master
on:
push:
on:
push:
branches:
- main

jobs:
tests:
tests:
uses: ./.github/workflows/job_tests.yml
tag:
name: create tag
uses: ./.github/workflows/job_tag.yml
secrets:
token: ${{secrets.TOKEN}}
needs: [tests]
11 changes: 11 additions & 0 deletions gomake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,14 @@ test:local:
script:
{{include "testSetup"}}
{{include "testSqlite"}}

next:tag:dry:
doc: show next tag with svu
script:
- svu next

next:tag:push:
doc: Create next tag with svu
script:
- git tag "$(svu next)"
- git push --tags