Skip to content

Commit 7fb0e21

Browse files
authored
Make default refs valid on PR checks
Set default versions for ripunzip and openssl in the workflow.
1 parent 2ff4af9 commit 7fb0e21

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/build-ripunzip.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@ on:
66
ripunzip-version:
77
description: "what reference to checktout from google/runzip"
88
required: false
9-
default: v2.0.3
109
openssl-version:
1110
description: "what reference to checkout from openssl/openssl for Linux"
1211
required: false
13-
default: openssl-3.6.0
1412
pull_request:
1513
paths:
1614
- .github/workflows/build-ripunzip.yml
15+
env:
16+
RIPUNZIP_DEFAULT: v2.0.3
17+
OPENSSL_DEFAULT: openssl-3.6.0
1718

1819
jobs:
1920
build:
@@ -26,7 +27,7 @@ jobs:
2627
- uses: actions/checkout@v5
2728
with:
2829
repository: google/ripunzip
29-
ref: ${{ inputs.ripunzip-version }}
30+
ref: ${{ inputs.ripunzip-version || env.RIPUNZIP_DEFAULT }}
3031
# we need to avoid ripunzip dynamically linking into libssl
3132
# see https://github.com/sfackler/rust-openssl/issues/183
3233
- if: runner.os == 'Linux'
@@ -35,7 +36,7 @@ jobs:
3536
with:
3637
repository: openssl/openssl
3738
path: openssl
38-
ref: ${{ inputs.openssl-version }}
39+
ref: ${{ inputs.openssl-version || env.OPENSSL_DEFAULT }}
3940
- if: runner.os == 'Linux'
4041
name: build and install openssl with fPIC
4142
shell: bash

0 commit comments

Comments
 (0)