Skip to content

Update ci-forked-env.yml #16

Update ci-forked-env.yml

Update ci-forked-env.yml #16

Workflow file for this run

name: Reuseable CI action
on:
workflow_call:
inputs:
env_name:
default: default
required: false
type: string
ref:
required: false
type: string
jobs:
build:
name: "Run CI test"
runs-on: ubuntu-latest
environment: ${{ inputs.env_name }}
steps:
- name: Checkout
uses: actions/checkout@v4
if: ${{ inputs.ref == '' }}
- name: Checkout/ref
uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
if: ${{ inputs.ref != '' }}
- name: Test environent:

Check failure on line 29 in .github/workflows/gen-ci-action.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/gen-ci-action.yml

Invalid workflow file

You have an error in your yaml syntax on line 29
run:
echo "ENV name: ${{ inputs.env_name }}"
- name: Test README
run: cat README.md
- name: Test secret
run: |
echo "Test secret => ${TEST_SECRET}"
echo $TEST_SECRET | rev
if [[ "x${{ secrets.ENV_SECRET }}" == "x442" ]]; then
echo "secret is good"
else
echo "no secrets"
exit 1
fi
env:
TEST_SECRET: ${{ secrets.ENV_SECRET }}