Skip to content

Commit

Permalink
Create run_with_option.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ngyhd authored Apr 12, 2024
1 parent 1c5868d commit e4a2db7
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/run_with_option.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Option-based Workflow

on:
push:
branches:
- main

jobs:
option_based_workflow:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Run with option
run: |
# 使用 $INPUT_OPTION 获取传递的选项参数
./run_with_option.sh $INPUT_OPTION
env:
INPUT_OPTION: ${{ matrix.option }}

strategy:
matrix:
option:
- option1
- option2
- option3

0 comments on commit e4a2db7

Please sign in to comment.