From 22a333fa769477bf8dab3b5181289aedb3ea57b0 Mon Sep 17 00:00:00 2001 From: ismay Date: Tue, 11 Jun 2024 14:43:59 +0200 Subject: [PATCH] ci: move reusable workflows to subdir --- .github/workflows/deploy-pr.yml | 2 +- .github/workflows/deploy-production.yml | 2 +- .github/workflows/{ => reusable}/deploy-pr-reusable.yml | 0 .../{ => reusable}/deploy-production-reusable.yml | 0 .github/workflows/{ => reusable}/e2e.yml | 0 .github/workflows/{ => reusable}/lint.yml | 0 .github/workflows/{ => reusable}/release.yml | 0 .github/workflows/{ => reusable}/test.yml | 0 .github/workflows/test-and-release.yml | 8 ++++---- 9 files changed, 6 insertions(+), 6 deletions(-) rename .github/workflows/{ => reusable}/deploy-pr-reusable.yml (100%) rename .github/workflows/{ => reusable}/deploy-production-reusable.yml (100%) rename .github/workflows/{ => reusable}/e2e.yml (100%) rename .github/workflows/{ => reusable}/lint.yml (100%) rename .github/workflows/{ => reusable}/release.yml (100%) rename .github/workflows/{ => reusable}/test.yml (100%) diff --git a/.github/workflows/deploy-pr.yml b/.github/workflows/deploy-pr.yml index b14ff399..4162be55 100644 --- a/.github/workflows/deploy-pr.yml +++ b/.github/workflows/deploy-pr.yml @@ -9,6 +9,6 @@ concurrency: jobs: deploy: - uses: ./.github/workflows/deploy-pr-reusable.yml + uses: ./.github/workflows/reusable/deploy-pr.yml if: "!github.event.pull_request.repository.fork" secrets: inherit diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml index 6ccea54d..e83a67b6 100644 --- a/.github/workflows/deploy-production.yml +++ b/.github/workflows/deploy-production.yml @@ -11,5 +11,5 @@ concurrency: jobs: deploy: - uses: ./.github/workflows/deploy-production-reusable.yml + uses: ./.github/workflows/reusable/deploy-production.yml secrets: inherit diff --git a/.github/workflows/deploy-pr-reusable.yml b/.github/workflows/reusable/deploy-pr-reusable.yml similarity index 100% rename from .github/workflows/deploy-pr-reusable.yml rename to .github/workflows/reusable/deploy-pr-reusable.yml diff --git a/.github/workflows/deploy-production-reusable.yml b/.github/workflows/reusable/deploy-production-reusable.yml similarity index 100% rename from .github/workflows/deploy-production-reusable.yml rename to .github/workflows/reusable/deploy-production-reusable.yml diff --git a/.github/workflows/e2e.yml b/.github/workflows/reusable/e2e.yml similarity index 100% rename from .github/workflows/e2e.yml rename to .github/workflows/reusable/e2e.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/reusable/lint.yml similarity index 100% rename from .github/workflows/lint.yml rename to .github/workflows/reusable/lint.yml diff --git a/.github/workflows/release.yml b/.github/workflows/reusable/release.yml similarity index 100% rename from .github/workflows/release.yml rename to .github/workflows/reusable/release.yml diff --git a/.github/workflows/test.yml b/.github/workflows/reusable/test.yml similarity index 100% rename from .github/workflows/test.yml rename to .github/workflows/reusable/test.yml diff --git a/.github/workflows/test-and-release.yml b/.github/workflows/test-and-release.yml index 603ab0a6..fff624d8 100644 --- a/.github/workflows/test-and-release.yml +++ b/.github/workflows/test-and-release.yml @@ -9,17 +9,17 @@ concurrency: jobs: lint: - uses: ./.github/workflows/lint.yml + uses: ./.github/workflows/reusable/lint.yml test: - uses: ./.github/workflows/test.yml + uses: ./.github/workflows/reusable/test.yml e2e: - uses: ./.github/workflows/e2e.yml + uses: ./.github/workflows/reusable/e2e.yml # Skips forks and dependabot PRs if: "!github.event.push.repository.fork" secrets: inherit release: needs: [lint, test, e2e] - uses: ./.github/workflows/release.yml + uses: ./.github/workflows/reusable/release.yml # Skips forks and dependabot PRs if: "!github.event.push.repository.fork" secrets: inherit