Skip to content

chore: change ui submodule to track 3.8 (#454) #316

chore: change ui submodule to track 3.8 (#454)

chore: change ui submodule to track 3.8 (#454) #316

name: Update Launchpad Bug
on:
push:
branches:
- master
- '[0-9]+.[0-9]+'
permissions:
contents: read
jobs:
update-launchpad-bug:
runs-on: ubuntu-slim
steps:
- name: Extract Launchpad bug ID
id: extract-bug
env:
GITHUB_EVENT_JSON: ${{ toJson(github.event) }}
run: |
MESSAGES=$(jq -r '.commits[].message' <<< "$GITHUB_EVENT_JSON")
BUG_ID=$(echo "$MESSAGES" \
| grep -oiP '\b(?:close|closes|closed|fix|fixes|fixed|resolve|resolves|resolved)\b.*LP:\s*\K[0-9]+' \
| head -1 || true)
if [ -z "$BUG_ID" ]; then
echo "No Launchpad bug ID found."
exit 0
fi
echo "Launchpad bug ID found: $BUG_ID"
echo "bug_id=$BUG_ID" >> "$GITHUB_OUTPUT"
- name: Checkout code
if: steps.extract-bug.outputs.bug_id != ''
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
- name: Set up Python
if: steps.extract-bug.outputs.bug_id != ''
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v.5.6.0
with:
python-version: '3.12'
- name: Install dependencies
if: steps.extract-bug.outputs.bug_id != ''
run: pip install launchpadlib
- name: Update bug status to Fix Committed
if: steps.extract-bug.outputs.bug_id != ''
env:
LANDER_LP_CONSUMER_KEY: ${{ secrets.LANDER_LP_CONSUMER_KEY }}
LANDER_LP_ACCESS_TOKEN: ${{ secrets.LANDER_LP_ACCESS_TOKEN }}
LANDER_LP_ACCESS_TOKEN_SECRET: ${{ secrets.LANDER_LP_ACCESS_TOKEN_SECRET }}
BUG_ID: ${{ steps.extract-bug.outputs.bug_id }}
BRANCH: ${{ github.ref_name }}
run: python3 utilities/mark_lp_bug_fix_committed.py