Skip to content

Commit

Permalink
update alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
stepanLav committed Nov 24, 2023
1 parent ffd0b0d commit ef92bc1
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions .github/workflows/update-entrypoint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ jobs:
create-pr-to-update:
runs-on: ubuntu-latest
outputs:
pr-url: ${{ steps.get_pr_url.outputs.pr-url }}
pr-url: ${{ steps.alert_data.outputs.pr-url }}
release-version: ${{ steps.alert_data.outputs.release-version }}

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -49,22 +50,23 @@ jobs:
${{ env.PR-URL }}
pr-base: main

- name: Get the pull request URL
id: get_pr_url
- name: Save data for alert
id: alert_data
run: |
echo "::set-output name=pr-url::$(cat pr_url.txt)"
echo "pr-url=$(cat pr_url.txt)" >> $GITHUB_OUTPUT
echo "release-version=${{ env.VERSION }}" >> $GITHUB_OUTPUT
# alert:
# runs-on: ubuntu-latest
# needs: [create-pr-to-update]
# steps:
# - name: Report
# uses: appleboy/telegram-action@master
# with:
# to: ${{ secrets.TELEGRAM_TO }}
# token: ${{ secrets.TELEGRAM_TOKEN }}
# message: |
# 🚀 New Android release notes have been created, please check them out:
alert:
runs-on: ubuntu-latest
needs: [create-pr-to-update]
steps:
- name: Report
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
message: |
🚀 Release notes have been updated for release - ${{ needs.create-pr-to-update.outputs.release-version }}:
# PR:
# ${{ needs.create-pr-to-update.outputs.pr-url }}
PR:
${{ needs.create-pr-to-update.outputs.pr-url }}

0 comments on commit ef92bc1

Please sign in to comment.