From 8323c90591ef39d017cc11c9b5f77aa563678c0d Mon Sep 17 00:00:00 2001 From: "Felt, Nicholas" Date: Thu, 15 Aug 2024 16:24:15 -0700 Subject: [PATCH] ci: Move files since GitHub doesn't allow for locating reusable workflows in arbitrary locations --- .github/workflows/enforce-community-standards.yml | 2 +- .../workflows/reusable-check-api-for-breaking-changes.yml | 0 .../workflows/reusable-enforce-community-standards.yml | 5 +---- workflows/check-api-for-breaking-changes.md | 2 +- workflows/enforce-community-standards.md | 2 +- 5 files changed, 4 insertions(+), 7 deletions(-) rename workflows/check-api-for-breaking-changes.yml => .github/workflows/reusable-check-api-for-breaking-changes.yml (100%) rename workflows/enforce-community-standards.yml => .github/workflows/reusable-enforce-community-standards.yml (95%) diff --git a/.github/workflows/enforce-community-standards.yml b/.github/workflows/enforce-community-standards.yml index e2b3d1f8..9438121a 100644 --- a/.github/workflows/enforce-community-standards.yml +++ b/.github/workflows/enforce-community-standards.yml @@ -7,4 +7,4 @@ on: branches: [main] jobs: enforce-community-standards: - uses: tektronix/python-package-ci-cd/workflows/enforce-community-standards.yml@main + uses: tektronix/python-package-ci-cd/.github/workflows/reusable-enforce-community-standards.yml@main diff --git a/workflows/check-api-for-breaking-changes.yml b/.github/workflows/reusable-check-api-for-breaking-changes.yml similarity index 100% rename from workflows/check-api-for-breaking-changes.yml rename to .github/workflows/reusable-check-api-for-breaking-changes.yml diff --git a/workflows/enforce-community-standards.yml b/.github/workflows/reusable-enforce-community-standards.yml similarity index 95% rename from workflows/enforce-community-standards.yml rename to .github/workflows/reusable-enforce-community-standards.yml index 1af6730f..ea78c44d 100644 --- a/workflows/enforce-community-standards.yml +++ b/.github/workflows/reusable-enforce-community-standards.yml @@ -1,10 +1,7 @@ --- name: Enforce Open Source Community Standards on: - push: - branches: [main] - pull_request: - branches: [main] + workflow_call: jobs: enforce-community-standards: runs-on: ubuntu-latest diff --git a/workflows/check-api-for-breaking-changes.md b/workflows/check-api-for-breaking-changes.md index fd6394d8..ccdb88ec 100644 --- a/workflows/check-api-for-breaking-changes.md +++ b/workflows/check-api-for-breaking-changes.md @@ -23,7 +23,7 @@ on: jobs: check-api-for-breaking-changes: uses: - tektronix/python-package-ci-cd/workflows/check-api-for-breaking-changes.yml@main # it is recommended to use the latest release tag instead of `main` + tektronix/python-package-ci-cd/.github/workflows/reusable-check-api-for-breaking-changes.yml@main # it is recommended to use the latest release tag instead of `main` with: package-name: my_package_name # required ``` diff --git a/workflows/enforce-community-standards.md b/workflows/enforce-community-standards.md index b561be4b..5e25f44f 100644 --- a/workflows/enforce-community-standards.md +++ b/workflows/enforce-community-standards.md @@ -32,5 +32,5 @@ on: branches: [main] jobs: enforce-community-standards: - uses: tektronix/python-package-ci-cd/workflows/enforce-community-standards.yml@main # it is recommended to use the latest release tag instead of `main` + uses: tektronix/python-package-ci-cd/.github/workflows/reusable-enforce-community-standards.yml@main # it is recommended to use the latest release tag instead of `main` ```