chore: attemp 4 to fix CI failure after the recent CHANGELOG changes

pull/1890/head
Ellet 11 months ago
parent fc81080b0c
commit 1798a58757
  1. 11
      .github/workflows/publish.yml

@ -35,7 +35,7 @@ jobs:
- name: Check flutter version
run: flutter --version
- name: Enable Local Dev
- name: Enable Local Development Environment (use the local packages)
run: ./scripts/enable_local_dev.sh
- name: Install dependencies
@ -66,19 +66,22 @@ jobs:
exit 1
fi
- name: Extract release tag
id: release_tag
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
- name: Fetch release notes
id: fetch-release-notes-request
uses: fjogeleit/http-request-action@v1
with:
url: https://api.github.com/repos/${{ github.repository_owner }}/${{ github.repository }}/releases/tags/${{ github.event.release.tag_name }}
url: https://api.github.com/repos/${{ github.repository_owner }}/${{ github.repository }}/releases/tags/${{ steps.release_tag.outputs.tag }}
method: 'GET'
customHeaders: '{"Authorization": "${{ secrets.GITHUB_TOKEN }}"}'
preventFailureOnNoResponse: 'false'
- name: Validate release notes response
run: |
responseBody=$(jq -r '.body' <<< ${{ fromJson(steps.fetch-release-notes-request.outputs.response).body }})
if [[ -z "$responseBody" ]]; then
if [[ -z "$(fromJson ${{ steps.fetch-release-notes-request.outputs }}).body" ]]; then
echo "Error: Release notes response is empty."
exit 1
fi

Loading…
Cancel
Save