You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/actions/check-origin/action.yml
+14-7Lines changed: 14 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -18,13 +18,17 @@ description: Checks the repository owner. The publish/deploy steps should not be
18
18
19
19
inputs:
20
20
repo-owner:
21
-
description: Repository owner
21
+
description: Repository owner.
22
22
required: true
23
23
default: ${{ github.repository_owner }}
24
24
original-owner:
25
-
description: Original repository owner
25
+
description: Original repository owner.
26
26
required: true
27
27
default: 'rfprod'
28
+
bail-out:
29
+
description: Exit with an error code 1 if origin verification fails.
30
+
required: false
31
+
default: 'true'
28
32
outputs:
29
33
origin:
30
34
description: Indicates that the repository owner is the original owner which means that it is not a fork. Has two values - 'true' if the repo owner is the original owner, 'false' if the repo owner is not the original owner, i.e. it is a fork.
@@ -39,15 +43,18 @@ runs:
39
43
run: |
40
44
echo "Checking repository owner..."
41
45
ORIGIN='false'
42
-
if [ "$REPO_OWNER" == "$ORIGINAL_OWNER" ]; then ORIGIN='true'; fi
46
+
if [[ "$REPO_OWNER" == "$ORIGINAL_OWNER" ]]; then ORIGIN='true'; fi
0 commit comments