Skip to content

Commit

Permalink
Merge pull request #128 from fasibio/pipelineFix
Browse files Browse the repository at this point in the history
ci: make svu over manual trigger reachable
  • Loading branch information
fasibio authored Mar 30, 2024
2 parents e7f596b + 6054341 commit 496c2da
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 31 deletions.
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

0 comments on commit 496c2da

Please sign in to comment.