mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-26 17:30:28 +08:00
ci(px4_msgs): drop the release branch dispatch to the interface library
The dispatch to px4-ros2-interface-lib needs an account with write access to that repository, and the one time it fired, for release/1.18, it was refused. The library will pick up new PX4 release branches with a daily check of its own instead, which needs no access from our side. What is left of the workflow only creates the px4_msgs branch, so rename it to say that, and describe both paths in the release process. Assisted-by: Claude:claude-fable-5-2 Signed-off-by: Ramon Roche <mrpollo@gmail.com>
This commit is contained in:
1 parent
c304b9328a
commit
467514c7af
3 files changed
+34
-48
No files matched your search
@@ -0,0 +1,29 @@
|
||||
name: Create px4_msgs release branch
|
||||
|
||||
on:
|
||||
create:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
branch:
|
||||
description: 'Release branch name (e.g. release/1.18)'
|
||||
required: true
|
||||
type: string
|
||||
|
||||
permissions: {}
|
||||
|
||||
jobs:
|
||||
# The px4_msgs sync only runs when messages change, so without this a new
|
||||
# release branch has no px4_msgs branch until the first change lands on it.
|
||||
sync-px4-msgs:
|
||||
if: >-
|
||||
github.repository == 'PX4/PX4-Autopilot' &&
|
||||
(
|
||||
(github.event_name == 'create' && github.ref_type == 'branch' && startsWith(github.ref_name, 'release/')) ||
|
||||
github.event_name == 'workflow_dispatch'
|
||||
)
|
||||
permissions:
|
||||
contents: read
|
||||
uses: ./.github/workflows/sync_to_px4_msgs.yml
|
||||
with:
|
||||
branch: ${{ inputs.branch || github.ref_name }}
|
||||
secrets: inherit
|
||||
@@ -1,43 +0,0 @@
|
||||
name: Sync release branch to px4_msgs and px4-ros2-interface-lib
|
||||
|
||||
on:
|
||||
create:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
branch:
|
||||
description: 'Release branch name (e.g. release/1.18)'
|
||||
required: true
|
||||
type: string
|
||||
|
||||
permissions: {}
|
||||
|
||||
jobs:
|
||||
# px4_msgs goes first, so its release branch already exists when the
|
||||
# interface library is told to create the branch that builds against it.
|
||||
sync-px4-msgs:
|
||||
if: >-
|
||||
github.repository == 'PX4/PX4-Autopilot' &&
|
||||
(
|
||||
(github.event_name == 'create' && github.ref_type == 'branch' && startsWith(github.ref_name, 'release/')) ||
|
||||
github.event_name == 'workflow_dispatch'
|
||||
)
|
||||
permissions:
|
||||
contents: read
|
||||
uses: ./.github/workflows/sync_to_px4_msgs.yml
|
||||
with:
|
||||
branch: ${{ inputs.branch || github.ref_name }}
|
||||
secrets: inherit
|
||||
|
||||
notify-interface-lib:
|
||||
needs: sync-px4-msgs
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.PX4BUILTBOT_PERSONAL_ACCESS_TOKEN }}
|
||||
BRANCH: ${{ inputs.branch || github.ref_name }}
|
||||
steps:
|
||||
# gh prints the HTTP status and GitHub's message when the dispatch is refused
|
||||
- name: Dispatch release branch creation
|
||||
run: >-
|
||||
gh api repos/Auterion/px4-ros2-interface-lib/dispatches
|
||||
-f event_type=px4_release_branch
|
||||
-f "client_payload[branch]=$BRANCH"
|
||||
Reference in new issue
Block a user