Skip to content

Commit

Permalink
Remove workflows moved in GHCI
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Nov 5, 2024
1 parent 1cd77c5 commit 21c41bc
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 171 deletions.
49 changes: 0 additions & 49 deletions example-project/.github/workflows/audit.yaml

This file was deleted.

21 changes: 0 additions & 21 deletions example-project/.github/workflows/auto-review.yaml

This file was deleted.

52 changes: 0 additions & 52 deletions example-project/.github/workflows/changelog.yaml

This file was deleted.

20 changes: 0 additions & 20 deletions example-project/.github/workflows/delete-old-workflows-run.yaml

This file was deleted.

29 changes: 0 additions & 29 deletions example-project/.github/workflows/pr-checks.yaml

This file was deleted.

51 changes: 51 additions & 0 deletions example-project/.github/workflows/pull-request-automation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Auto reviews, merge and close pull requests

on:
pull_request:
types:
- opened
- reopened

jobs:
auto-merge:
name: Auto reviews pull requests from bots
runs-on: ubuntu-24.04
timeout-minutes: 5

steps:
- name: Print event
run: echo "${GITHUB}" | jq
env:
GITHUB: ${{ toJson(github) }}
- name: Print context
uses: actions/github-script@v7
with:
script: |-
console.log(context);
- name: Auto reviews GHCI updates
uses: actions/github-script@v7
with:
script: |-
github.rest.pulls.createReview({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.payload.pull_request.number,
event: 'APPROVE',
})
if: |-
startsWith(github.head_ref, 'ghci/audit/')
&& (github.event.pull_request.user.login == 'geo-ghci-test[bot]'
|| github.event.pull_request.user.login == 'geo-ghci-int[bot]'
|| github.event.pull_request.user.login == 'geo-ghci[bot]')
- name: Auto reviews Renovate updates
uses: actions/github-script@v7
with:
script: |-
github.rest.pulls.createReview({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.payload.pull_request.number,
event: 'APPROVE',
})
if: |-
github.event.pull_request.user.login == 'renovate[bot]'

0 comments on commit 21c41bc

Please sign in to comment.