From c362d621480e90e3edbf452587063ad5ad131314 Mon Sep 17 00:00:00 2001 From: "Stephen M. Coakley" Date: Fri, 9 Oct 2026 20:19:26 -0500 Subject: [PATCH 1/2] Automate curl updates Set up an Actions workflow to automate the process of creating an initial PR to bump the submodule whenever a new version of curl is released. This isn't going to do the work for us if there are build changes, but at least it is a starting point and also notifies us when a new release is ready. --- .github/workflows/update-curl.yml | 45 +++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/update-curl.yml diff --git a/.github/workflows/update-curl.yml b/.github/workflows/update-curl.yml new file mode 100644 index 000000000..6e612b81a --- /dev/null +++ b/.github/workflows/update-curl.yml @@ -0,0 +1,45 @@ +# This workflow automates some of the process of updating curl-sys to the latest +# version of curl upstream. + +name: Update curl + +on: + schedule: + - cron: '0 12 * * 5' + workflow_dispatch: + +jobs: + update-submodule: + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + steps: + - uses: actions/checkout@v7 + with: + submodules: true + + - name: Update submodule to latest release + id: update + run: | + LATEST_TAG=$(gh release view --repo curl/curl --json tagName --jq .tagName) + cd curl-sys/curl + git fetch --tags + git checkout $LATEST_TAG + echo "tag=$LATEST_TAG" >> $GITHUB_OUTPUT + + - name: Create pull request + uses: peter-evans/create-pull-request@v7 + with: + branch: update-curl-to-${{ steps.update.outputs.tag }} + commit-message: "chore: update curl to ${{ steps.update.outputs.tag }}" + title: "Update curl to ${{ steps.update.outputs.tag }}" + body: | + Update the bundled curl submodule to version ${{ steps.update.outputs.tag }}. + + Changelog: + + This PR was created in an automated fashion. Additional changes may + be required to get the new version of curl to work with our + `build.rs` script. + labels: curl-update From 424c2c88794c9ca5901e4a593a23484c44751c68 Mon Sep 17 00:00:00 2001 From: "Stephen M. Coakley" Date: Fri, 9 Oct 2026 20:26:55 -0500 Subject: [PATCH 2/2] Use PAT for committing --- .github/workflows/update-curl.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/update-curl.yml b/.github/workflows/update-curl.yml index 6e612b81a..9001677ae 100644 --- a/.github/workflows/update-curl.yml +++ b/.github/workflows/update-curl.yml @@ -31,6 +31,7 @@ jobs: - name: Create pull request uses: peter-evans/create-pull-request@v7 with: + token: ${{ secrets.GH_PAT }} branch: update-curl-to-${{ steps.update.outputs.tag }} commit-message: "chore: update curl to ${{ steps.update.outputs.tag }}" title: "Update curl to ${{ steps.update.outputs.tag }}"