mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-06-28 05:26:13 +02:00
add more debug data to changelog workflow, update changelog
This commit is contained in:
parent
68cf2d773d
commit
e1cbce8a08
3 changed files with 28 additions and 14 deletions
34
.github/workflows/release.yaml
vendored
34
.github/workflows/release.yaml
vendored
|
@ -75,6 +75,7 @@ jobs:
|
|||
git add pyproject.toml jrnl/__version__.py
|
||||
git commit -m "Increment version to ${JRNL_VERSION}"
|
||||
git tag -a -m "$JRNL_VERSION" "$JRNL_VERSION"
|
||||
git push
|
||||
git push --tags
|
||||
|
||||
- name: Build
|
||||
|
@ -170,18 +171,31 @@ jobs:
|
|||
command: |
|
||||
curl -Ls https://pypi.org/pypi/jrnl/json > api_response.json
|
||||
# if query doesn't have our version yet, give it some time before trying again
|
||||
[[ "null" == "$(jq ".releases[\"${PYPI_VERSION}\"][1].url" -r api_response.json)" ]] && exit 1
|
||||
if [[ "null" == "$(jq ".releases[\"${PYPI_VERSION}\"][1].url" -r api_response.json)" ]]; then
|
||||
echo "::debug::PYPI_VERSION: $PYPI_VERSION"
|
||||
echo "::debug::JQ VALUE: $(jq ".releases[\"${PYPI_VERSION}\"][1].url" -r api_response.json)"
|
||||
echo "::group::cat api_response.json"
|
||||
cat api_response.json
|
||||
echo "::endgroup::"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Update Homebrew Formula
|
||||
run: >
|
||||
brew bump-formula-pr "Formula/${FORMULA_NAME}.rb"
|
||||
--url $(jq ".releases[\"${PYPI_VERSION}\"][1].url" -r api_response.json)
|
||||
--sha256 $(jq ".releases[\"${PYPI_VERSION}\"][1].digests.sha256" -r api_response.json)
|
||||
--version=$PYPI_VERSION
|
||||
--no-audit
|
||||
--write
|
||||
--commit
|
||||
--force
|
||||
uses: nick-invision/retry@v2
|
||||
with:
|
||||
timeout_minutes: 8
|
||||
max_attempts: 6
|
||||
retry_wait_seconds: 30
|
||||
command: >
|
||||
brew bump-formula-pr "Formula/${FORMULA_NAME}.rb"
|
||||
--url $(jq ".releases[\"${PYPI_VERSION}\"][1].url" -r api_response.json)
|
||||
--sha256 $(jq ".releases[\"${PYPI_VERSION}\"][1].digests.sha256" -r api_response.json)
|
||||
--version=$PYPI_VERSION
|
||||
--no-audit
|
||||
--write
|
||||
--commit
|
||||
--force
|
||||
--verbose
|
||||
|
||||
- name: Update commit message
|
||||
run: |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue