diff --git a/.github/workflows/bot_build.yml b/.github/workflows/bot_build.yml new file mode 100644 index 0000000000..d11d147dc3 --- /dev/null +++ b/.github/workflows/bot_build.yml @@ -0,0 +1,28 @@ +name: Bot symlink + +on: + pull_request: + branches: [ "main" ] + +jobs: + build_script: + runs-on: ubuntu-latest + + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Git clone software-layer-scripts + run: git clone https://github.com/EESSI/software-layer-scripts + + - name: Run symlink commands + run: | + set -e + + 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-scripts/bot | grep -v '^build.sh'); do + ln -s ../software-layer-scripts/bot/${file} bot/${file} + done