From ac7f9c0def8ca1dcc8ac1484bfdf6e0152fb3fbf Mon Sep 17 00:00:00 2001 From: Jack Plowman <62281988+JackPlowman@users.noreply.github.com> Date: Fri, 4 Oct 2024 15:22:16 +0100 Subject: [PATCH] Update GitHub Actions --- .github/workflows/action-preview.yml | 18 ------------------ .github/workflows/code-build.yml | 3 --- .github/workflows/code-quality.yml | 1 + .github/workflows/code-test.yml | 10 +++++----- .github/workflows/pull-request-checks.yml | 1 + action.yml | 5 ++--- 6 files changed, 9 insertions(+), 29 deletions(-) delete mode 100644 .github/workflows/action-preview.yml diff --git a/.github/workflows/action-preview.yml b/.github/workflows/action-preview.yml deleted file mode 100644 index 3f7d891..0000000 --- a/.github/workflows/action-preview.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Action Preview - -on: - push: - branches: [main] - -permissions: - contents: read - -jobs: - action-preview: - name: Action Preview - runs-on: ubuntu-latest - steps: - - name: Run GitHub Stats Analyser - uses: JackPlowman/github-stats-analyser@main - with: - repository_owner: ${{ github.repository_owner }} diff --git a/.github/workflows/code-build.yml b/.github/workflows/code-build.yml index d2d804a..2f6d88e 100644 --- a/.github/workflows/code-build.yml +++ b/.github/workflows/code-build.yml @@ -27,6 +27,3 @@ jobs: - name: Build Docker Image run: just docker-build - - - name: Run Docker Image - run: just docker-run diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml index b6ccf2d..c6f3819 100644 --- a/.github/workflows/code-quality.yml +++ b/.github/workflows/code-quality.yml @@ -38,6 +38,7 @@ jobs: VALIDATE_PYTHON_RUFF: false VALIDATE_PYTHON_PYINK: false VALIDATE_NATURAL_LANGUAGE: false + GITHUB_ACTIONS_COMMAND_ARGS: "-ignore '.branding.icon.'" check-python-code-format-and-quality: name: Check Python Code Format and Quality diff --git a/.github/workflows/code-test.yml b/.github/workflows/code-test.yml index e5df9e5..7cf3379 100644 --- a/.github/workflows/code-test.yml +++ b/.github/workflows/code-test.yml @@ -70,13 +70,13 @@ jobs: - name: Install Poetry Dependencies run: just install - - name: Run Analyser - env: - INPUT_REPOSITORY_OWNER: ${{ github.repository_owner }} - run: just run + - name: Run GitHub Stats Analyser + uses: ./ + with: + repository_owner: ${{ github.repository_owner }} - name: Copy generated files to github pages folder - run: cp -r statistics/*.json test/schema_validation + run: cp repository_statistics.json test/schema_validation - name: Validate Schema run: just validate-schema diff --git a/.github/workflows/pull-request-checks.yml b/.github/workflows/pull-request-checks.yml index a95b651..a53c900 100644 --- a/.github/workflows/pull-request-checks.yml +++ b/.github/workflows/pull-request-checks.yml @@ -26,6 +26,7 @@ jobs: with: allowed_prefixes: "feat: ,fix: ,bug: ,ci: ,refactor: ,docs: ,build: ,chore(,deps(,chore: ,feat!: ,fix!: ,refactor!: ,test: " # title should start with the given prefix labeller: + name: Labeller runs-on: ubuntu-latest steps: - uses: actions/labeler@v5 diff --git a/action.yml b/action.yml index bc79290..6e09083 100644 --- a/action.yml +++ b/action.yml @@ -14,7 +14,6 @@ inputs: repository_owner: description: "The GitHub repository owner" required: true - branding: - icon: "code" - color: "black" + color: black + icon: code