From a956c2b6961c3ff759c557ec29e0049f1b720b78 Mon Sep 17 00:00:00 2001 From: Kai Waldrant Date: Wed, 7 Aug 2024 16:54:16 +0200 Subject: [PATCH] Add commit step (#25) * add build * [WIP] change how build is triggered * [WIP] add a test * [WIP] refactor to phase * [WIP] add commit step --- .github/workflows/build.yaml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 670fead..ca8cfb9 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -111,7 +111,7 @@ jobs: # phase 3 cleanup: name: Clean up repository - needs: target + needs: [target, docker] runs-on: ubuntu-latest permissions: @@ -130,8 +130,7 @@ jobs: - name: Copy executables to root run: | echo "Copying directories to root" - # cp -r target/executable/common/* . - ls -l + cp -r target/executable/common/* . # Add step to remove unnecessary files - name: Clean up @@ -139,4 +138,10 @@ jobs: echo "Cleaning up" rm -rf target rm -rf src - rm _viash.yaml \ No newline at end of file + rm _viash.yaml + + - name: Commit changes + uses: devops-infra/action-commit-push@master + with: + commit_message: "Clean up repository" + github_token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file