We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21feb40 commit ae750b7Copy full SHA for ae750b7
.github/workflows/swift_package_test.yml
@@ -23,6 +23,9 @@ on:
23
type: string
24
description: "Command to execute before building the Swift package"
25
default: ""
26
+ env_vars:
27
+ description: "List of environment variables."
28
+ type: string
29
30
jobs:
31
build:
@@ -40,6 +43,13 @@ jobs:
40
43
steps:
41
44
- name: Checkout repository
42
45
uses: actions/checkout@v4
46
+ - name: Set environment variables
47
+ if: ${{ inputs.env_vars }}
48
+ run: |
49
+ for i in "${{ inputs.env_vars }}"
50
+ do
51
+ printf "%s\n" $i >> $GITHUB_ENV
52
+ done
53
- name: Pre-build
54
run: ${{ inputs.pre_build_command }}
55
- name: Build Swift Package
0 commit comments