Skip to content

Commit

Permalink
Merge pull request #17 from ApolloAutomation/NewBody
Browse files Browse the repository at this point in the history
New PR Body
  • Loading branch information
TrevorSchirmer authored Nov 8, 2024
2 parents 4afa70e + 9f3e5d9 commit c49644b
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
30 changes: 29 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Integrations/ESPHome/Core.yaml
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
Expand Down

0 comments on commit c49644b

Please sign in to comment.