From efc1a369d5c5deb75197028977c3a5dd313a68a4 Mon Sep 17 00:00:00 2001 From: Cubek Date: Sat, 7 Mar 2026 11:31:14 +0300 Subject: [PATCH 1/3] add locally test for action --- .github/workflows/check_action.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/check_action.yml diff --git a/.github/workflows/check_action.yml b/.github/workflows/check_action.yml new file mode 100644 index 0000000..f7f51d2 --- /dev/null +++ b/.github/workflows/check_action.yml @@ -0,0 +1,15 @@ +name: check_action +on: + +jobs: + test_action: + name: Test on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + steps: + - uses: actions/checkout@v4 + + - name: check gitdeps action on ${{ matrix.os }} + uses: ./ \ No newline at end of file From 549fae978606a536eab9c5db15a5a6ff6dd2b57f Mon Sep 17 00:00:00 2001 From: Cubek Date: Sat, 7 Mar 2026 12:03:21 +0300 Subject: [PATCH 2/3] vertoletik --- .github/workflows/check_action.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/check_action.yml b/.github/workflows/check_action.yml index f7f51d2..1040e7e 100644 --- a/.github/workflows/check_action.yml +++ b/.github/workflows/check_action.yml @@ -1,5 +1,11 @@ name: check_action on: + push: + paths: + - action.yml + pull_request: + paths: + - action.yml jobs: test_action: From 2a546acd5f215a2786bf1d42134715f691a99cb1 Mon Sep 17 00:00:00 2001 From: Cubek Date: Sat, 7 Mar 2026 14:11:59 +0300 Subject: [PATCH 3/3] some fixes --- action.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/action.yml b/action.yml index 28988a2..ced0845 100644 --- a/action.yml +++ b/action.yml @@ -8,7 +8,7 @@ inputs: gitdeps_args: description: 'add gitdeps arguments' required: false - default: '' + runs: using: 'composite' steps: @@ -32,7 +32,6 @@ runs: shell: bash if: runner.os == 'macOS' run: | - set -e VERSION="${{ inputs.gitdeps_ver }}" OS_ARCH=$(uname -m | sed 's/aarch64/arm64/' | sed 's/x86_64/amd64/') BASE_NAME="gitdeps_${VERSION}_darwin_${OS_ARCH}" @@ -98,7 +97,9 @@ runs: - name: run gitdeps (Unix) shell: bash if: runner.os != 'Windows' - run: .gitdeps/${BASE_NAME}/gitdeps ${{ inputs.gitdeps_args }} + env: + GITDEPS_ARGS: ${{ inputs.gitdeps_args }} + run: .gitdeps/${BASE_NAME}/gitdeps $GITDEPS_ARGS - name: run gitdeps (Windows) shell: pwsh