From 0abc829e3e7e76328ea49f9e533a92eb9206e22b Mon Sep 17 00:00:00 2001 From: lea Date: Thu, 28 Mar 2024 04:40:28 -0700 Subject: [PATCH] feat: update GHA actions versions (#1013) --- .github/workflows/autobuild.yml | 9 +++++---- .github/workflows/bootstrap.yml | 2 +- .github/workflows/build.yml | 7 ++++--- .github/workflows/json-build.yml | 7 ++++--- .github/workflows/lint.yml | 2 +- .github/workflows/sync.yml.bak | 2 +- .github/workflows/update-comps.yml | 2 +- .github/workflows/update-nightly.yml | 2 +- .github/workflows/update.yml | 2 +- 9 files changed, 19 insertions(+), 16 deletions(-) diff --git a/.github/workflows/autobuild.yml b/.github/workflows/autobuild.yml index 3db33939a1..f6da542946 100644 --- a/.github/workflows/autobuild.yml +++ b/.github/workflows/autobuild.yml @@ -29,7 +29,7 @@ jobs: - name: Set workspace as safe run: git config --global --add safe.directory "$GITHUB_WORKSPACE" - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Generate build matrix @@ -48,7 +48,7 @@ jobs: options: --cap-add=SYS_ADMIN --privileged steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up git repository @@ -56,7 +56,7 @@ jobs: - name: Cache buildroot id: br-cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: /var/cache key: ${{ runner.os }}-br-${{ matrix.version }}-${{ matrix.pkg.arch }} @@ -75,9 +75,10 @@ jobs: x=${NAME//\//@} echo "name=$x" >> $GITHUB_OUTPUT - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: ${{ steps.art.outputs.name }} + compression-level: 0 # The RPMs are already compressed :p path: | anda-build/rpm/rpms/* anda-build/rpm/srpm/* diff --git a/.github/workflows/bootstrap.yml b/.github/workflows/bootstrap.yml index 600b7eaa4a..d0aabd5be4 100644 --- a/.github/workflows/bootstrap.yml +++ b/.github/workflows/bootstrap.yml @@ -21,7 +21,7 @@ jobs: - name: Install Anda run: cargo install anda - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: f${{ matrix.version }} fetch-depth: 1 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2a7402a0e8..179085f14a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,7 +30,7 @@ jobs: options: --cap-add=SYS_ADMIN --privileged steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up git repository @@ -38,7 +38,7 @@ jobs: - name: Cache buildroot id: br-cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: /var/cache key: ${{ runner.os }}-br-${{ matrix.version }}-${{ matrix.arch }}-${{ matrix.pkg }} @@ -53,9 +53,10 @@ jobs: x=${NAME//\//@} echo "name=$x" >> $GITHUB_OUTPUT - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: ${{ steps.art.outputs.name }} + compression-level: 0 # The RPMs are already compressed :p path: | anda-build/rpm/rpms/* anda-build/rpm/srpm/* diff --git a/.github/workflows/json-build.yml b/.github/workflows/json-build.yml index 62ecb35e29..ac03edc613 100644 --- a/.github/workflows/json-build.yml +++ b/.github/workflows/json-build.yml @@ -19,7 +19,7 @@ jobs: options: --cap-add=SYS_ADMIN --privileged steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up git repository @@ -27,7 +27,7 @@ jobs: - name: Cache buildroot id: br-cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: /var/cache key: ${{ runner.os }}-br-${{ matrix.version }}-${{ matrix.pkg.arch }}-${{ matrix.pkg.pkg }} @@ -42,9 +42,10 @@ jobs: x=${NAME//\//@} echo "name=$x" >> $GITHUB_OUTPUT - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: ${{ steps.art.outputs.name }} + compression-level: 0 # The RPMs are already compressed :p path: | anda-build/rpm/rpms/* anda-build/rpm/srpm/* diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 14eb64e80b..b8f8a479c5 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -17,6 +17,6 @@ jobs: image: ghcr.io/terrapkg/builder:f39 steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Lint spec files run: rpmlint $(find anda -type f -name "*.spec" -type f) diff --git a/.github/workflows/sync.yml.bak b/.github/workflows/sync.yml.bak index 48f66660ec..466c44eae1 100644 --- a/.github/workflows/sync.yml.bak +++ b/.github/workflows/sync.yml.bak @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 ssh-key: ${{ secrets.SSH_AUTHENTICATION_KEY }} diff --git a/.github/workflows/update-comps.yml b/.github/workflows/update-comps.yml index 3ebc1259f2..4f3756ec2b 100644 --- a/.github/workflows/update-comps.yml +++ b/.github/workflows/update-comps.yml @@ -16,7 +16,7 @@ jobs: container: image: ghcr.io/terrapkg/builder:f39 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Push to subatomic run: | branch=${{ github.ref_name }} diff --git a/.github/workflows/update-nightly.yml b/.github/workflows/update-nightly.yml index a2302c5294..83adf07e46 100644 --- a/.github/workflows/update-nightly.yml +++ b/.github/workflows/update-nightly.yml @@ -12,7 +12,7 @@ jobs: options: --cap-add=SYS_ADMIN --privileged steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 ssh-key: ${{ secrets.SSH_AUTHENTICATION_KEY }} diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 317f2be061..bcdca02af6 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -12,7 +12,7 @@ jobs: options: --cap-add=SYS_ADMIN --privileged steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 ssh-key: ${{ secrets.SSH_AUTHENTICATION_KEY }}