Skip to content

Commit 805aa94

Browse files
authored
Merge pull request #10485 from github/redsun82/swift-fix-version-in-integration-tests
Swift: fix version in integration tests
2 parents 38b23f1 + 45fc1d5 commit 805aa94

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/swift-integration-tests.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ jobs:
3030
- name: Build Swift extractor
3131
run: |
3232
bazel run //swift:create-extractor-pack
33+
- name: Get Swift version
34+
id: get_swift_version
35+
run: |
36+
VERSION=$(bazel run //swift/extractor -- --version | sed -ne 's/.*version \(\S*\).*/\1/p')
37+
echo "::set-output name=version::$VERSION"
38+
- uses: swift-actions/setup-swift@v1
39+
with:
40+
swift-version: "${{steps.get_swift_version.outputs.version}}"
3341
- name: Run integration tests
3442
run: |
3543
python integration-tests/runner.py

0 commit comments

Comments
 (0)