Skip to content

Commit

Permalink
With an input
Browse files Browse the repository at this point in the history
  • Loading branch information
heerener committed Oct 3, 2024
1 parent f3ddf96 commit 6554e00
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/actions/test/action.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
---
name: Test Composite Action
description: test how composite actions work
inputs:
TEST_SECRET:
description: Secret for testing purposes
required: true
runs:
using: composite
steps:
- name: clone repo
uses: actions/checkout@v4
- name: Use a secret
env:
TEST_SECRET: ${{ secrets.TEST_SECRET }}
shell: bash
run: |-
echo "The secret is ${TEST_SECRET}"
echo "The secret is ${{ inputs.TEST_SECRET }}"
2 changes: 2 additions & 0 deletions .github/workflows/test_codebuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
ls /opt
- name: use-composite-action
uses: ./.github/actions/test
with:
TEST_SECRET: ${{ secrets.TEST_SECRET }}
# run-on-aws-container:
# runs-on:
# - codebuild-spacktainers-${{ github.run_id }}-${{ github.run_attempt }}
Expand Down

0 comments on commit 6554e00

Please sign in to comment.