Skip to content

Commit d1486db

Browse files
committed
Run install.sh outside of the repository in CI
1 parent a6e0e5f commit d1486db

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ jobs:
2121
run: |
2222
sudo curl -L https://github.com/goss-org/goss/releases/latest/download/goss-darwin-amd64 -o /usr/local/bin/goss
2323
sudo chmod +rx /usr/local/bin/goss
24+
- name: Copy install.sh to outside of the repository
25+
run: |
26+
cp ./install.sh /tmp/install.sh
2427
- name: Run test
28+
working-directory: /tmp
2529
run: |
2630
./install.sh
2731
# Run script twice to test idempotency

install.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/bin/bash
2+
# Since this script is downloaded from GitHub and executed directly,
3+
# it must not depend on other files in the repository until chezmoi is run.
24
set -eu
35

46
account="mono0x"

0 commit comments

Comments
 (0)