Skip to content
Open
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
40 changes: 40 additions & 0 deletions .github/workflows/shell-env.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Shell Env ";ls;"

on: pull_request

jobs:
pull-request:
name: Shell Env

permissions:
contents: read

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: test script
env:
CUSTOM_GITHUB_WORKFLOW: ${{ github.workflow }}
run: |
set -x
set +e

# echo $GITHUB_WORKFLOW
# echo "$GITHUB_WORKFLOW"
# bash -c 'printf "%q\n" "$@"' -- $GITHUB_WORKFLOW
bash -c 'printf "%q\n" "$@"' -- "$GITHUB_WORKFLOW"

# echo $CUSTOM_GITHUB_WORKFLOW
# echo "$CUSTOM_GITHUB_WORKFLOW"
# bash -c 'printf "%q\n" "$@"' -- $CUSTOM_GITHUB_WORKFLOW
bash -c 'printf "%q\n" "$@"' -- "$CUSTOM_GITHUB_WORKFLOW"

bash -c 'printf "%q\n" "$@"' -- '${{ github.workflow }}'
bash -c 'printf "%q\n" "$@"' -- ${{ toJSON(github.workflow) }}

# echo ${{ github.workflow }}
# echo "${{ github.workflow }}"
# bash -c 'printf "%q\n" "$@"' -- ${{ github.workflow }}
# bash -c 'printf "%q\n" "$@"' -- "${{ github.workflow }}"