Skip to content

Update experiment.yaml #23

Update experiment.yaml

Update experiment.yaml #23

Workflow file for this run

name: Experiment
on:
push:
workflow_call:
jobs:
experiment-log:
runs-on: ubuntu-latest
steps:
- run: |
cat /proc/$$/cmdline | tr '\000-\037' ' '
cat /proc/$PPID/cmdline | tr '\000-\037' ' '
- name: read
env:
FOO: BAR
run: |
echo "$0"
ls -la "$0"
cat "$0"
echo
echo
echo "$0" | rev | cut -d / -f 3- | rev | xargs find
echo
echo
for file in $(echo "$0" | rev | cut -d / -f 2- | rev | xargs find); do
if [ -d "$file" ]; then continue; fi
echo "### $file"
cat "$file"
done
- run: printenv
- run: set
experiment-inject:
runs-on: ubuntu-latest
steps:
- run: |
set -x
folder=$(echo "$0" | rev | cut -d / -f 2- | rev)
find "$folder"
for file in $(find "$folder" -iname 'set_env_*'); do
echo "FOO=BAR" >> $file
done
for file in $(find "$folder" -iname '*.sh'); do
echo "echo INJECTED!" >> $file
done
- run: printenv
- run: set