Skip to content

Commit 68b88ca

Browse files
author
Michael Zaikin
committed
Fix release workflow
1 parent bac0bed commit 68b88ca

3 files changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ jobs:
4747
uses: docker/setup-buildx-action@v2
4848
with:
4949
install: true
50+
platforms: linux/amd64,linux/arm64
5051

5152
- name: Log in to the registry
5253
uses: docker/login-action@v1

.github/workflows/notify.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,16 @@ jobs:
1212
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
1313
steps:
1414
- uses: actions/checkout@master
15+
- uses: dorny/paths-filter@v2
16+
id: filter
17+
with:
18+
filters: |
19+
changelog:
20+
- 'CHANGELOG.md'
1521
- name: Set env
16-
run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF#refs/*/}
22+
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
1723
- name: telegram notification
24+
if: steps.filter.outputs.changelog == 'true'
1825
uses: appleboy/telegram-action@master
1926
with:
2027
to: ${{ secrets.TELEGRAM_TO }}
@@ -23,6 +30,7 @@ jobs:
2330
Pytezos ${{ env.RELEASE_VERSION }} has been released 🎉
2431
More info at https://github.com/baking-bad/pytezos/releases/tag/${{ env.RELEASE_VERSION }}
2532
- name: slack notification
33+
if: steps.filter.outputs.changelog == 'true'
2634
uses: Ilshidur/action-slack@master
2735
env:
2836
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Set env
13-
run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF#refs/*/}
13+
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
1414

1515
- name: Check out the repo
1616
uses: actions/checkout@v3

0 commit comments

Comments
 (0)