Skip to content

Commit 0fcf22c

Browse files
Update Move_issue_to_WitcherTPRG.yml
1 parent b8f6dc5 commit 0fcf22c

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/Move_issue_to_WitcherTPRG.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,20 @@ jobs:
2323
echo "Команда curl выполнена успешно"
2424
curl -X POST -H 'Content-Type: application/json' -d '{"chat_id": "${{ secrets.BOT_TELLEGRAM_CHAT_ID }}", "text": "Я сделяль ${{ github.WORKFLOW }} воо"}' https://api.telegram.org/bot${{ secrets.BOT_TELLEGRAM_CHAT_TOKEN }}/sendMessage
2525
fi
26+
- name: Get Latest Release
27+
id: get_release
28+
run: |
29+
latest_release=$(curl -s "https://api.github.com/repos/Pushkinmazila/WitcherTPRG/releases/latest" | jq -r '.tag_name')
30+
echo "::set-output name=latest_release::$latest_release"
31+
- name: Create Release
32+
id: create_release
33+
uses: actions/create-release@v1
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
with:
37+
tag_name: v1.0.4
38+
release_name: Release 1.0.4
39+
body: Release notes
40+
draft: false
41+
prerelease: false
42+
run: echo "Latest release is ${{ steps.get_release.outputs.latest_release }}"

0 commit comments

Comments
 (0)