diff --git a/.github/workflows/remove-graduated-overrides.yml b/.github/workflows/remove-graduated-overrides.yml index 886e924df2..636ad73217 100644 --- a/.github/workflows/remove-graduated-overrides.yml +++ b/.github/workflows/remove-graduated-overrides.yml @@ -3,6 +3,9 @@ name: remove-graduated-overrides on: schedule: - cron: '0 */6 * * *' + repository_dispatch: + types: do-something + jobs: remove-graduated-overrides: @@ -15,7 +18,7 @@ jobs: matrix: branch: - testing-devel - - next-devel + #- next-devel steps: - run: dnf install -y rpm-ostree # see related TODO above - name: Checkout @@ -27,10 +30,19 @@ jobs: git config user.name 'CoreOS Bot' git config user.email coreosbot@fedoraproject.org ci/remove-graduated-overrides.py - - name: Push updated overrides + - name: Open pull request run: | if ! git diff --quiet --exit-code; then - git commit -am "lockfiles: drop graduated overrides" \ + git commit -am "lockfiles: drop graduated overrides 🎓" \ -m "Triggered by remove-graduated-overrides GitHub Action." - git push fi + - name: Open pull request + uses: peter-evans/create-pull-request@v3.8.2 + with: + token: ${{ secrets.COREOSBOT_RELENG_TOKEN }} + branch: ${{ env.target_stream }}-graduation + push-to-fork: coreosbot-releng/fedora-coreos-config + title: "lockfiles: drop graduated overrides 🎓" + body: "Triggered by remove-graduated-overrides GitHub Action." + committer: "CoreOS Bot " + author: "CoreOS Bot "