From c9449c9a7c55e8cb79bb82ac357dc943638fdcda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Fri, 24 Jan 2025 20:35:05 +0100 Subject: [PATCH] tmp --- .github/workflows/auto-updates.yaml | 33 ++++++++++------------------- 1 file changed, 11 insertions(+), 22 deletions(-) diff --git a/.github/workflows/auto-updates.yaml b/.github/workflows/auto-updates.yaml index bccbfe445..b7a67fedb 100644 --- a/.github/workflows/auto-updates.yaml +++ b/.github/workflows/auto-updates.yaml @@ -33,19 +33,19 @@ jobs: CARGO_VENDOR_DIR: ${{ github.workspace }}/vendor_rust UPDATE_BRANCH: auto-update-rust-packaging-${{ matrix.ubuntu-version }} steps: - # - name: Install dependencies - # env: - # DEBIAN_FRONTEND: noninteractive - # CARGO_VENDOR_FILTERER_VERSION: 0.5.16 - # shell: bash - # run: | - # set -euo pipefail + - name: Install dependencies + env: + DEBIAN_FRONTEND: noninteractive + CARGO_VENDOR_FILTERER_VERSION: 0.5.16 + shell: bash + run: | + set -euo pipefail - # apt update -y - # apt install -y dh-cargo libssl-dev pkg-config + apt update -y + apt install -y git dh-cargo libssl-dev pkg-config - # cargo install --locked --root=/usr \ - # cargo-vendor-filterer@${{ env.CARGO_VENDOR_FILTERER_VERSION }} + cargo install --locked --root=/usr \ + cargo-vendor-filterer@${{ env.CARGO_VENDOR_FILTERER_VERSION }} - uses: actions/checkout@v4 with: @@ -148,13 +148,6 @@ jobs: echo "modified=true" >> "${GITHUB_ENV}" echo "update_branch=${UPDATE_BRANCH}" >> "${GITHUB_ENV}" - - name: Install git - if: ${{ env.modified == 'true' }} - run: | - set -eu - - apt install -y git - - name: Create Pull Request if: ${{ env.modified == 'true' }} uses: peter-evans/create-pull-request@v7 @@ -173,8 +166,4 @@ jobs: run: | set -eu - # apt install -y git - # FIXME: remove - # cd ${{ github.workspace }} - # git commit --all -m "Auto update packaging related Rust files" git push origin ${{ env.update_branch }}:${{ matrix.branch }}