Skip to content

Commit 0af82a8

Browse files
committed
Run danger on forked PR
1 parent 04c529d commit 0af82a8

File tree

3 files changed

+30
-16
lines changed

3 files changed

+30
-16
lines changed

.github/workflows/danger.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: danger
2+
on: pull_request_target
3+
jobs:
4+
danger:
5+
runs-on: ubuntu-latest
6+
permissions:
7+
pull-requests: write
8+
statuses: write
9+
steps:
10+
- uses: actions/checkout@v4
11+
with:
12+
path: default
13+
- uses: actions/checkout@v4
14+
with:
15+
ref: refs/pull/${{ github.event.pull_request.number }}/merge
16+
path: topic
17+
set-safe-directory: false
18+
- uses: ruby/setup-ruby@v1
19+
with:
20+
ruby-version: '3.3'
21+
bundler-cache: true
22+
working-directory: default
23+
- run: bundle exec danger --dangerfile=../default/Dangerfile
24+
working-directory: topic
25+
env:
26+
BUNDLE_GEMFILE: ../default/Gemfile
27+
DANGER_DO_NOT_POST_INVALID_DANGERFILE_ERROR: ''
28+
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/lint.yml

-14
This file was deleted.

.github/workflows/test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
name: Test
1+
name: test
22
on: push
33
jobs:
44
test:
5-
runs-on: ubuntu-24.04
5+
runs-on: ubuntu-latest
66
name: Ruby ${{ matrix.ruby-version }}
77
strategy:
88
matrix:

0 commit comments

Comments
 (0)