Skip to content

Commit

Permalink
Passing tag between steps
Browse files Browse the repository at this point in the history
  • Loading branch information
vanbroup committed Jul 21, 2021
1 parent 8b9084d commit a74a27b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ on:
push:
branches:
- "main"

paths-ignore:
- '*.md'
jobs:

build:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -26,9 +28,13 @@ jobs:
run: go run .

- name: Tag next version
id: version
run: |
tag=$(git describe --abbrev=0 --tags $(git rev-list --tags --max-count=1) | awk -F. -v OFS=. '{$NF++;print}')
echo "::set-output name=tag::$tag"
echo Adding tag $tag
git tag $tag
git push origin $tag
- name: Release notes
run: |
Expand All @@ -40,7 +46,7 @@ jobs:
with:
name: List of Trust Lists
body_path: release-notes.txt
fail_on_unmatched_files: true
tag: ${{ steps.version.outputs.tag }}
files: |
ltl.yaml
ltl.json
Expand Down

0 comments on commit a74a27b

Please sign in to comment.