Skip to content

Dependency Autoupdate Weekly #3

Dependency Autoupdate Weekly

Dependency Autoupdate Weekly #3

# 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@v3
- 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@v4
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.*