Escape PATH for in-script evaluation. #63
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
--- | |
name: CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- run: make ci | |
- name: 'Execute cat /etc/*-release using default sh shell via default Docker container' | |
uses: cliffano/command-docker-action@main | |
with: | |
command: 'cat /etc/*-release' | |
- name: 'Execute cat /etc/*-release using bash shell via Ubuntu 22.04 Docker container' | |
uses: cliffano/command-docker-action@main | |
with: | |
command: 'cat /etc/*-release' | |
image: ubuntu:22.04 | |
shell: bash | |
- name: 'Execute cat /etc/*-release using bash shell via Rocky Linux 9.3 Docker container' | |
uses: cliffano/command-docker-action@main | |
with: | |
command: 'cat /etc/*-release' | |
image: rockylinux:9.3 | |
shell: bash | |
- uses: iamsauravsharma/create-dotenv@v2.0.1 | |
with: | |
file-path: '/tmp/.env' | |
env: | |
SOME_ENV_VAR: 'Some value' | |
- name: 'Display environment variables' | |
uses: cliffano/command-docker-action@main | |
with: | |
command: 'echo "SOME_ENV_VAR: $SOME_ENV_VAR"' | |
env_file: '/tmp/.env' | |
- name: 'Display PATH environment variable' | |
uses: cliffano/command-docker-action@main | |
with: | |
command: "echo ${{ '${{PATH}}' }}" | |
image: ubuntu:22.04 | |
shell: bash | |
extra_path: '/some/path:/opt/workspace/bin' |