diff --git a/.github/workflows/action.yaml b/.github/workflows/action.yaml new file mode 100644 index 0000000..2a4012d --- /dev/null +++ b/.github/workflows/action.yaml @@ -0,0 +1,27 @@ +name: CD +on: + workflow_dispatch: + +jobs: + check: + name: check pr status + runs-on: ubuntu-22.04 + steps: + - name: Check out repository code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: check if PR is merged + uses: ${{ format('{0}/{1}/.github/actions/git/check-merge@{2}' vars.ORG_NAME, vars.REPO_NAME, vars.REF) }} + + - name: check if PR is merged + uses: ${{ vars.ORG_NAME }}/${{ vars.REPO_NAME }}/.github/actions/git/check-merge@${{ vars.REF}} + + - name: Call another action + uses: ${{ vars.ORG_NAME }}/${{ vars.REPO_NAME }}/.github/actions/python/pytest@feature/gha + with: + requirements_file: ./poc/pytest/requirements.txt + check2: + name: Call reusable workflow + uses: ${{ vars.ORG_NAME }}/${{ vars.REPO_NAME }}/.github/workflows/ci-pytest.yaml@feature/gha