Skip to content

Commit

Permalink
Change dry-run check.
Browse files Browse the repository at this point in the history
  • Loading branch information
kinyoklion committed Aug 8, 2023
1 parent ab6e570 commit 4c4e288
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/actions/publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@ runs:
run: ./github/scripts/configure_rebar3.sh
env:
HEX_AUTH_TOKEN: ${{ inputs.token }}
if: ${{ !inputs.dry_run }}
if: ${{ inputs.dry_run == 'false' }}

- name: Authorization check
shell: bash
run: rebar3 hex whoami
if: ${{ !inputs.dry_run }}
- name: Publish Library dry_run=${{ inputs.dry_run }} prerelease=${{ inputs.prerelease }}
if: ${{ inputs.dry_run == 'false' }}

- name: Publish Library
shell: bash
run: echo PUBLISHING! #rebar3 hex publish
# Do not publish a dry run.
if: ${{ !inputs.dry_run }}
if: ${{ inputs.dry_run == 'false' }}

0 comments on commit 4c4e288

Please sign in to comment.