From 6851d182ebcc29bc0b4dbd227f71a65965358f2c Mon Sep 17 00:00:00 2001 From: tony-josi-aws Date: Wed, 29 Mar 2023 14:16:00 +0530 Subject: [PATCH] uncrustify yml fix --- .github/workflows/ci.yml | 7 ++++--- .github/workflows/uncrustify.yml | 8 ++++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d755e4fcd..83288878c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -71,11 +71,12 @@ jobs: formatting: # Use only 18.04 since we want the uncrustify version to # be 0.66.1_f to ensure proper formatting. - runs-on: ubuntu-18.04 + runs-on: ubuntu-20.04 + container: ubuntu:18.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Install Uncrustify - run: sudo apt-get install uncrustify + run: apt-get update && apt-get install uncrustify - name: Run Uncrustify run: | uncrustify --version diff --git a/.github/workflows/uncrustify.yml b/.github/workflows/uncrustify.yml index 01bf905be..2e492b8ba 100644 --- a/.github/workflows/uncrustify.yml +++ b/.github/workflows/uncrustify.yml @@ -8,7 +8,8 @@ jobs: Uncrustify: name: Run_Uncrustify if: ${{ github.event.issue.pull_request && github.event.comment.body == '/bot run uncrustify' }} - runs-on: ubuntu-18.04 + runs-on: ubuntu-20.04 + container: ubuntu:18.04 steps: - name: Dump GitHub context env: @@ -29,17 +30,16 @@ jobs: run: | echo ${{ steps.upstreamrepo.outputs.RemoteRepo }}:${{ steps.upstreambranch.outputs.branchname }} - name: Checkout upstream repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: repository: ${{ steps.upstreamrepo.outputs.RemoteRepo }} ref: ${{ steps.upstreambranch.outputs.branchname }} - name: Install Uncrustify - run: sudo apt-get install uncrustify + run: apt-get update && apt-get install uncrustify - name: Run Uncrustify run: | uncrustify --version find . -iname "*.[hc]" -exec uncrustify -c tools/uncrustify.cfg --no-backup --replace {} + - find . -iname "*.[hc]" -exec uncrustify -c tools/uncrustify.cfg --no-backup --replace {} + - name: Push changes to upstream repository run: | git config --global user.name 'GitHub Action'