Skip to content

Commit

Permalink
fix: testing skip release env variable 3 [skip tests]
Browse files Browse the repository at this point in the history
  • Loading branch information
bbatist-ban committed Mar 14, 2024
1 parent 8d62945 commit b10aba8
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/template-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,24 +90,24 @@ jobs:
run: sed -i 's/@version \".*\"/@version "${{ env.RELEASE_VERSION }}"/g' mix.exs
working-directory: Elixir/Konex

# # testing, working but we need to prevent next run.
# # adding [skip ci] to commit comment we can skip the new CI run onf the workflow
# # not working on multiple commits from pull request
# - name: Commit And Push version
# if: ${{ env.SKIP_RELEASE == 'false' && env.COMMIT_PUSH == 'true' }}
# uses: github-actions-x/[email protected]
# with:
# github-token: ${{ env.GITHUB_TOKEN }}
# push-branch: main
# commit-message: '[skip release] [skip ci] Upgrade version to ${{ env.RELEASE_VERSION }}'
# force-add: "true"
# files: Elixir/Konex/mix.exs docs/CHANGELOG.md
# name: Release Bot
# email: [email protected]
# testing, working but we need to prevent next run.
# adding [skip ci] to commit comment we can skip the new CI run onf the workflow
# not working on multiple commits from pull request
- name: Commit And Push version
if: ${{ env.SKIP_RELEASE == 'false' && env.COMMIT_PUSH == 'true' }}
uses: github-actions-x/[email protected]
with:
github-token: ${{ env.GITHUB_TOKEN }}
push-branch: main
commit-message: '[skip release] [skip ci] Upgrade version to ${{ env.RELEASE_VERSION }}'
force-add: "true"
files: Elixir/Konex/mix.exs docs/CHANGELOG.md
name: Release Bot
email: [email protected]

# - name: Publish to HEX
# if: ${{ env.SKIP_RELEASE == 'false' && env.PUBLISH_ARTIFACT == 'true' }}
# run: mix hex.publish --replace --yes
# working-directory: Elixir/Konex
# env:
# HEX_API_KEY: ${{ secrets.HEX_API_KEY }}
- name: Publish to HEX
if: ${{ env.SKIP_RELEASE == 'false' && env.PUBLISH_ARTIFACT == 'true' }}
run: mix hex.publish --replace --yes
working-directory: Elixir/Konex
env:
HEX_API_KEY: ${{ secrets.HEX_API_KEY }}

0 comments on commit b10aba8

Please sign in to comment.