Skip to content

Commit

Permalink
we introduced a breaking change in outputs rolling back with hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
sbe-arg committed Oct 4, 2022
1 parent 7497ca6 commit b3501df
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# auto releases is not working atm and is deleting releases due branch tags
#- name: automatic-draft-release
# uses: marvinpinto/action-automatic-releases@v1.2.1
# with:
# draft: true
# repo_token: ${{ secrets.GITHUB_TOKEN }}
# title: "${{ steps.tag.outputs.tag }}: [title-edit-me] by:${{ github.actor }}"
# automatic_release_tag: ${{ steps.tag.outputs.tag }}
- name: automatic-draft-release
uses: marvinpinto/action-automatic-releases@v1.2.1
with:
draft: true
repo_token: ${{ secrets.GITHUB_TOKEN }}
title: "${{ steps.tag.outputs.tag }}: [title-edit-me] by:${{ github.actor }}"
automatic_release_tag: ${{ steps.tag.outputs.new_tag }}

- name: version-tag-major
env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ jobs:
shell: bash
run: |
set -x
MAIN_OUTPUT_TAG=${{ steps.test_main.outputs.tag }}
MAIN_OUTPUT_TAG=${{ steps.test_main.outputs.old_tag }}
MAIN_OUTPUT_NEWTAG=${{ steps.test_main.outputs.new_tag }}
MAIN_OUTPUT_PART=${{ steps.test_main.outputs.part }}
PRE_OUTPUT_TAG=${{ steps.test_pre.outputs.tag }}
PRE_OUTPUT_TAG=${{ steps.test_pre.outputs.old_tag }}
PRE_OUTPUT_NEWTAG=${{ steps.test_pre.outputs.new_tag }}
PRE_OUTPUT_PART=${{ steps.test_pre.outputs.part }}
Expand Down
3 changes: 2 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ fi
# set outputs
echo "::set-output name=new_tag::$new"
echo "::set-output name=part::$part"
echo "::set-output name=tag::$tag"
echo "::set-output name=tag::$new" # this needs to go in v2 is breaking change
echo "::set-output name=old_tag::$tag"

# dry run exit without real changes
if $dryrun
Expand Down

0 comments on commit b3501df

Please sign in to comment.