-
Notifications
You must be signed in to change notification settings - Fork 10
36 lines (36 loc) · 1.11 KB
/
cruft-prs.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
name: make cruft PRs for all projects using us
on:
release:
types: [published]
workflow_dispatch:
inputs:
release:
description: "Tag of the release PRs should me made for"
type: string
required: true
jobs:
cruft-prs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "pip"
cache-dependency-path: "**/pyproject.toml"
- name: Install build dependencies
run: python -m pip install --upgrade pip wheel
- name: Install package with scripts
run: pip install ./scripts
- name: Update template repo registry
run: send-cruft-prs ${{ env.RELEASE }}
env:
RELEASE: ${{ github.event_name == 'release' && github.event.release.tag_name || github.event.inputs.release }}
GITHUB_TOKEN: ${{ secrets.BOT_GH_TOKEN }}
FORCE_COLOR: "1"
COLUMNS: "150"
- uses: actions/upload-artifact@v3
with:
name: cruft-logs
path: log/