Skip to content

Commit

Permalink
Update code
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro committed Dec 21, 2023
1 parent 1eb4504 commit 9e123a3
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,18 +76,18 @@ jobs:
- '.github/workflows/test.yaml'
- name: Set matrix option
run: |
if [[ -z "${{ github.event_name.workflow_dispatch }}" ]]; then
OPTION = ${{ github.event.inputs.target }}
elseif [[ -z "${{ github.event_name.schedule }}" ]]; then
OPTION = "full"
elseif [[ -z github.event_name == 'push' ]]; then
if [[ -z github.ref_type == 'tag' ]]; then
OPTION = "full"
if [[ "${{ github.event_name }}" == 'workflow_dispatch' ]]; then
OPTION=${{ github.event.inputs.target }}
elif [[ "${{ github.event_name }}" == 'schedule' ]]; then
OPTION="full"
elif [[ "${{ github.event_name }}" == 'push' ]]; then
if [[ "${{ github.ref_type }}" == 'tag' ]]; then
OPTION="full"
else
OPTION = "default"
OPTION="default"
fi
else
OPTION = "default"
OPTION="default"
fi
echo "MATRIX_OPTION=$OPTION" >> $GITHUB_ENV
- name: Set test matrix with 'default' option
Expand Down

0 comments on commit 9e123a3

Please sign in to comment.