From 753d885e3797d17214c7123d62fba4d6325348ec Mon Sep 17 00:00:00 2001 From: Yash Jain <46950318+yjpictures@users.noreply.github.com> Date: Sun, 5 Nov 2023 13:53:21 -0500 Subject: [PATCH] Add tag as an input (#6) Allow users to add a release tag as an input to the action --- .github/workflows/test.yml | 21 +++++++++++++++++++++ action.yml | 8 ++++++++ 2 files changed, 29 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 84e18ca..00001f8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -61,3 +61,24 @@ jobs: - name: Add GTK uses: ./ + + test-inputs: + + name: Test out the inputs + strategy: + fail-fast: false + matrix: + releases: [2022-01-04, 2021-04-29, 2021-01-30, 2020-11-22, 2020-07-15, 2020-05-19] + runs-on: windows-latest + + steps: + + - name: Checkout the actions file + uses: actions/checkout@v4 + with: + sparse-checkout: . + + - name: Add GTK + uses: ./ + with: + release: ${{ matrix.releases }} diff --git a/action.yml b/action.yml index 8836c48..98098ec 100644 --- a/action.yml +++ b/action.yml @@ -2,6 +2,13 @@ name: 'GTK for Windows' author: 'Yash Jain' description: 'This will add GTK+ in Windows Runtime Environment' +inputs: + + release: + description: The release tag to use. Default is 2022-01-04. + required: true + default: 2022-01-04 + runs: using: "composite" @@ -21,6 +28,7 @@ runs: if: runner.os == 'Windows' with: repository: tschoonj/GTK-for-Windows-Runtime-Environment-Installer + ref: ${{ inputs.release }} path: _tempGTK sparse-checkout: gtk-nsis-pack sparse-checkout-cone-mode: false