Skip to content

Commit

Permalink
[FooBar]: Test composable action
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Buczek <[email protected]>
  • Loading branch information
RobertBuczek committed Nov 14, 2024
1 parent a8d52f9 commit 0975e2d
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/actions/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: My Composite Action
description: A reusable action for setting up environment and running checks

inputs:
version:
description: 'Version of the environment to set up'
required: true
default: 'latest'

runs:
using: "composite"
steps:
- name: Set up environment
run: |
echo "Running tests..."
- name: Run checks
run: |
echo "Running checks..."
15 changes: 15 additions & 0 deletions .github/workflows/test-of-actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Workflow Using Composite Action

on: [push]

jobs:
setup-job:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Use composite action
uses: ./github/actions
with:
version: '2.0'

0 comments on commit 0975e2d

Please sign in to comment.