diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index f8c32bbd3..1aefb1eb0 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -1,12 +1,17 @@ name: CI of IDEAS using GitHub Actions -on: [push, pull_request] +on: [pull_request] jobs: build: runs-on: self-hosted steps: - - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." + - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event" - run: echo "🐧 This job is now running on a ${{ runner.os }} server called tony-de-rekenpony hosted by The Sysis team at KU Leuven" - - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." + - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}" + - run: echo "The following commands are used to remove files inside container to ensure cleanup and avoid permission errors" + - run: docker stop dymimg > /dev/null 2>&1 || true + - run: docker run --name dymimg --detach=true --rm -v /home/actions-runner/_work/IDEAS/IDEAS:/home/developer/IDEAS -w /home/developer/IDEAS -it dymimg + - run: docker exec -t dymimg /bin/bash -c "rm -rf IDEAS && exit" + - run: docker stop dymimg > /dev/null 2>&1 || true - name: Check out repository code uses: actions/checkout@v3 with: