fix #134 - include base_ref and head_ref in github context from the event json
This commit is contained in:
10
pkg/runner/testdata/pull-request/event.json
vendored
Normal file
10
pkg/runner/testdata/pull-request/event.json
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"pull_request": {
|
||||
"head": {
|
||||
"ref": "sample-head-ref"
|
||||
},
|
||||
"base": {
|
||||
"ref": "sample-base-ref"
|
||||
}
|
||||
}
|
||||
}
|
10
pkg/runner/testdata/pull-request/main.yaml
vendored
Normal file
10
pkg/runner/testdata/pull-request/main.yaml
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
name: basic
|
||||
on: pull_request
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: echo '${{github.ref}}'
|
||||
- run: echo '${{github.head_ref}}' | grep sample-head-ref
|
||||
- run: echo '${{github.base_ref}}' | grep sample-base-ref
|
4
pkg/runner/testdata/secrets/.actrc
vendored
Normal file
4
pkg/runner/testdata/secrets/.actrc
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
-W .
|
||||
-s MY_SECRET
|
||||
-s MULTILINE_SECRET
|
||||
-s JSON_SECRET
|
Reference in New Issue
Block a user