Replaces installing a patched anaconda-webui RPM from the forge's package registry: installer/anaconda-webui/vendor/ is upstream release 86 verbatim (see its PROVENANCE.md), and installer/Containerfile builds it with upstream's own `make install` in a native-platform stage, then copies the result over stock Fedora anaconda-webui. The produced file set matches Fedora's anaconda-webui-86-1.fc46 exactly. Edits to the installer UI now happen in vendor/ and ship on the next `task build-installer-iso`, with no RPM, registry or CI in between. Also follows bootc-image-builder's rename of --bootc-installer-payload-ref to --installer-payload-ref. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
68 lines
2.3 KiB
YAML
68 lines
2.3 KiB
YAML
name: repository
|
|
on:
|
|
pull_request_target:
|
|
types: [opened, reopened, synchronize, labeled, unlabeled]
|
|
|
|
env:
|
|
GITHUB_BASE: rhinstaller/anaconda-webui
|
|
|
|
jobs:
|
|
check:
|
|
name: Protection checks
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
pull-requests: write
|
|
timeout-minutes: 5
|
|
env:
|
|
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
|
|
BASE_SHA: ${{ github.event.pull_request.base.sha }}
|
|
|
|
steps:
|
|
- name: Clone target branch
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Fetch PR commits
|
|
run: git fetch origin "${BASE_SHA}" "${HEAD_SHA}"
|
|
|
|
- name: Clear .github-changes label
|
|
if: ${{ !endsWith(github.event.action, 'labeled') }}
|
|
uses: actions/github-script@v9
|
|
with:
|
|
script: |
|
|
try {
|
|
await github.rest.issues.removeLabel({
|
|
owner: context.repo.owner,
|
|
repo: context.repo.repo,
|
|
issue_number: context.issue.number,
|
|
name: '.github-changes'
|
|
});
|
|
} catch (e) {
|
|
if (e.name == 'HttpError' && e.status == 404) {
|
|
/* expected: 404 if label is unset */
|
|
} else {
|
|
throw e;
|
|
}
|
|
}
|
|
|
|
- name: Check for .github changes
|
|
# We want to run this check any time the .github-changes label is not
|
|
# set, which needs to include the case where we just unset it above.
|
|
if: ${{ !endsWith(github.event.action, 'labeled') ||
|
|
!contains(github.event.pull_request.labels.*.name, '.github-changes') }}
|
|
run: |
|
|
set -x
|
|
git log --full-history --exit-code --patch "${HEAD_SHA}" --not "${BASE_SHA}" -- .github >&2
|
|
|
|
- name: Check for node_modules availability and package.json consistency
|
|
run: |
|
|
# Make tools/node-modules available
|
|
make tools/node-modules
|
|
# for each commit in the PR which modifies package.json or node_modules...
|
|
for commit in $(git log --reverse --full-history --format=%H \
|
|
"${HEAD_SHA}" --not "${BASE_SHA}" -- package.json node_modules); do
|
|
# ... check that package.json and node_modules/.package.json are in sync
|
|
tools/node-modules verify "${commit}"
|
|
done
|