Skip to content

Commit

Permalink
feat(): adding github-token
Browse files Browse the repository at this point in the history
  • Loading branch information
amohamedhey committed Mar 21, 2024
1 parent cc90fb1 commit 75bfb20
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# actions-label-semaphore

This action manage a semaphore system using labels in a remote repository.
This action manage a semaphore system using labels in a remote repository.
5 changes: 4 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,14 @@ inputs:
description: Set to true in order to enable timestamps on log messages
required: false
default: 'true'
github-token:
description: The token to use for the GitHub API and to update the remote repository
required: true
pr-label:
description: The label to use for the semaphore
required: true
pr-number:
description: The current pull request number if the action is not being triggered on tags
description: The current pull request number
required: true
argo-repo:
description: The repository to update with the semaphore version
Expand Down
1 change: 1 addition & 0 deletions scripts/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Your action logic goes here

export REPO_NAME="${GITHUB_REPOSITORY#*/}"
check_env_var "GITHUB_TOKEN"
check_env_var "PR_NUMBER"
check_env_var "PR_LABEL"
check_env_var "ARGO_REPO"
Expand Down

0 comments on commit 75bfb20

Please sign in to comment.