Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/swift_package_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,20 @@ jobs:
steps:
- name: Swift version
run: swift --version
- name: Determine checkout action version
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we document why this is necessary

id: checkout-version
run: |
USE_V4=true
if [[ "${{ matrix.os_version }}" == "amazonlinux2" ]]; then
USE_V4=false
fi
echo "use_v4=$USE_V4" >> $GITHUB_OUTPUT
- name: Checkout repository
if: steps.checkout-version.outputs.use_v4 == 'true'
uses: actions/checkout@v4
- name: Checkout repository (v3)
if: steps.checkout-version.outputs.use_v4 == 'false'
uses: actions/checkout@v3
- name: Provide token
if: ${{ inputs.needs_token }}
run: |
Expand Down Expand Up @@ -230,8 +242,20 @@ jobs:
steps:
- name: Swift version
run: swift --version
- name: Determine checkout action version
id: checkout-version
run: |
USE_V4=true
if [[ "${{ matrix.os_version }}" == "amazonlinux2" ]]; then
USE_V4=false
fi
echo "use_v4=$USE_V4" >> $GITHUB_OUTPUT
- name: Checkout repository
if: steps.checkout-version.outputs.use_v4 == 'true'
uses: actions/checkout@v4
- name: Checkout repository (v3)
if: steps.checkout-version.outputs.use_v4 == 'false'
uses: actions/checkout@v3
- name: Provide token
if: ${{ inputs.needs_token }}
run: |
Expand Down Expand Up @@ -270,8 +294,20 @@ jobs:
steps:
- name: Swift version
run: swift --version
- name: Determine checkout action version
id: checkout-version
run: |
USE_V4=true
if [[ "${{ matrix.os_version }}" == "amazonlinux2" ]]; then
USE_V4=false
fi
echo "use_v4=$USE_V4" >> $GITHUB_OUTPUT
- name: Checkout repository
if: steps.checkout-version.outputs.use_v4 == 'true'
uses: actions/checkout@v4
- name: Checkout repository (v3)
if: steps.checkout-version.outputs.use_v4 == 'false'
uses: actions/checkout@v3
- name: Provide token
if: ${{ inputs.needs_token }}
run: |
Expand Down Expand Up @@ -310,8 +346,20 @@ jobs:
steps:
- name: Swift version
run: swift --version
- name: Determine checkout action version
id: checkout-version
run: |
USE_V4=true
if [[ "${{ matrix.os_version }}" == "amazonlinux2" ]]; then
USE_V4=false
fi
echo "use_v4=$USE_V4" >> $GITHUB_OUTPUT
- name: Checkout repository
if: steps.checkout-version.outputs.use_v4 == 'true'
uses: actions/checkout@v4
- name: Checkout repository (v3)
if: steps.checkout-version.outputs.use_v4 == 'false'
uses: actions/checkout@v3
- name: Provide token
if: ${{ inputs.needs_token }}
run: |
Expand Down