From bc17c67a705ecb949419c6d6c15f2082174a7093 Mon Sep 17 00:00:00 2001 From: Alw3ys Date: Thu, 25 Jan 2024 12:56:54 +0100 Subject: [PATCH 01/12] test --- .github/workflows/test.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..8f7658e --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,24 @@ +name: test + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + test: + name: 'test ${{ matrix.target }}' + strategy: + matrix: + os: [ubuntu-latest, macos-latest] + runs-on: ${{ matrix.os }} + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup dctl CLI + uses: ./ + + - name: Test dctl + run: dctl --version From eef9368921afd9a66afdf7fa4a5ba80cb7607fa8 Mon Sep 17 00:00:00 2001 From: Alw3ys Date: Thu, 25 Jan 2024 12:58:06 +0100 Subject: [PATCH 02/12] matrix name fix --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8f7658e..6e9fc96 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,7 +8,7 @@ on: jobs: test: - name: 'test ${{ matrix.target }}' + name: 'test ${{ matrix.os }}' strategy: matrix: os: [ubuntu-latest, macos-latest] From 6835ae4bcbb624b39ba6a035ea7664450dfaf2c8 Mon Sep 17 00:00:00 2001 From: Alw3ys Date: Thu, 25 Jan 2024 13:01:05 +0100 Subject: [PATCH 03/12] maybe fix? --- action.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/action.yaml b/action.yaml index d0dd5e6..3ff8f93 100644 --- a/action.yaml +++ b/action.yaml @@ -14,7 +14,10 @@ inputs: runs: using: "composite" steps: - - run: curl -fsSL https://dosei.ai/install.sh | sh + - run: | + curl -fsSL https://dosei.ai/install.sh | sh + echo "DOSEI_CLI_INSTALL=/home/runner/.dosei" >> $GITHUB_ENV + echo "PATH=$DOSEI_CLI_INSTALL/bin:$PATH" >> $GITHUB_ENV shell: bash - run: echo "DOSEI_TOKEN=${{ inputs.token }}" >> $GITHUB_ENV if: ${{ inputs.token }} From ba7691f19f62ef8e23ddef45ab67d783b71e3b10 Mon Sep 17 00:00:00 2001 From: Alw3ys Date: Thu, 25 Jan 2024 13:04:48 +0100 Subject: [PATCH 04/12] test --- action.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/action.yaml b/action.yaml index 3ff8f93..912acbc 100644 --- a/action.yaml +++ b/action.yaml @@ -14,8 +14,9 @@ inputs: runs: using: "composite" steps: + - run: curl -fsSL https://dosei.ai/install.sh | sh + shell: bash - run: | - curl -fsSL https://dosei.ai/install.sh | sh echo "DOSEI_CLI_INSTALL=/home/runner/.dosei" >> $GITHUB_ENV echo "PATH=$DOSEI_CLI_INSTALL/bin:$PATH" >> $GITHUB_ENV shell: bash From ad02c93524043d7f0e0a611fc0666972d3425fba Mon Sep 17 00:00:00 2001 From: Alw3ys Date: Thu, 25 Jan 2024 13:06:48 +0100 Subject: [PATCH 05/12] test thisd --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6e9fc96..a56222e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,4 +21,4 @@ jobs: uses: ./ - name: Test dctl - run: dctl --version + run: /home/runner/.dosei/bin/dctl --version From eceb13894f3229a3ae82aa16f8c29aeac19b60ce Mon Sep 17 00:00:00 2001 From: Alw3ys Date: Thu, 25 Jan 2024 13:10:24 +0100 Subject: [PATCH 06/12] this --- .github/workflows/test.yml | 2 +- action.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a56222e..6e9fc96 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,4 +21,4 @@ jobs: uses: ./ - name: Test dctl - run: /home/runner/.dosei/bin/dctl --version + run: dctl --version diff --git a/action.yaml b/action.yaml index 912acbc..9ed8791 100644 --- a/action.yaml +++ b/action.yaml @@ -18,7 +18,7 @@ runs: shell: bash - run: | echo "DOSEI_CLI_INSTALL=/home/runner/.dosei" >> $GITHUB_ENV - echo "PATH=$DOSEI_CLI_INSTALL/bin:$PATH" >> $GITHUB_ENV + echo "$DOSEI_CLI_INSTALL/bin" >> $GITHUB_PATH shell: bash - run: echo "DOSEI_TOKEN=${{ inputs.token }}" >> $GITHUB_ENV if: ${{ inputs.token }} From 728efc2dfec4c1e22e4a1b513e1bb26e294aedd9 Mon Sep 17 00:00:00 2001 From: Alw3ys Date: Thu, 25 Jan 2024 13:13:13 +0100 Subject: [PATCH 07/12] test --- action.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/action.yaml b/action.yaml index 9ed8791..6fd121e 100644 --- a/action.yaml +++ b/action.yaml @@ -14,11 +14,9 @@ inputs: runs: using: "composite" steps: - - run: curl -fsSL https://dosei.ai/install.sh | sh - shell: bash - run: | - echo "DOSEI_CLI_INSTALL=/home/runner/.dosei" >> $GITHUB_ENV - echo "$DOSEI_CLI_INSTALL/bin" >> $GITHUB_PATH + curl -fsSL https://dosei.ai/install.sh | sh + echo "/home/runner/.dosei/bin" >> $GITHUB_PATH shell: bash - run: echo "DOSEI_TOKEN=${{ inputs.token }}" >> $GITHUB_ENV if: ${{ inputs.token }} From c65812a0ca91c8be61f93cff501d70e81801c867 Mon Sep 17 00:00:00 2001 From: Alw3ys Date: Thu, 25 Jan 2024 13:14:33 +0100 Subject: [PATCH 08/12] fix macos --- action.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/action.yaml b/action.yaml index 6fd121e..b0fbe90 100644 --- a/action.yaml +++ b/action.yaml @@ -16,7 +16,11 @@ runs: steps: - run: | curl -fsSL https://dosei.ai/install.sh | sh - echo "/home/runner/.dosei/bin" >> $GITHUB_PATH + if [ "$RUNNER_OS" == "Linux" ]; then + echo "/home/runner/.dosei/bin" >> $GITHUB_PATH + elif [ "$RUNNER_OS" == "macOS" ]; then + echo "/Users/runner/.dosei/bin" >> $GITHUB_PATH + fi shell: bash - run: echo "DOSEI_TOKEN=${{ inputs.token }}" >> $GITHUB_ENV if: ${{ inputs.token }} From 4832c378b9abf2dfbab38bb691c5376ed38292dd Mon Sep 17 00:00:00 2001 From: Alw3ys Date: Thu, 25 Jan 2024 13:19:02 +0100 Subject: [PATCH 09/12] windows --- .github/workflows/test.yml | 2 +- action.yaml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6e9fc96..d2b0bb2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: name: 'test ${{ matrix.os }}' strategy: matrix: - os: [ubuntu-latest, macos-latest] + os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} steps: - name: Checkout diff --git a/action.yaml b/action.yaml index b0fbe90..fece11f 100644 --- a/action.yaml +++ b/action.yaml @@ -22,6 +22,12 @@ runs: echo "/Users/runner/.dosei/bin" >> $GITHUB_PATH fi shell: bash + if: runner.os != 'Windows' + - run: | + irm https://dosei.ai/install.ps1 | iex + echo "$env:USERPROFILE\.dosei\bin" >> $GITHUB_PATH + shell: pwsh + if: runner.os == 'Windows' - run: echo "DOSEI_TOKEN=${{ inputs.token }}" >> $GITHUB_ENV if: ${{ inputs.token }} shell: bash From de06c545d0cd83fab65c3c26f9c9e2cab7622fe6 Mon Sep 17 00:00:00 2001 From: Alw3ys Date: Thu, 25 Jan 2024 13:19:58 +0100 Subject: [PATCH 10/12] remove windows for now --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d2b0bb2..6e9fc96 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: name: 'test ${{ matrix.os }}' strategy: matrix: - os: [ubuntu-latest, macos-latest, windows-latest] + os: [ubuntu-latest, macos-latest] runs-on: ${{ matrix.os }} steps: - name: Checkout From 9be93dc3cf5725c7aeab6be33cdffdb86ba9631d Mon Sep 17 00:00:00 2001 From: Alw3ys Date: Thu, 25 Jan 2024 13:24:02 +0100 Subject: [PATCH 11/12] test windows --- .github/workflows/test.yml | 2 +- action.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6e9fc96..d2b0bb2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: name: 'test ${{ matrix.os }}' strategy: matrix: - os: [ubuntu-latest, macos-latest] + os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} steps: - name: Checkout diff --git a/action.yaml b/action.yaml index fece11f..764b861 100644 --- a/action.yaml +++ b/action.yaml @@ -25,7 +25,7 @@ runs: if: runner.os != 'Windows' - run: | irm https://dosei.ai/install.ps1 | iex - echo "$env:USERPROFILE\.dosei\bin" >> $GITHUB_PATH + Add-Content $env:GITHUB_PATH "$env:USERPROFILE\.dosei\bin" shell: pwsh if: runner.os == 'Windows' - run: echo "DOSEI_TOKEN=${{ inputs.token }}" >> $GITHUB_ENV From 021e17aaa851c822f6ac9763ae9a926afc9caabb Mon Sep 17 00:00:00 2001 From: Alw3ys Date: Thu, 25 Jan 2024 13:25:39 +0100 Subject: [PATCH 12/12] chore(release): 0.0.19 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7431028..6eb45fb 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ steps: uses: actions/checkout@v3 - name: Setup dctl CLI - uses: doseiai/setup-dctl@v0.0.18 + uses: doseiai/setup-dctl@v0.0.19 with: token: ${{ secrets.DOSEI_TOKEN }} ```