From a1fa5108265f8628c653758eea43c9079f182e52 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-test.yml | 10 ++++++---- 3 files changed, 6 insertions(+), 25 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-test.yml b/.github/workflows/code-test.yml index e5df9e5..df39f51 100644 --- a/.github/workflows/code-test.yml +++ b/.github/workflows/code-test.yml @@ -49,6 +49,8 @@ jobs: validate-schema: name: Validate Schema runs-on: ubuntu-latest + env: + BRANCH_NAME: ${{ github.head_ref || github.ref_name }} steps: - name: Checkout uses: actions/checkout@v4 @@ -70,10 +72,10 @@ 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