Skip to content

Commit

Permalink
Fix release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Zaikin committed Feb 21, 2023
1 parent bac0bed commit 68b88ca
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
uses: docker/setup-buildx-action@v2
with:
install: true
platforms: linux/amd64,linux/arm64

- name: Log in to the registry
uses: docker/login-action@v1
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/notify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,16 @@ jobs:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
steps:
- uses: actions/checkout@master
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
changelog:
- 'CHANGELOG.md'
- name: Set env
run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF#refs/*/}
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: telegram notification
if: steps.filter.outputs.changelog == 'true'
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_TO }}
Expand All @@ -23,6 +30,7 @@ jobs:
Pytezos ${{ env.RELEASE_VERSION }} has been released 🎉
More info at https://github.com/baking-bad/pytezos/releases/tag/${{ env.RELEASE_VERSION }}
- name: slack notification
if: steps.filter.outputs.changelog == 'true'
uses: Ilshidur/action-slack@master
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set env
run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF#refs/*/}
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

- name: Check out the repo
uses: actions/checkout@v3
Expand Down

0 comments on commit 68b88ca

Please sign in to comment.