Skip to content

Commit

Permalink
Upgrade actions/checkout to v4.0.0 (#887)
Browse files Browse the repository at this point in the history
Sometimes we had the following issue in our CI

```
Prepare all required actions
Getting action download info
Download action repository 'actions/checkout@f43a0e5ff2bd294095638e[18](https://github.com/SharezoneApp/sharezone-app/actions/runs/6081692757/job/16497871915?pr=883#step:1:22)286ca9a3d[19](https://github.com/SharezoneApp/sharezone-app/actions/runs/6081692757/job/16497871915?pr=883#step:1:23)56744' (SHA:f43a0e5ff2bd294095638e18286ca9a3d1956744)
Error: Can't use 'tar -xzf' extract archive file: /home/runner/work/_actions/_temp_cbdafda6-2c5b-4638-b6be-e6d65c6e3a8a/4afea807-b012-4842-986f-87c77b76bc37.tar.gz. return code: 2.
```

This is the issue: actions/checkout#1448.
Upgrading to 4.0.0 should fix the issue (see
actions/checkout#1448 (comment))
  • Loading branch information
nilsreichardt authored Sep 5, 2023
1 parent 9ad9c9a commit d7efd9e
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 21 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/actions_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
outputs:
changesFound: ${{ steps.filter.outputs.changesFound }}
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac
- uses: AurorNZ/paths-filter@7c547bdd24124b0d69e07c96b62fd7fec5ced19a
id: filter
with:
Expand All @@ -73,7 +73,7 @@ jobs:
runs-on: ubuntu-22.04
if: ${{ needs.changes.outputs.changesFound == 'true' }}
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac

- name: Install Prettier
run: npm install --global [email protected]
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/alpha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
deploy-alpha-web-app:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac

- name: Set Flutter version from FVM config file to environment variables
uses: kuhnroyal/flutter-fvm-config-action@6ffa30473b346f7d7c63cf9e03e6a886f940a72b
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:
deploy-alpha-android-app:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac

- name: Set Flutter version from FVM config file to environment variables
uses: kuhnroyal/flutter-fvm-config-action@6ffa30473b346f7d7c63cf9e03e6a886f940a72b
Expand Down Expand Up @@ -209,7 +209,7 @@ jobs:
runs-on: macos-13
timeout-minutes: 120
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac

- name: Install Codemagic CLI Tools
run: pip3 install codemagic-cli-tools==0.39.1
Expand Down Expand Up @@ -286,7 +286,7 @@ jobs:
runs-on: macos-13
timeout-minutes: 120
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac
- name: Install Codemagic CLI Tools
run: pip3 install codemagic-cli-tools==0.39.1
- name: Setup signing
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/cli_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
outputs:
changesFound: ${{ steps.filter.outputs.changesFound }}
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac
- uses: AurorNZ/paths-filter@7c547bdd24124b0d69e07c96b62fd7fec5ced19a
id: filter
with:
Expand Down Expand Up @@ -81,7 +81,7 @@ jobs:
# In this case the analyze pipeline would fail, thus we won't run it.
if: ${{ github.event.pull_request.draft == false && needs.changes.outputs.changesFound == 'true' }}
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac

- name: Set Flutter version from FVM config file to environment variables
uses: kuhnroyal/flutter-fvm-config-action@6ffa30473b346f7d7c63cf9e03e6a886f940a72b
Expand Down Expand Up @@ -132,7 +132,7 @@ jobs:
runs-on: ubuntu-22.04
if: ${{ needs.changes.outputs.changesFound == 'true' }}
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac

- name: Set Flutter version from FVM config file to environment variables
uses: kuhnroyal/flutter-fvm-config-action@6ffa30473b346f7d7c63cf9e03e6a886f940a72b
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/integration_tests_app_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
outputs:
changesFound: ${{ steps.filter.outputs.changesFound }}
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac
- uses: AurorNZ/paths-filter@7c547bdd24124b0d69e07c96b62fd7fec5ced19a
id: filter
with:
Expand Down Expand Up @@ -80,7 +80,7 @@ jobs:
working-directory: app/android
timeout-minutes: 90
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac

# Java is needed for building the APK, see
# https://github.com/marketplace/actions/flutter-action.
Expand Down Expand Up @@ -173,7 +173,7 @@ jobs:
if: ${{ needs.changes.outputs.changesFound == 'true' }}
timeout-minutes: 45
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac

- name: Set Flutter version from FVM config file to environment variables
uses: kuhnroyal/flutter-fvm-config-action@6ffa30473b346f7d7c63cf9e03e6a886f940a72b
Expand Down Expand Up @@ -235,7 +235,7 @@ jobs:
run:
working-directory: app
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac

- name: Install Codemagic CLI Tools
run: pip3 install codemagic-cli-tools==0.39.1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/licence.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
check-files-licence-headers:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac
- uses: actions/setup-go@883490dfd06f396ebe0b738bc313a53cf9d851e5
with:
go-version: "^1.13.1"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/safe_app_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
outputs:
changesFound: ${{ steps.filter.outputs.changesFound }}
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac
- uses: AurorNZ/paths-filter@7c547bdd24124b0d69e07c96b62fd7fec5ced19a
id: filter
with:
Expand Down Expand Up @@ -97,7 +97,7 @@ jobs:
# In this case the analyze pipeline would fail, thus we won't run it.
if: ${{ github.event.pull_request.draft == false && needs.changes.outputs.changesFound == 'true' }}
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac

- name: Set Flutter version from FVM config file to environment variables
uses: kuhnroyal/flutter-fvm-config-action@6ffa30473b346f7d7c63cf9e03e6a886f940a72b
Expand Down Expand Up @@ -146,7 +146,7 @@ jobs:
if: ${{ needs.changes.outputs.changesFound == 'true' }}
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac

- name: Set Flutter version from FVM config file to environment variables
uses: kuhnroyal/flutter-fvm-config-action@6ffa30473b346f7d7c63cf9e03e6a886f940a72b
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
runs-on: macos-13
timeout-minutes: 120
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac

- name: Install Codemagic CLI Tools
run: pip3 install codemagic-cli-tools==0.39.1
Expand Down Expand Up @@ -112,7 +112,7 @@ jobs:
if: github.event.inputs.deploy-web-app == 'true'
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac

- name: Set Flutter version from FVM config file to environment variables
uses: kuhnroyal/flutter-fvm-config-action@6ffa30473b346f7d7c63cf9e03e6a886f940a72b
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/unsafe_app_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
outputs:
changesFound: ${{ steps.filter.outputs.changesFound }}
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac
with:
# Because we are using the "pull_request_target" event, we need to
# checkout the PR head commit instead of the merge commit.
Expand Down Expand Up @@ -136,7 +136,7 @@ jobs:
- name: Ensure PR has "safe to test" label, if PR is from a fork
uses: SharezoneApp/verify-safe-to-test-label@c1059d43fc918756660a700ca6d08e445ff314a2

- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac
with:
# Because we are using the "pull_request_target" event, we need to
# checkout the PR head commit instead of the merge commit.
Expand Down

0 comments on commit d7efd9e

Please sign in to comment.