1
0
mirror of https://github.com/coreos/fedora-coreos-config.git synced 2026-02-05 09:45:30 +01:00

tree: import changes from testing-devel at 0a84651cb7

This commit is contained in:
CoreOS Bot
2022-02-24 01:17:49 +00:00
parent 5dd53fa937
commit 2bc0ba780f
2 changed files with 46 additions and 2 deletions

44
.github/workflows/promotion-diff.yml vendored Normal file
View File

@@ -0,0 +1,44 @@
---
name: Check promotion diffs
on:
pull_request:
branches: [next, testing, stable]
permissions:
contents: read
jobs:
promotion-diff:
name: Check promotion diffs
runs-on: ubuntu-latest
# Only run if this looks like a promotion PR
if: "startsWith(github.event.pull_request.title, 'tree: promote changes from')"
steps:
- name: Get base commit hash
env:
COMMIT_TITLE: ${{ github.event.pull_request.title }}
run: |
echo "ORIGIN_COMMIT=$(echo ${COMMIT_TITLE} | awk '{print $NF}')" >> $GITHUB_ENV
- name: Check out origin commit
uses: actions/checkout@v2
with:
path: origin
ref: ${{ env.ORIGIN_COMMIT }}
- name: Check out base branch
uses: actions/checkout@v2
with:
path: base
ref: ${{ github.base_ref }}
- name: Check out PR
uses: actions/checkout@v2
with:
path: new
- name: Ignore manifest files
run: |
# manifest.yaml is per-branch, so we care about changes vs. the
# one in the base, not the one from the origin
cp base/manifest.yaml origin/
- name: Compare trees
uses: coreos/check-diff@main
with:
basedir: origin
patchdir: new