Skip to content

Commit b490258

Browse files
authored
Merge pull request #204 from agimenog/bot_script_ci
CI check to avoid duplicate directory bot errors
2 parents c4ed80c + b640b0c commit b490258

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/bot_build.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Bot build script
2+
3+
on:
4+
pull_request:
5+
branches: [ "main" ]
6+
7+
jobs:
8+
check_symlinks:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Git clone software-layer and software-layer-scripts inside it
13+
run: |
14+
git clone https://github.com/EESSI/software-layer.git
15+
cd software-layer
16+
git clone https://github.com/EESSI/software-layer-scripts.git
17+
18+
- name: Run symlink commands
19+
run: |
20+
set -e
21+
cd software-layer
22+
23+
for file in $(ls software-layer-scripts | egrep -v 'easystacks|LICENSE|README.md|^bot'); do
24+
ln -s software-layer-scripts/${file}
25+
done
26+
27+
for file in $(ls software-layer-scripts/bot | grep -v '^build.sh'); do
28+
ln -s ../software-layer-scripts/bot/${file} bot/${file}
29+
done

0 commit comments

Comments
 (0)