Skip to content

Commit ccf3db2

Browse files
chore: apply CI template update (#969)
Co-authored-by: ci-update-dispatcher[bot] <268749283+ci-update-dispatcher[bot]@users.noreply.github.com>
1 parent fb88077 commit ccf3db2

5 files changed

Lines changed: 66 additions & 32 deletions

File tree

.copier-answers.ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
2-
_commit: '2944179'
2+
_commit: e35a7cb
33
_src_path: gh:athackst/ci
44
bump_script_path: .github/bump.sh
55
release_template: "# Get it\n\n ## Python\n\n Install it with pip\n\n ```bash\n\

.github/workflows/pr_automerge.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# This file is generated from athackst/ci/template/.github/workflows/pr_automerge.yml.jinja.
2+
# Do not edit directly; update the template instead.
3+
4+
name: PR Automerge
5+
6+
on:
7+
pull_request_target:
8+
types:
9+
- labeled
10+
- unlabeled
11+
12+
jobs:
13+
pr-automerge:
14+
permissions:
15+
contents: write
16+
pull-requests: write
17+
checks: read
18+
uses: athackst/ci/.github/workflows/automerge.yml@main
19+
secrets:
20+
token: ${{ secrets.CI_BOT_TOKEN }}

.github/workflows/pr_bot.yml

Lines changed: 7 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -4,36 +4,12 @@
44
name: PR Bot
55

66
on:
7-
pull_request:
8-
pull_request_target:
7+
workflow_dispatch:
98

109
jobs:
11-
pr-label:
12-
permissions:
13-
contents: read
14-
pull-requests: write
15-
uses: athackst/ci/.github/workflows/pr_labeler.yml@main
16-
secrets: inherit
17-
18-
pr-automerge:
19-
if: ${{ github.event_name == 'pull_request_target' }}
20-
needs: pr-label
21-
permissions:
22-
contents: write
23-
pull-requests: write
24-
checks: read
25-
uses: athackst/ci/.github/workflows/automerge.yml@main
26-
secrets:
27-
token: ${{ secrets.CI_BOT_TOKEN }}
28-
29-
pr-bump:
30-
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.user.login != 'dependabot[bot]' }}
31-
needs: pr-label
32-
permissions:
33-
contents: write
34-
pull-requests: write
35-
uses: athackst/ci/.github/workflows/pr_bump.yml@main
36-
with:
37-
bump-script: .github/bump.sh
38-
secrets:
39-
token: ${{ secrets.CI_BOT_TOKEN }}
10+
deprecated:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Deprecated
14+
run: |
15+
echo "Use labeler.yml, automerge.yml, and bump.yml instead of pr_bot.yml."

.github/workflows/pr_bump.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# This file is generated from athackst/ci/template/.github/workflows/pr_bump.yml.jinja.
2+
# Do not edit directly; update the template instead.
3+
4+
name: PR Bump
5+
6+
on:
7+
pull_request:
8+
types:
9+
- labeled
10+
- unlabeled
11+
12+
jobs:
13+
pr-bump:
14+
if: ${{ github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' }}
15+
permissions:
16+
contents: write
17+
pull-requests: write
18+
uses: athackst/ci/.github/workflows/bump.yml@main
19+
with:
20+
bump-script: .github/bump.sh
21+
secrets:
22+
token: ${{ secrets.CI_BOT_TOKEN }}

.github/workflows/pr_labeler.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# This file is generated from athackst/ci/template/.github/workflows/pr_labeler.yml.jinja.
2+
# Do not edit directly; update the template instead.
3+
4+
name: PR Labeler
5+
6+
on:
7+
pull_request_target:
8+
9+
jobs:
10+
pr-label:
11+
permissions:
12+
contents: read
13+
pull-requests: write
14+
uses: athackst/ci/.github/workflows/labeler.yml@main
15+
secrets:
16+
token: ${{ secrets.CI_BOT_TOKEN }}

0 commit comments

Comments
 (0)