diff --git a/.github/workflows/dependency-autoupdate-weekly.yml b/.github/workflows/dependency-autoupdate-weekly.yml deleted file mode 100644 index 16f49193..00000000 --- a/.github/workflows/dependency-autoupdate-weekly.yml +++ /dev/null @@ -1,54 +0,0 @@ -# Configuration for autoupdating dependencies weekly. -# -# Once a week, at midnight UTC on Monday, we check for updates to -# - manylinux -# -# For each dependency that has an update, we create a pull request containing a -# single commit that updates the dependency. - -name: Dependency Autoupdate Weekly - -on: - schedule: - - cron: '0 0 * * 1' - workflow_dispatch: - inputs: - BUILD_PULL_REQUEST: - type: boolean - description: Build pull requests created by this workflow - default: true - -jobs: - autoupdate-manylinux: - runs-on: ubuntu-latest - steps: - - name: check out repository - uses: actions/checkout@v4 - - name: install Python packages - run: pip3 install --user requests - - name: search for update - run: $GITHUB_WORKSPACE/actions/update_manylinux.py - - name: allow building pull requests - if: github.event_name == 'schedule' || github.event.inputs.BUILD_PULL_REQUEST == 'true' - run: echo "ACTIONS_TOKEN=${{ secrets.ACTIONS_TOKEN }}" >> $GITHUB_ENV - - name: prevent building pull requests - if: github.event_name != 'schedule' && github.event.inputs.BUILD_PULL_REQUEST == 'false' - run: echo "ACTIONS_TOKEN=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_ENV - - name: apply update - uses: peter-evans/create-pull-request@v6 - with: - assignees: isc-adang - author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>" - commit-message: "[autoupdate-manylinux] update manylinux: ${{ env.MANYLINUX_UPDATE_INFO_ONELINE }}" - branch: autoupdate-manylinux - delete-branch: true - token: ${{ env.ACTIONS_TOKEN }} - title: "[autoupdate] Update manylinux: ${{ env.MANYLINUX_UPDATE_INFO_ONELINE }}" - body: |- - A new manylinux image is available. - - ${{ env.MANYLINUX_UPDATE_INFO_MULTILINE }} - - For details regarding manylinux images, see https://github.com/pypa/manylinux. - - *I am a bot, and this action was performed automatically.* diff --git a/.github/workflows/dependency-autoupdate-daily.yml b/.github/workflows/dependency-update.yml similarity index 85% rename from .github/workflows/dependency-autoupdate-daily.yml rename to .github/workflows/dependency-update.yml index 0b699923..76d50b23 100644 --- a/.github/workflows/dependency-autoupdate-daily.yml +++ b/.github/workflows/dependency-update.yml @@ -1,21 +1,19 @@ -# Configuration for autoupdating dependencies daily. +# Configuration for updating dependencies. # -# Once a day, at midnight UTC, we check for updates to +# Check for updates to # - ICU # - ccache for Windows # - Python for Windows -# - Python for Mac OS X # - Python for macOS universal # - Cython +# - manylinux # # For each dependency that has an update, we create a pull request containing a # single commit that updates the dependency. -name: Dependency Autoupdate Daily +name: Dependency Update on: - schedule: - - cron: '0 0 * * *' workflow_dispatch: inputs: BUILD_PULL_REQUEST: @@ -229,3 +227,37 @@ jobs: For details of all Python releases, see https://www.python.org/downloads/macos/. *I am a bot, and this action was performed automatically.* + + autoupdate-manylinux: + runs-on: ubuntu-latest + steps: + - name: check out repository + uses: actions/checkout@v4 + - name: install Python packages + run: pip3 install --user requests + - name: search for update + run: $GITHUB_WORKSPACE/actions/update_manylinux.py + - name: allow building pull requests + if: github.event_name == 'schedule' || github.event.inputs.BUILD_PULL_REQUEST == 'true' + run: echo "ACTIONS_TOKEN=${{ secrets.ACTIONS_TOKEN }}" >> $GITHUB_ENV + - name: prevent building pull requests + if: github.event_name != 'schedule' && github.event.inputs.BUILD_PULL_REQUEST == 'false' + run: echo "ACTIONS_TOKEN=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_ENV + - name: apply update + uses: peter-evans/create-pull-request@v6 + with: + assignees: isc-adang + author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>" + commit-message: "[autoupdate-manylinux] update manylinux: ${{ env.MANYLINUX_UPDATE_INFO_ONELINE }}" + branch: autoupdate-manylinux + delete-branch: true + token: ${{ env.ACTIONS_TOKEN }} + title: "[autoupdate] Update manylinux: ${{ env.MANYLINUX_UPDATE_INFO_ONELINE }}" + body: |- + A new manylinux image is available. + + ${{ env.MANYLINUX_UPDATE_INFO_MULTILINE }} + + For details regarding manylinux images, see https://github.com/pypa/manylinux. + + *I am a bot, and this action was performed automatically.* diff --git a/.gitignore b/.gitignore index 9d2c8035..cab0e49d 100644 --- a/.gitignore +++ b/.gitignore @@ -68,3 +68,4 @@ __pycache__ /thirdparty.zip wheelhouse/ *.bak +venv