mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-27 01:50:34 +08:00
v1.18.0 was the first stable tag this workflow ran on, and it failed with "PX4 branch release/1.18 not found". The check looked for a local refs/heads/release/1.18, but actions/checkout only creates remote-tracking refs for branches it does not check out, so on a tag push that ref never exists. The push further down would have failed too: it still put the token in the clone URL, which stopped working for sync_to_px4_msgs.yml in October. Move the logic into Tools/ci/px4_msgs_tag.sh so it can be run outside of Actions. The script fetches the PX4 tag and px4_msgs into a scratch directory instead of relying on the refs of the checkout, so it no longer needs the PX4 release branch at all, and it authenticates through gh's credential helper like the sync workflow does. Two things behave differently: - The definitions are compared against the PX4 tag instead of the tip of the PX4 release branch, and a file missing from px4_msgs now fails the check. git diff did not report those because they were untracked. - The package.xml version in px4_msgs is set to the release version before tagging. release/1.18 still says 1.17.0, and a package built from the tag takes its version from that file. Assisted-by: Claude:claude-fable-5-2 Signed-off-by: Ramon Roche <mrpollo@gmail.com>