Skip to content

Commit e55d6f1

Browse files
authored
ci: add version info to pr title (#487)
* ci: add version info to pr title * ci: remove echo * ci: add version to evo tool update pr
1 parent 1d75cbe commit e55d6f1

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

.github/workflows/core-download-update.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,19 @@ jobs:
1616
uses: actions/checkout@v4
1717

1818
- name: Run core download link update script
19-
run: "${GITHUB_WORKSPACE}/scripts/core-download-link-update.sh"
19+
id: update_script
20+
run: |
21+
output=$("${GITHUB_WORKSPACE}/scripts/core-download-link-update.sh")
22+
# Extract the version number from the line that starts with "Extracted Version:"
23+
version=$(echo "$output" | grep "Extracted Version:" | awk -F": " '{print $2}')
24+
echo "version=${version}" >> $GITHUB_OUTPUT
2025
2126
- name: Create Pull Request
2227
uses: peter-evans/create-pull-request@v6
2328
with:
2429
branch: update-docs/core-update-${{ github.sha }}
25-
title: "chore: update core download links to latest version"
30+
title: "chore: update core download links to version ${{ steps.update_script.outputs.version }}"
2631
body: |
27-
This PR updates download links in the documentation to use the latest Dash Core version.
28-
commit-message: "chore: update core download links to latest version"
32+
This PR updates download links in the documentation to use Dash Core version ${{ steps.update_script.outputs.version }}.
33+
commit-message: "chore: update core download links to version ${{ steps.update_script.outputs.version }}"
2934
reviewers: "thephez,PastaPastaPasta,UdjinM6"

.github/workflows/evo-tool-download-update.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,19 @@ jobs:
1616
uses: actions/checkout@v4
1717

1818
- name: Run evo tool download link update script
19-
run: "${GITHUB_WORKSPACE}/scripts/evo-tool-download-link-update.sh"
19+
id: update_script
20+
run: |
21+
output=$("${GITHUB_WORKSPACE}/scripts/evo-tool-download-link-update.sh")
22+
# Extract the version number from the line that starts with "Extracted Version:"
23+
version=$(echo "$output" | grep "Extracted Version:" | awk -F": " '{print $2}')
24+
echo "version=${version}" >> $GITHUB_OUTPUT
2025
2126
- name: Create Pull Request
2227
uses: peter-evans/create-pull-request@v6
2328
with:
2429
branch: update-docs/evo-tool-update-${{ github.sha }}
25-
title: "chore: update evo tool download links to latest version"
30+
title: "chore: update evo tool download links to version ${{ steps.update_script.outputs.version }}"
2631
body: |
27-
This PR updates download links in the documentation to use the latest Dash Evo Tool version.
28-
commit-message: "chore: update evo tool download links to latest version"
32+
This PR updates download links in the documentation to use Dash Evo Tool version ${{ steps.update_script.outputs.version }}.
33+
commit-message: "chore: update evo tool download links to version ${{ steps.update_script.outputs.version }}"
2934
reviewers: "thephez,pauldelucia"

0 commit comments

Comments
 (0)