Skip to content

update GH output syntax #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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