Skip to content

Fix release tracker on multi-line commit messages - #267

Open
fitzyracing1 wants to merge 2 commits into
nasa:gh-pagesfrom
fitzyracing1:fix/release-tracker-multiline
Open

fitzyracing1 wants to merge 2 commits into
nasa:gh-pagesfrom
fitzyracing1:fix/release-tracker-multiline

Conversation

@fitzyracing1

Copy link
Copy Markdown

fixing the Run Release Tracker workflow

  • "Get Commit Message" wrote message=$(git log -1 --pretty=%B) to $GITHUB_OUTPUT. Merge commits have more than one line (e.g. "Merge pull request new tab #265 ... / new tab"), so the runner failed with Invalid format 'new tab'. Now uses the message<<EOF multi-line form.
  • release-tracker-github.sh exits 0 instead of 1 when the commit has no point#N, so regular page updates no longer turn the workflow into a failure.

Tested on a fork: https://github.com/fitzyracing1/api-docs/actions/runs/38210789148 (passes).

Note: the fork has no RELEASE_TOKEN, so the actual update to customapps-release-tracker on a real point#N commit wasn't tested and still needs that secret here. That part is unchanged.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant