Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jlebon committed Sep 23, 2024
1 parent 8ffddec commit 6ff9046
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/bump-fedora-bootc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,22 @@ jobs:
bump-fedora-bootc-submodule:
name: Bump fedora-bootc submodule
runs-on: ubuntu-latest
container:
image: quay.io/coreos-assembler/coreos-assembler:latest
options: "--user root --privileged"
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
fetch-depth: 0
# https://github.com/actions/checkout/issues/766
- name: Mark git checkout as safe
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Check if there are new commits
run: |
set -x
previous_rev=$(git -C fedora-bootc rev-parse HEAD)
git submodule update --remote fedora-bootc
# the submodule init only fetch the submodule commit
# git -C fedora-bootc fetch origin master
new_rev=$(git -C fedora-bootc rev-parse HEAD)
if [ "${previous_rev}" != "${new_rev}" ]; then
if git -C fedora-bootc diff --quiet "${previous_rev}" "${new_rev}" tier-0 tier-x; then
Expand All @@ -39,7 +40,9 @@ jobs:
exit 0
fi
git -C fedora-bootc shortlog --no-merges "${previous_rev}..${new_rev}" > $RUNNER_TEMP/shortlog
git status
git -C fedora-bootc shortlog "${previous_rev}..${new_rev}" -- tier-0 tier-x
git -C fedora-bootc shortlog "${previous_rev}..${new_rev}" -- tier-0 tier-x > $RUNNER_TEMP/shortlog
marker=END-OF-LOG-MARKER-$RANDOM$RANDOM$RANDOM
cat >> $GITHUB_ENV <<EOF
Expand All @@ -51,7 +54,7 @@ jobs:
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.COREOSBOT_RELENG_TOKEN }}
push-to-fork: coreosbot-releng/fedora-coreos-config
push-to-fork: jlebon/fedora-coreos-config
branch: bump-fedora-bootc
commit-message: |
Bump fedora-bootc submodule
Expand Down
2 changes: 1 addition & 1 deletion fedora-bootc
Submodule fedora-bootc updated from 92172d to 243b2c

0 comments on commit 6ff9046

Please sign in to comment.