From 23baa36d5ffbadf3d00e72796133dd76f0792ce8 Mon Sep 17 00:00:00 2001 From: Andy Wu Date: Wed, 21 Aug 2024 11:27:00 -0700 Subject: [PATCH] [feature] init commit to create reusable workflow to run customized actions with shell script --- .../reusable-run-actions-network.yml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/reusable-run-actions-network.yml diff --git a/.github/workflows/reusable-run-actions-network.yml b/.github/workflows/reusable-run-actions-network.yml new file mode 100644 index 0000000..011e636 --- /dev/null +++ b/.github/workflows/reusable-run-actions-network.yml @@ -0,0 +1,20 @@ +name: Reusable workflow to run actions + +on: + workflow_call: + inputs: + network: + description: 'Network to use' + required: true + type: string + +jobs: + lint: + runs-on: ubuntu-latest + steps: + + - uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5 + + - name: Print network + run: | + echo "Network: ${{ inputs.network }}"