Skip to content

Commit

Permalink
Update Move_issue_to_WitcherTPRG.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Pushkinmazila authored Mar 31, 2024
1 parent 0fcf22c commit 95c3737
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/Move_issue_to_WitcherTPRG.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,16 @@ jobs:
run: |
latest_release=$(curl -s "https://api.github.com/repos/Pushkinmazila/WitcherTPRG/releases/latest" | jq -r '.tag_name')
echo "::set-output name=latest_release::$latest_release"
- name: Increment Latest Release
id: increment_release
run: |
current_release="${{ steps.get_release.outputs.latest_release }}"
incremented_release=$(echo $current_release | awk -F '.' '{ print $1 "." $2 "." $3 + 1 }')
echo "::set-output name=incremented_release::$incremented_release"
- name: Use Incremented Release
run: echo "Incremented release is ${{ steps.increment_release.outputs.incremented_release }}"
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand All @@ -39,4 +49,4 @@ jobs:
body: Release notes
draft: false
prerelease: false
run: echo "Latest release is ${{ steps.get_release.outputs.latest_release }}"
run: echo "Latest release is ${{ steps.increment_release.outputs.incremented_release }}"

0 comments on commit 95c3737

Please sign in to comment.