a659c02bbd
The littlefs CI is actually in a nice state that generates a lot of information about PRs (code/stack/struct changes, line/branch coverage changes, benchmark changes), but GitHub's UI has changed overtime to make CI statuses harder to find for some reason. This bot comment should hopefully make this information easy to find without creating too much noise in the discussion. If not, this can always be changed later.
32 lines
983 B
YAML
32 lines
983 B
YAML
name: post-release
|
|
on:
|
|
release:
|
|
branches: [master]
|
|
types: [released]
|
|
|
|
defaults:
|
|
run:
|
|
shell: bash -euv -o pipefail {0}
|
|
|
|
jobs:
|
|
post-release:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
# trigger post-release in dependency repo, this indirection allows the
|
|
# dependency repo to be updated often without affecting this repo. At
|
|
# the time of this comment, the dependency repo is responsible for
|
|
# creating PRs for other dependent repos post-release.
|
|
- name: trigger-post-release
|
|
continue-on-error: true
|
|
run: |
|
|
curl -sS -X POST -H "authorization: token ${{secrets.BOT_TOKEN}}" \
|
|
"$GITHUB_API_URL/repos/${{secrets.POST_RELEASE_REPO}}/dispatches" \
|
|
-d "$(jq -n '{
|
|
event_type: "post-release",
|
|
client_payload: {
|
|
repo: env.GITHUB_REPOSITORY,
|
|
version: "${{github.event.release.tag_name}}",
|
|
},
|
|
}' | tee /dev/stderr)"
|
|
|