Skip to content

Commit

Permalink
Fix GitHub Action release building issue (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSomeMan authored Oct 19, 2024
1 parent 7679976 commit 13c959b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 18 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/build-fw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@ jobs:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
submodules: recursive

- name: Check system dependencies
run: |
if ! which jq > /dev/null 2>&1; then
sudo apt-get update
sudo apt-get install -y jq
fi
- name: Set up Python 3.8
uses: actions/setup-python@v5
with:
Expand Down
16 changes: 5 additions & 11 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@ jobs:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
submodules: recursive

- name: Check system dependencies
run: |
if ! which jq > /dev/null 2>&1; then
sudo apt-get update
sudo apt-get install -y jq
fi
- name: Set up Python 3.8
uses: actions/setup-python@v5
with:
Expand Down Expand Up @@ -95,12 +88,13 @@ jobs:
NAME=$(echo "${MESSAGE}" | head -n1)
DESCRIPTION=$(echo "${MESSAGE}" | tail -n +3)
# Escape line breaks in description to prevent JSON parsing issues
# DESCRIPTION=$(echo "${DESCRIPTION}" | jq -s -R '.')

echo "TAG=${VERSION}" >> $GITHUB_ENV
echo "RELEASE_TITLE=${NAME}" >> $GITHUB_ENV
echo "RELEASE_DESCRIPTION=${DESCRIPTION}" >> $GITHUB_ENV
{
echo 'RELEASE_DESCRIPTION<<EOF'
echo "${DESCRIPTION}"
echo 'EOF'
} >> $GITHUB_ENV

- name: Create GitHub Release
id: create_release
Expand Down

0 comments on commit 13c959b

Please sign in to comment.