diff --git a/.github/workflows/openshift-os.yml b/.github/workflows/openshift-os.yml index 9498813dfe..4d0ac236f3 100644 --- a/.github/workflows/openshift-os.yml +++ b/.github/workflows/openshift-os.yml @@ -34,10 +34,12 @@ jobs: - name: Check out repository uses: actions/checkout@v3 with: - repository: openshift/os + repository: jbtrystram/openshift-os # We need an unbroken commit chain when pushing to the fork. Don't # make assumptions about which commits are already available there. fetch-depth: 0 + # We need to checkout against the target branch + ref: ${{ github.event.inputs.target-branch }} - name: Update submodule env: @@ -58,7 +60,7 @@ jobs: cd fedora-coreos-config # Omit CoreOS Bot commits from the log message, since they generally # only affect FCOS - git shortlog "HEAD..testing-devel" --perl-regexp \ + git shortlog "HEAD..origin/$SOURCE_BRANCH" --perl-regexp \ --author='^((?!CoreOS Bot ).*)$' \ > $RUNNER_TEMP/shortlog @@ -67,7 +69,7 @@ jobs: echo "No non-trivial changes; exiting" exit 0 fi - git checkout $SOURCE_BRANCH + marker=OPENSHIFT-OS-END-OF-LOG-MARKER-$RANDOM$RANDOM$RANDOM cat >> $GITHUB_ENV <