Skip to content

Commit

Permalink
Create gen-ci-action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mfazekas authored Nov 30, 2023
1 parent 6bc1a50 commit fcd815b
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/gen-ci-action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Reuseable CI action

on:
workflow_call:
inputs:
environment:
default: default
required: false
type: string

jobs:
build:
name: "Run CI test"
runs-on: ubuntu-latest
environment: ${{ inputs.environment }}

steps:
- name: Checkout
uses: actions/checkout@v4
- 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 }}

0 comments on commit fcd815b

Please sign in to comment.