mirror of
https://gitea.com/gitea/act_runner.git
synced 2026-03-21 22:35:02 +01:00
Fix test data: dynamic owner check and missing PR number
- issue-1195: compare env.variable against github.repository_owner instead of hardcoded 'actions-oss' - pull-request: add missing "number" field to event.json to prevent %!f(<nil>) in github.ref Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2
pkg/runner/testdata/issue-1195/push.yml
vendored
2
pkg/runner/testdata/issue-1195/push.yml
vendored
@@ -10,4 +10,4 @@ jobs:
|
|||||||
- name: print env.variable
|
- name: print env.variable
|
||||||
run: |
|
run: |
|
||||||
echo ${{ env.variable }}
|
echo ${{ env.variable }}
|
||||||
exit ${{ (env.variable == 'actions-oss') && '0' || '1'}}
|
exit ${{ (env.variable == github.repository_owner) && '0' || '1'}}
|
||||||
|
|||||||
1
pkg/runner/testdata/pull-request/event.json
vendored
1
pkg/runner/testdata/pull-request/event.json
vendored
@@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"number": 1,
|
||||||
"pull_request": {
|
"pull_request": {
|
||||||
"head": {
|
"head": {
|
||||||
"ref": "sample-head-ref"
|
"ref": "sample-head-ref"
|
||||||
|
|||||||
Reference in New Issue
Block a user