Skip to content

Commit

Permalink
Workaround for actions/runner#665
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasz-niedzwiedz-wttech committed Apr 6, 2022
1 parent 35e4bb2 commit 56a4df3
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/actions/test-plugin-installation/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,20 @@ runs:
shell: bash
run: |
cp target/${{ inputs.aem-rules-binary }} .github/actions/test-plugin-installation/${{ inputs.aem-rules-binary }}
# The following uses implicit env variables created for inputs
# Normally, this would use implicit env variables created for inputs
# see https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#example-specifying-inputs
# and https://www.gnu.org/software/bash/manual/html_node/Shell-Parameter-Expansion.html to lowercase the file name
# so that it's valid to use in a Docker container name
# these don't, however, appear to work in composite actions https://github.com/actions/runner/issues/665
- name: Build image
shell: bash
env:
INPUTS_SONARQUBE_BASE_IMAGE: ${{ inputs.sonarqube-base-image }}
INPUTS_AEM_RULES_BINARY: ${{ inputs.aem-rules-binary }}
# Use https://www.gnu.org/software/bash/manual/html_node/Shell-Parameter-Expansion.html to lowercase the file name
# so that it's valid to use in a Docker container name
run: docker build . -t ${INPUTS_SONARQUBE_BASE_IMAGE,,}-${INPUTS_AEM_RULES_BINARY,,}
- name: Test image
shell: bash
env:
INPUTS_SONARQUBE_BASE_IMAGE: ${{ inputs.sonarqube-base-image }}
INPUTS_AEM_RULES_BINARY: ${{ inputs.aem-rules-binary }}
run: ./run-tests.sh ${INPUTS_SONARQUBE_BASE_IMAGE,,}-${INPUTS_AEM_RULES_BINARY,,}

0 comments on commit 56a4df3

Please sign in to comment.