Skip to content

Commit

Permalink
Add tag as an input (#6)
Browse files Browse the repository at this point in the history
Allow users to add a release tag as an input to the action
  • Loading branch information
yjpictures authored Nov 5, 2023
1 parent 168149f commit 753d885
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
8 changes: 8 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down

0 comments on commit 753d885

Please sign in to comment.