Skip to content

Commit

Permalink
Merge pull request #35 from Arseno25/tes/notif-test
Browse files Browse the repository at this point in the history
test: test notif for telegram
  • Loading branch information
Arseno25 authored Apr 10, 2024
2 parents 91e5500 + 88c98f0 commit ea5595d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/notif.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ jobs:
- name: Get PR source branch
id: pr_source_branch
run: echo "PR_SOURCE_BRANCH=$(git show --no-patch --format='%B' ${{ steps.pr.outputs.PR_NUMBER }} | grep -oP 'from \K\w+')" >> $GITHUB_ENV
run: |
PR_SOURCE_BRANCH=$(curl --silent --location --header "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" "https://api.github.com/repos/${{ github.repository }}/pulls/${{ env.PR_NUMBER }}" | jq -r .head.ref)
echo "PR_SOURCE_BRANCH=$PR_SOURCE_BRANCH" >> $GITHUB_ENV
- name: Get PR target branch
id: pr_target_branch
Expand All @@ -50,4 +52,4 @@ jobs:
with:
to: ${{ secrets.TELEGRAM_CHAT_ID }}
token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
message: "${{ env.COMMIT_AUTHOR }} upload some a fresh code to ${{ env.PR_NUMBER }}. Commit: '${{ env.COMMIT_MESSAGE }}' /n PR Title: ${{ env.PR_TITLE }} \n PR Source Branch: ${{ env.PR_SOURCE_BRANCH }} /n PR Target Branch: ${{ env.PR_TARGET_BRANCH }}"
message: "${{ env.COMMIT_AUTHOR }} upload some a fresh code to ${{ env.PR_NUMBER }}. \nCommit: '${{ env.COMMIT_MESSAGE }}' \n'${{ env.PR_TITLE }}'."

0 comments on commit ea5595d

Please sign in to comment.