Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test #45

Open
wants to merge 14 commits into
base: staging
Choose a base branch
from
Open
52 changes: 52 additions & 0 deletions .github/workflows/master-pr-closed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Test2

on:
pull_request:
branches:
- staging
types:
- opened
- synchronize

jobs:
momo:
runs-on: ubuntu-latest
outputs:
targets: ${{ steps.set.outputs.targets }}
steps:
- name: Set empty string
id: set
shell: bash
run: |
targets="test"
echo "targets=${targets}" >> $GITHUB_OUTPUT

test:
runs-on: ubuntu-latest
needs: momo
if: ${{ needs.momo.outputs.targets != '' }}
steps:
- name: debug
run: |
echo ${{ needs.momo.outputs.targets }}

- name: debug 2
if: ${{ needs.momo.outputs.targets == '' }}
run: exit 0

- name: debug 3
if: ${{ needs.momo.outputs.targets == '0' }}
run: |
echo "empty string with 0 string"

- name: final
run: |
echo "final step"

sequel:
runs-on: ubuntu-latest
needs: test
steps:
- name: debug
run: |
echo "sequel"