From 4eab0fd31d657ef99c974a17d8cae1b7cd4fe57d Mon Sep 17 00:00:00 2001 From: "andrea.smiesna" <122895253+andrea-smiesna@users.noreply.github.com> Date: Thu, 16 Jan 2025 11:01:25 +0100 Subject: [PATCH] refactor: remove input prop from github actions --- .github/workflows/audit/action.yml | 8 ++------ .github/workflows/github-ci.yml | 4 ---- .github/workflows/lint/action.yml | 8 ++------ 3 files changed, 4 insertions(+), 16 deletions(-) diff --git a/.github/workflows/audit/action.yml b/.github/workflows/audit/action.yml index 728a02b9..fe71067d 100644 --- a/.github/workflows/audit/action.yml +++ b/.github/workflows/audit/action.yml @@ -1,12 +1,8 @@ name: "Audit" description: "Audit information" -inputs: - project: - description: "The project directory" - required: true runs: using: "composite" steps: - - name: Audit project cd ${{ inputs.project }} - run: cd ${{ inputs.project }} && pnpm install && pnpm run audit --prod + - name: Audit project cd ${{ matrix.project }} + run: cd ${{ matrix.project }} && pnpm install && pnpm run audit --prod shell: bash diff --git a/.github/workflows/github-ci.yml b/.github/workflows/github-ci.yml index b1845828..e7ae0cef 100644 --- a/.github/workflows/github-ci.yml +++ b/.github/workflows/github-ci.yml @@ -34,8 +34,6 @@ jobs: cache: "pnpm" - name: Run lint uses: ./.github/workflows/lint - with: - project: ${{ matrix.project }} audit: runs-on: ubuntu-22.04 @@ -60,8 +58,6 @@ jobs: cache: "pnpm" - name: Run audit uses: ./.github/workflows/audit - with: - project: ${{ matrix.project }} build: runs-on: ubuntu-22.04 diff --git a/.github/workflows/lint/action.yml b/.github/workflows/lint/action.yml index c218c155..09bf24d2 100644 --- a/.github/workflows/lint/action.yml +++ b/.github/workflows/lint/action.yml @@ -1,12 +1,8 @@ name: "Lint" description: "Runs a lint check on the innoverse next app" -inputs: - project: - description: "The project directory" - required: true runs: using: "composite" steps: - - name: Install node in ${{ inputs.project }} - run: cd ${{ inputs.project }} && pnpm install && pnpm run lint + - name: Install node in ${{ matrix.project }} + run: cd ${{ matrix.project }} && pnpm install && pnpm run lint shell: bash