Skip to content

Commit 20d263e

Browse files
committed
CI check to avoid duplicate directory bot errors
1 parent 30ca324 commit 20d263e

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/bot_build.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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: Checkout repo
13+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
14+
15+
- name: Git clone software-layer
16+
run: git clone https://github.com/EESSI/software-layer.git
17+
18+
- name: Run symlink commands
19+
run: |
20+
set -e
21+
22+
for file in $(ls software-layer | egrep -v 'easystacks|LICENSE|README.md|^bot'); do
23+
ln -s software-layer/${file}
24+
done
25+
26+
for file in $(ls software-layer/bot | grep -v '^build.sh'); do
27+
ln -s ../software-layer/bot/${file} bot/${file}
28+
done

0 commit comments

Comments
 (0)