Skip to content

Commit

Permalink
Merge pull request #1 from Borda/update/output
Browse files Browse the repository at this point in the history
update GH output syntax
  • Loading branch information
jamesmortensen authored Dec 15, 2023
2 parents b660165 + 6607854 commit 0184e2f
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,20 @@ outputs:
runs:
using: 'composite'
steps:
- name: Validate runner and inputs
- name: Validate runner
if: runner.os != 'Linux' && runner.os != 'macOS'
run: |
echo "${RUNNER_OS} is not supported. Only Linux is supported at this time."
exit 1
shell: bash
- name: Validate inputs
if: inputs.runtime != 'podman'
run: |
if [[ "${RUNNER_OS}" != 'Linux' ]] && [[ "${RUNNER_OS}" != 'macOS' ]]; then
echo "${RUNNER_OS} is not supported. Only Linux is supported at this time."
exit 1
fi
if [[ "${{ inputs.runtime }}" != 'podman' ]]; then
echo "${{ inputs.runtime }} is not supported. Only podman is supported at this time. If you"
echo "build your containers with Docker and push them to Docker Hub, you can still use podman"
echo "in GitHub Actions, since container images are a standard across different runtime engines."
exit 1
fi
echo "${{ inputs.runtime }} is not supported. Only podman is supported at this time. If you"
echo "build your containers with Docker and push them to Docker Hub, you can still use podman"
echo "in GitHub Actions, since container images are a standard across different runtime engines."
exit 1
shell: bash

- name: Get the last updated times for the container images to build key
shell: bash
Expand All @@ -55,7 +55,7 @@ runs:
#echo tarbaction2-`go run ./get-last-updated.go https://hub.docker.com/v2/repositories/selenium/standalone-chrome/tags/latest/` > selenium-standalone-chrome-latest.txt
#echo "Cache key = "
cat container-images-key.txt
#echo "::set-output name=port::${port}"
echo "port=${port}" >> $GITHUB_OUTPUT
- name: Check Container Images Cache
id: get-last-updated
Expand Down Expand Up @@ -102,5 +102,5 @@ runs:
env:
CONTAINER_IMAGES_CACHE_HIT: ${{ steps.get-last-updated.outputs.cache-hit }}
run: |
echo "::set-output name=cache-hit::$CONTAINER_IMAGES_CACHE_HIT"
echo "cache-hit=$CONTAINER_IMAGES_CACHE_HIT" >> $GITHUB_OUTPUT

0 comments on commit 0184e2f

Please sign in to comment.