From 5fc7b4174d2b43b7f16049f75fedba839e24eb64 Mon Sep 17 00:00:00 2001 From: Carlos Santiago <5726971+csantiago132@users.noreply.github.com> Date: Thu, 24 Oct 2024 03:02:52 -0500 Subject: [PATCH] refactor(config): properly renames workflows --- .github/workflows/ci.yml | 8 ++++---- .../{composite.deploy.yml => workflow.deploy.yml} | 0 .../{composite.document.yml => workflow.document.yml} | 4 ++-- .../workflows/{composite.lint.yml => workflow.lint.yml} | 0 .../{composite.release.yml => workflow.release.yml} | 0 .../workflows/{composite.test.yml => workflow.test.yml} | 0 Writerside/codeSnippets/ci.yml | 8 ++++---- Writerside/topics/Code-Quality.md | 2 +- Writerside/topics/Release.md | 2 +- Writerside/topics/Test-Workflow.md | 2 +- 10 files changed, 13 insertions(+), 13 deletions(-) rename .github/workflows/{composite.deploy.yml => workflow.deploy.yml} (100%) rename .github/workflows/{composite.document.yml => workflow.document.yml} (98%) rename .github/workflows/{composite.lint.yml => workflow.lint.yml} (100%) rename .github/workflows/{composite.release.yml => workflow.release.yml} (100%) rename .github/workflows/{composite.test.yml => workflow.test.yml} (100%) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9c68d3b..022ad79 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,20 +14,20 @@ on: jobs: lint: - uses: kurocado-studio/styleguide/.github/workflows/composite.lint.yml@main + uses: kurocado-studio/styleguide/.github/workflows/workflow.lint.yml@main secrets: inherit test: needs: [lint] - uses: kurocado-studio/styleguide/.github/workflows/composite.test.yml@main + uses: kurocado-studio/styleguide/.github/workflows/workflow.test.yml@main secrets: inherit document: needs: [test] - uses: kurocado-studio/styleguide/.github/workflows/composite.document.yml@main + uses: kurocado-studio/styleguide/.github/workflows/workflow.document.yml@main secrets: inherit release: needs: [document] - uses: kurocado-studio/styleguide/.github/workflows/composite.release.yml@main + uses: kurocado-studio/styleguide/.github/workflows/workflow.release.yml@main secrets: inherit diff --git a/.github/workflows/composite.deploy.yml b/.github/workflows/workflow.deploy.yml similarity index 100% rename from .github/workflows/composite.deploy.yml rename to .github/workflows/workflow.deploy.yml diff --git a/.github/workflows/composite.document.yml b/.github/workflows/workflow.document.yml similarity index 98% rename from .github/workflows/composite.document.yml rename to .github/workflows/workflow.document.yml index 95a5637..01f6834 100644 --- a/.github/workflows/composite.document.yml +++ b/.github/workflows/workflow.document.yml @@ -14,7 +14,7 @@ env: DOCKER_VERSION: '242.21870' # Specific Docker version jobs: - check_changes: + preflight: runs-on: ubuntu-latest if: | github.event_name == 'push' && @@ -52,7 +52,7 @@ jobs: fi document: - needs: [check_changes] + needs: [preflight] if: | github.event_name == 'push' && needs.check_changes.outputs.writerside_changed == 'true' && diff --git a/.github/workflows/composite.lint.yml b/.github/workflows/workflow.lint.yml similarity index 100% rename from .github/workflows/composite.lint.yml rename to .github/workflows/workflow.lint.yml diff --git a/.github/workflows/composite.release.yml b/.github/workflows/workflow.release.yml similarity index 100% rename from .github/workflows/composite.release.yml rename to .github/workflows/workflow.release.yml diff --git a/.github/workflows/composite.test.yml b/.github/workflows/workflow.test.yml similarity index 100% rename from .github/workflows/composite.test.yml rename to .github/workflows/workflow.test.yml diff --git a/Writerside/codeSnippets/ci.yml b/Writerside/codeSnippets/ci.yml index bbad21e..a93b74c 100644 --- a/Writerside/codeSnippets/ci.yml +++ b/Writerside/codeSnippets/ci.yml @@ -14,22 +14,22 @@ on: jobs: lint: - uses: kurocado-studio/styleguide/.github/workflows/composite.lint.yml@main + uses: kurocado-studio/styleguide/.github/workflows/workflow.lint.yml@main secrets: inherit test: needs: lint - uses: kurocado-studio/styleguide/.github/workflows/composite.test.yml@main + uses: kurocado-studio/styleguide/.github/workflows/workflow.test.yml@main secrets: inherit document: needs: test - uses: kurocado-studio/styleguide/.github/workflows/composite.document.yml@main + uses: kurocado-studio/styleguide/.github/workflows/workflow.document.yml@main secrets: inherit release: needs: document - uses: kurocado-studio/styleguide/.github/workflows/composite.release.yml@main + uses: kurocado-studio/styleguide/.github/workflows/workflow.release.yml@main secrets: inherit if: | github.event_name == 'push' && diff --git a/Writerside/topics/Code-Quality.md b/Writerside/topics/Code-Quality.md index 48335c9..38a60c6 100644 --- a/Writerside/topics/Code-Quality.md +++ b/Writerside/topics/Code-Quality.md @@ -84,7 +84,7 @@ on: jobs: code-quality: - uses: kurocado-studio/styleguide/.github/workflows/composite.lint.yml@main + uses: kurocado-studio/styleguide/.github/workflows/workflow.lint.yml@main secrets: inherit ``` diff --git a/Writerside/topics/Release.md b/Writerside/topics/Release.md index 4156ca3..dddb743 100644 --- a/Writerside/topics/Release.md +++ b/Writerside/topics/Release.md @@ -131,7 +131,7 @@ on: jobs: release: - uses: kurocado-studio/styleguide/.github/workflows/composite.release.yml@main + uses: kurocado-studio/styleguide/.github/workflows/workflow.release.yml@main secrets: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/Writerside/topics/Test-Workflow.md b/Writerside/topics/Test-Workflow.md index 83198be..1972911 100644 --- a/Writerside/topics/Test-Workflow.md +++ b/Writerside/topics/Test-Workflow.md @@ -81,7 +81,7 @@ on: jobs: test: - uses: kurocado-studio/styleguide/.github/workflows/composite.test.yml@main + uses: kurocado-studio/styleguide/.github/workflows/workflow.test.yml@main secrets: inherit ```