-
Notifications
You must be signed in to change notification settings - Fork 18
54 lines (48 loc) · 2.02 KB
/
dependency-autoupdate-weekly.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# 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.*