diff --git a/.github/workflows/update-entrypoint.yml b/.github/workflows/update-entrypoint.yml index 7357966..7ffd61c 100644 --- a/.github/workflows/update-entrypoint.yml +++ b/.github/workflows/update-entrypoint.yml @@ -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 @@ -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 }}