Skip to content

Commit

Permalink
Merge pull request #25 from Gabriel-Trintinalia/fix-build-body-content
Browse files Browse the repository at this point in the history
Generate body description to temp file
  • Loading branch information
Gabriel-Trintinalia authored Aug 13, 2024
2 parents c472c61 + 3507d17 commit 40390cb
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,30 +26,30 @@ jobs:
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}

- name: Build without tests
run: ./gradlew build -PreleaseVersion=${{ steps.get_version.outputs.VERSION }}
env:
JAVA_OPTS: -Xmx2g -Dorg.gradle.daemon=false

- name: Read configuration file
id: read_config
run: |
config=$(cat linea-besu/build.json)
config=$(cat path/to/your/config.json)
echo "Configuration file content:"
echo "$config"
echo "::set-output name=config::$config"
echo "$config" > config.json
- name: Generate release body
id: generate_body
run: |
config="${{ steps.read_config.outputs.config }}"
config=$(cat config.json)
echo "Config content in generate_body step:"
echo "$config"
body="Draft release of version ${{ github.ref }}.\n\n## Modules and Versions\n"
modules=$(echo "$config" | jq -r '.modules[] | "- **\(.name)**: \(.version // "[source](\(.src))")"')
body="$body$modules"
echo "::set-output name=body::$body"
- name: Build without tests
run: ./gradlew build -PreleaseVersion=${{ steps.get_version.outputs.VERSION }}
env:
JAVA_OPTS: -Xmx2g -Dorg.gradle.daemon=false

- name: Draft Release
id: create_release
uses: actions/create-release@v1
Expand Down

0 comments on commit 40390cb

Please sign in to comment.