-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
2,854 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
88 changes: 44 additions & 44 deletions
88
...ction-via-composite-dockerfile/action.yml → ...ia-composite-dockerfile/action/action.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,44 @@ | ||
inputs: | ||
who-to-greet: | ||
default: 'Mona the Octocat' | ||
runs: | ||
using: composite | ||
steps: | ||
# Test if GITHUB_ACTION_PATH is set correctly before all steps | ||
- run: stat $GITHUB_ACTION_PATH/push.yml | ||
shell: bash | ||
- run: stat $GITHUB_ACTION_PATH/action.yml | ||
shell: bash | ||
- run: '[[ "$GITHUB_ACTION_REPOSITORY" == "" ]] && [[ "$GITHUB_ACTION_REF" == "" ]]' | ||
shell: bash | ||
- uses: ./actions/docker-local | ||
id: dockerlocal | ||
with: | ||
who-to-greet: ${{inputs.who-to-greet}} | ||
- run: '[[ "${{ env.SOMEVAR }}" == "${{inputs.who-to-greet}}" ]]' | ||
shell: bash | ||
- run: '[ "${SOMEVAR}" = "Not Mona" ] || exit 1' | ||
shell: bash | ||
env: | ||
SOMEVAR: 'Not Mona' | ||
- run: '[[ "${{ steps.dockerlocal.outputs.whoami }}" == "${{inputs.who-to-greet}}" ]]' | ||
shell: bash | ||
# Test if overriding args doesn't leak inputs | ||
- uses: ./actions/docker-local-noargs | ||
with: | ||
args: ${{format('"{0}"', 'Mona is not the Octocat') }} | ||
who-to-greet: ${{inputs.who-to-greet}} | ||
- run: '[[ "${{ env.SOMEVAR }}" == "Mona is not the Octocat" ]]' | ||
shell: bash | ||
- uses: ./localdockerimagetest_ | ||
# Also test a remote docker action here | ||
- uses: actions/hello-world-docker-action@v1 | ||
with: | ||
who-to-greet: 'Mona the Octocat' | ||
# Test if GITHUB_ACTION_PATH is set correctly after all steps | ||
- run: stat $GITHUB_ACTION_PATH/push.yml | ||
shell: bash | ||
- run: stat $GITHUB_ACTION_PATH/action.yml | ||
shell: bash | ||
- run: '[[ "$GITHUB_ACTION_REPOSITORY" == "" ]] && [[ "$GITHUB_ACTION_REF" == "" ]]' | ||
shell: bash | ||
inputs: | ||
who-to-greet: | ||
default: 'Mona the Octocat' | ||
runs: | ||
using: composite | ||
steps: | ||
# Test if GITHUB_ACTION_PATH is set correctly before all steps | ||
- run: stat $GITHUB_ACTION_PATH/../push.yml | ||
shell: bash | ||
- run: stat $GITHUB_ACTION_PATH/action.yml | ||
shell: bash | ||
- run: '[[ "$GITHUB_ACTION_REPOSITORY" == "" ]] && [[ "$GITHUB_ACTION_REF" == "" ]]' | ||
shell: bash | ||
- uses: ./actions/docker-local | ||
id: dockerlocal | ||
with: | ||
who-to-greet: ${{inputs.who-to-greet}} | ||
- run: '[[ "${{ env.SOMEVAR }}" == "${{inputs.who-to-greet}}" ]]' | ||
shell: bash | ||
- run: '[ "${SOMEVAR}" = "Not Mona" ] || exit 1' | ||
shell: bash | ||
env: | ||
SOMEVAR: 'Not Mona' | ||
- run: '[[ "${{ steps.dockerlocal.outputs.whoami }}" == "${{inputs.who-to-greet}}" ]]' | ||
shell: bash | ||
# Test if overriding args doesn't leak inputs | ||
- uses: ./actions/docker-local-noargs | ||
with: | ||
args: ${{format('"{0}"', 'Mona is not the Octocat') }} | ||
who-to-greet: ${{inputs.who-to-greet}} | ||
- run: '[[ "${{ env.SOMEVAR }}" == "Mona is not the Octocat" ]]' | ||
shell: bash | ||
- uses: ./localdockerimagetest_ | ||
# Also test a remote docker action here | ||
- uses: actions/hello-world-docker-action@v1 | ||
with: | ||
who-to-greet: 'Mona the Octocat' | ||
# Test if GITHUB_ACTION_PATH is set correctly after all steps | ||
- run: stat $GITHUB_ACTION_PATH/../push.yml | ||
shell: bash | ||
- run: stat $GITHUB_ACTION_PATH/action.yml | ||
shell: bash | ||
- run: '[[ "$GITHUB_ACTION_REPOSITORY" == "" ]] && [[ "$GITHUB_ACTION_REF" == "" ]]' | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.