From 20d263ef676daa0138eabcaf2979f34eddec8c57 Mon Sep 17 00:00:00 2001 From: Arturo Gimeno Date: Thu, 16 Apr 2026 14:43:57 +0200 Subject: [PATCH 1/2] CI check to avoid duplicate directory bot errors --- .github/workflows/bot_build.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/bot_build.yml diff --git a/.github/workflows/bot_build.yml b/.github/workflows/bot_build.yml new file mode 100644 index 00000000..e3c7be67 --- /dev/null +++ b/.github/workflows/bot_build.yml @@ -0,0 +1,28 @@ +name: Bot build script + +on: + pull_request: + branches: [ "main" ] + +jobs: + check_symlinks: + runs-on: ubuntu-latest + + steps: + - name: Checkout repo + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + + - name: Git clone software-layer + run: git clone https://github.com/EESSI/software-layer.git + + - name: Run symlink commands + run: | + set -e + + for file in $(ls software-layer | egrep -v 'easystacks|LICENSE|README.md|^bot'); do + ln -s software-layer/${file} + done + + for file in $(ls software-layer/bot | grep -v '^build.sh'); do + ln -s ../software-layer/bot/${file} bot/${file} + done From 44d8c9052c8592f84c17f9c41f9e7000127c3f1d Mon Sep 17 00:00:00 2001 From: Arturo Gimeno Date: Tue, 21 Apr 2026 10:13:03 +0200 Subject: [PATCH 2/2] fix in symlink command --- .github/workflows/bot_build.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/bot_build.yml b/.github/workflows/bot_build.yml index e3c7be67..760641ff 100644 --- a/.github/workflows/bot_build.yml +++ b/.github/workflows/bot_build.yml @@ -9,20 +9,21 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout repo - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - - - name: Git clone software-layer - run: git clone https://github.com/EESSI/software-layer.git + - name: Git clone software-layer and software-layer-scripts inside it + run: | + git clone https://github.com/EESSI/software-layer.git + cd software-layer + git clone https://github.com/EESSI/software-layer-scripts.git - name: Run symlink commands run: | set -e + cd software-layer - for file in $(ls software-layer | egrep -v 'easystacks|LICENSE|README.md|^bot'); do - ln -s software-layer/${file} + for file in $(ls software-layer-scripts | egrep -v 'easystacks|LICENSE|README.md|^bot'); do + ln -s software-layer-scripts/${file} done - for file in $(ls software-layer/bot | grep -v '^build.sh'); do - ln -s ../software-layer/bot/${file} bot/${file} + for file in $(ls software-layer-scripts/bot | grep -v '^build.sh'); do + ln -s ../software-layer-scripts/bot/${file} bot/${file} done