Skip to content

Commit

Permalink
function and placeholder on uses call
Browse files Browse the repository at this point in the history
  • Loading branch information
zMynxx committed Aug 18, 2023
1 parent fcc9c5e commit a135e2a
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/action.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a135e2a

Please sign in to comment.