From aa8655552b3654b221bc175e701e3641512b3630 Mon Sep 17 00:00:00 2001 From: Andrew Poelstra Date: Sat, 2 Mar 2024 14:34:24 +0000 Subject: [PATCH 1/3] ci: change branch of nightly bot to not conflict with rustfmt bot --- .github/workflows/cron-daily-update-nightly.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/cron-daily-update-nightly.yml b/.github/workflows/cron-daily-update-nightly.yml index 4e8c9233..7224283b 100644 --- a/.github/workflows/cron-daily-update-nightly.yml +++ b/.github/workflows/cron-daily-update-nightly.yml @@ -36,3 +36,4 @@ jobs: body: | Automated update to Github CI workflow `rust.yml` by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action commit-message: Automated update to Github CI to rustc nightly-${{ env.nightly_date }} + branch: create-pull-request/daily-nightly-update From 775d0c74cdbf455fd782b1516450a8d47dba2e29 Mon Sep 17 00:00:00 2001 From: Andrew Poelstra Date: Tue, 5 Mar 2024 14:08:41 +0000 Subject: [PATCH 2/3] ci: change automatic CI bot committer name to something without special characters --- .github/workflows/cron-daily-update-nightly.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/cron-daily-update-nightly.yml b/.github/workflows/cron-daily-update-nightly.yml index 7224283b..cf1e1e0e 100644 --- a/.github/workflows/cron-daily-update-nightly.yml +++ b/.github/workflows/cron-daily-update-nightly.yml @@ -32,6 +32,7 @@ jobs: uses: peter-evans/create-pull-request@v6 with: author: Update Nightly Rustc Bot + committer: Update Nightly Rustc Bot title: Automated daily update to rustc (to nightly-${{ env.nightly_date }}) body: | Automated update to Github CI workflow `rust.yml` by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action From 6b3c8b9f6bcb58944046fd5fd0f450fde61554bb Mon Sep 17 00:00:00 2001 From: Andrew Poelstra Date: Thu, 7 Mar 2024 14:46:16 +0000 Subject: [PATCH 3/3] ci: use personal access token for daily nightly update The chatbot says this should cause CI to trigger on the nightly update PRs. With the default token this does not happen because it has the potential to cause recursive CI actions. (How this is avoided by using a PAT, I don't know, but whatever.) --- .github/workflows/cron-daily-update-nightly.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/cron-daily-update-nightly.yml b/.github/workflows/cron-daily-update-nightly.yml index cf1e1e0e..0553d524 100644 --- a/.github/workflows/cron-daily-update-nightly.yml +++ b/.github/workflows/cron-daily-update-nightly.yml @@ -31,6 +31,7 @@ jobs: if: env.changes_made == 'true' uses: peter-evans/create-pull-request@v6 with: + token: ${{ secrets.APOELSTRA_CREATE_PR_TOKEN }} author: Update Nightly Rustc Bot committer: Update Nightly Rustc Bot title: Automated daily update to rustc (to nightly-${{ env.nightly_date }})