-
Notifications
You must be signed in to change notification settings - Fork 1.7k
39 lines (37 loc) · 1.41 KB
/
downstream-version-bump.yml
File metadata and controls
39 lines (37 loc) · 1.41 KB
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
name: Bump downstream dependencies
permissions:
contents: read
on:
workflow_dispatch:
schedule:
# Run daily
- cron: "0 10 * * *"
jobs:
bump:
if: github.repository_owner == 'pyca'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
# Needed so we can push back to the repo
persist-credentials: true
- name: Parse downstream dependencies
id: downstream-bump
run: ./.github/bin/bump_downstreams.sh
- uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
id: generate-token
with:
app_id: ${{ secrets.BORINGBOT_APP_ID }}
private_key: ${{ secrets.BORINGBOT_PRIVATE_KEY }}
if: steps.downstream-bump.outputs.HAS_UPDATES == 'true'
- name: Create Pull Request
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
with:
branch: "bump-downstreams"
commit-message: "Bump downstream dependencies in CI"
title: "Bump downstream dependencies in CI"
author: "pyca-boringbot[bot] <pyca-boringbot[bot]+106132319@users.noreply.github.com>"
body: |
${{ steps.downstream-bump.outputs.COMMIT_MSG }}
token: ${{ steps.generate-token.outputs.token }}
if: steps.downstream-bump.outputs.HAS_UPDATES == 'true'