Skip to content

Commit

Permalink
One-time release notification
Browse files Browse the repository at this point in the history
  • Loading branch information
droserasprout committed Jun 3, 2024
1 parent 5c16e63 commit 1870d62
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/binder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- master

jobs:
build:
binder:
name: Build
runs-on: ubuntu-latest
steps:
Expand Down
33 changes: 14 additions & 19 deletions .github/workflows/notify.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,35 @@
name: Release
name: Notify
on:
push:
tags:
- '*.*.0'
# FIXME: Temporary
# tags:
# - '*.*.0'
branches:
- ci/release-notifications

jobs:
build:
name: Build
notify:
name: Notify
runs-on: ubuntu-latest
env:
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 "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 }}
token: ${{ secrets.TELEGRAM_TOKEN }}
# FIXME: Temporary
message: |
Pytezos ${{ env.RELEASE_VERSION }} has been released πŸŽ‰
More info at https://github.com/baking-bad/pytezos/releases/tag/${{ env.RELEASE_VERSION }}
Pytezos 3.12.0 has been released πŸŽ‰
More info at https://github.com/baking-bad/pytezos/releases/tag/3.12.0
- name: slack notification
if: steps.filter.outputs.changelog == 'true'
uses: Ilshidur/action-slack@master
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
with:
# FIXME: Temporary
args: |
Pytezos ${{ env.RELEASE_VERSION }} has been released πŸŽ‰
More info at https://github.com/baking-bad/pytezos/releases/tag/${{ env.RELEASE_VERSION }}
Pytezos 3.12.0 has been released πŸŽ‰
More info at https://github.com/baking-bad/pytezos/releases/tag/3.12.0
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- "*.*.*"

jobs:
build:
release:
name: Build
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 1870d62

Please sign in to comment.