Issue #225: Create the Groups structure #758
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: ai-cfia workflows | |
on: | |
pull_request: | |
types: | |
- opened | |
- closed | |
- synchronize | |
jobs: | |
get-changed-files: | |
name: Get Changed Files | |
runs-on: ubuntu-latest | |
outputs: | |
files: ${{ steps.changed-files.outputs.all_changed_files }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Get Changed Files | |
id: changed-files | |
uses: tj-actions/changed-files@v45 | |
with: | |
files: | | |
nachet_pyproject.toml | |
fertiscan_pyproject.toml | |
nachet/** | |
fertiscan/** | |
datastore/** | |
nachet-pyproject-version-bump: | |
needs: get-changed-files | |
if: github.event.pull_request.merged != true && (contains(needs.get-changed-files.outputs.files, 'nachet/') || contains(needs.get-changed-files.outputs.files, 'datastore/')) | |
name: nachet-datastore-pyproject-version-bump | |
uses: ai-cfia/github-workflows/.github/workflows/workflow-version-bump-python.yml@main | |
secrets: inherit | |
with: | |
pyproject-path: 'nachet_pyproject.toml' | |
package-name: 'nachet-datastore' | |
fertiscan-pyproject-version-bump: | |
needs: get-changed-files | |
if: github.event.pull_request.merged != true && (contains(needs.get-changed-files.outputs.files, 'fertiscan/') || contains(needs.get-changed-files.outputs.files, 'datastore/')) | |
name: fertiscan-datastore-pyproject-version-bump | |
uses: ai-cfia/github-workflows/.github/workflows/workflow-version-bump-python.yml@main | |
secrets: inherit | |
with: | |
pyproject-path: 'fertiscan_pyproject.toml' | |
package-name: 'fertiscan-datastore' | |
datastore-lint: | |
name: datastore-lint-test-python | |
uses: ai-cfia/github-workflows/.github/workflows/workflow-lint-test-python.yml@main | |
secrets: inherit | |
with: | |
skip-coverage: 'true' | |
# bytebase-sql-review: | |
# uses: ai-cfia/github-workflows/.github/workflows/workflow-bytebase-sql-review.yml@main | |
# secrets: inherit | |
mkd-check: | |
name: workflow-markdown-check | |
uses: ai-cfia/github-workflows/.github/workflows/workflow-markdown-check.yml@main | |
secrets: inherit | |
repo-validation: | |
name: workflow-repo-standards-validation | |
uses: ai-cfia/github-workflows/.github/workflows/workflow-repo-standards-validation.yml@main | |
secrets: inherit | |
yaml-check: | |
name: workflow-yaml-check | |
uses: ai-cfia/github-workflows/.github/workflows/workflow-yaml-check.yml@main | |
secrets: inherit | |
trigger-release: | |
name: Trigger release workflow | |
needs: get-changed-files | |
if: github.event.pull_request.merged == true | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Trigger Release Workflow for Nachet | |
if: contains(needs.get-changed-files.outputs.files, 'nachet_pyproject.toml') | |
run: | | |
gh workflow run publish-package.yml \ | |
--ref main \ | |
-f package-name=nachet | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Trigger Release Workflow for Fertiscan | |
if: contains(needs.get-changed-files.outputs.files, 'fertiscan_pyproject.toml') | |
run: | | |
gh workflow run publish-package.yml \ | |
--ref main \ | |
-f package-name=fertiscan | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |