Skip to content

Commit

Permalink
Make more generic
Browse files Browse the repository at this point in the history
  • Loading branch information
JargeZ committed Aug 23, 2024
1 parent c64761c commit 4d6566e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ runs:
inputs:
name:
description: Fly app name
event_action:
description: Event action name
default: ${{ github.event.action }}
required: true
image:
description: Optional pre-existing Docker image to use
config:
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if [ -z "$PR_NUMBER" ]; then
fi

GITHUB_REPOSITORY_NAME=${GITHUB_REPOSITORY#$GITHUB_REPOSITORY_OWNER/}
EVENT_TYPE=$(jq -r .action /github/workflow/event.json)
EVENT_TYPE=$INPUT_EVENT_ACTION

# Default the Fly app name to pr-{number}-{repo_owner}-{repo_name}
app="${INPUT_NAME:-pr-$PR_NUMBER-$GITHUB_REPOSITORY_OWNER-$GITHUB_REPOSITORY_NAME}"
Expand Down

0 comments on commit 4d6566e

Please sign in to comment.