Skip to content

Commit

Permalink
feat: pass along args to allow a happy deploy from a diff repo (#227)
Browse files Browse the repository at this point in the history
* feat: pass repository arg to checkout action in deploy-happy-stack

* update

* Revert "update"

This reverts commit 975f4dc.

* add github token arg

* remove default values from args

* add defaults
  • Loading branch information
katyho authored Oct 13, 2023
1 parent 489cb0a commit b358d74
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/actions/deploy-happy-stack/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ inputs:
description: "Optional stack to pull images from rather than building them (i.e. should be used with image_source_env)"
required: false
default: ""
repository:
description: "Github repo to deploy"
required: false
github-token:
description: "Github token to use for checkout"
required: false
github-repo-branch:
description: "Branch of Github repo to deploy"
required: false
Expand All @@ -60,7 +66,9 @@ runs:
steps:
- uses: actions/checkout@v3
with:
repository: ${{ inputs.repository || github.repository }}
ref: ${{ inputs.github-repo-branch || github.event.pull_request && github.head_ref || github.ref_name }}
token: ${{ inputs.github-token || github.token }}
- name: Install happy
uses: chanzuckerberg/github-actions/.github/actions/install-happy@main
with:
Expand Down

0 comments on commit b358d74

Please sign in to comment.