-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from ApolloAutomation/NewBody
New PR Body
- Loading branch information
Showing
2 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -121,6 +121,13 @@ jobs: | |
PR_BODY=$(echo "$PR_INFO" | jq -r '.[0].body') | ||
echo "$PR_BODY" > pr_body.txt # Save to a file | ||
- name: Set PR Body as Environment Variable | ||
run: | | ||
PR_BODY=$(<pr_body.txt) | ||
echo "PR_BODY<<EOF" >> $GITHUB_ENV | ||
echo "$PR_BODY" >> $GITHUB_ENV | ||
echo "EOF" >> $GITHUB_ENV | ||
- name: Read version from YAML file | ||
id: read_version | ||
run: | | ||
|
@@ -135,12 +142,33 @@ jobs: | |
with: | ||
tag_name: "${{ env.project_version }}" | ||
release_name: "Firmware Release ${{ env.project_version }}" | ||
body: "$(cat pr_body.txt)" | ||
body: "${{ env.PR_BODY }}" | ||
draft: false | ||
prerelease: false | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Upload Firmware Files to Release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
for file in $(find firmware -type f); do | ||
filename=$(basename "$file") | ||
echo "Uploading $filename from firmware directory" | ||
gh release upload "${{ steps.create_release.outputs.upload_url }}" "$file" --clobber --repo ${{ github.repository }} | ||
done | ||
# Upload each file in firmware-b folder | ||
- name: Upload Firmware-B Files to Release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
for file in $(find firmware-b -type f); do | ||
filename=$(basename "$file") | ||
echo "Uploading $filename from firmware-b directory" | ||
gh release upload "${{ steps.create_release.outputs.upload_url }}" "$file" --clobber --repo ${{ github.repository }} | ||
done | ||
- uses: actions/[email protected] | ||
with: | ||
name: site | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
substitutions: | ||
version: "24.11.7.11" | ||
version: "24.11.7.12" | ||
|
||
esp32: | ||
board: esp32-c3-devkitm-1 | ||
|