Skip to content

Commit

Permalink
Hopefully fixed the entire workflow now #patch
Browse files Browse the repository at this point in the history
  • Loading branch information
jordybronowicki37 committed Oct 24, 2024
1 parent 54edf85 commit 8b11657
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/bump-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
required: false
type: string
default: minor
outputs:
tag: ${{ jobs.bump-tag.outputs.tag }}
workflow_dispatch:
inputs:
default_bump:
Expand All @@ -26,19 +28,16 @@ jobs:
permissions:
contents: write
outputs:
new_tag: ${{ steps.tag.outputs.new_tag }}
tag: ${{ steps.tag.outputs.new_tag }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'

- name: Bump version and push tag
id: new_tag
id: tag
uses: anothrNick/github-tag-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
DEFAULT_BUMP: ${{ inputs.default_bump }}
- name: Add the new tag to the outputs
id: tag_outputs
run: echo "version=${{ steps.new_tag.outputs.new_tag }}" >> "$GITHUB_OUTPUT"
WITH_V: true
8 changes: 1 addition & 7 deletions .github/workflows/feature-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,11 @@ jobs:
contents: write
uses: ./.github/workflows/bump-tag.yml

log:
needs: bump-tag-version
runs-on: ubuntu-latest
steps:
- run: echo ${{ toJson(needs.bump-tag-version.outputs) }}

build-and-publish:
needs: bump-tag-version
permissions:
packages: write
contents: read
uses: ./.github/workflows/create-docker-image.yml
with:
version: ${{ needs.bump-tag-version.outputs.version }}
version: ${{ needs.bump-tag-version.outputs.tag }}

0 comments on commit 8b11657

Please sign in to comment.