forked from mttaggart/shell-setup
-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (29 loc) · 702 Bytes
/
setup.yml
File metadata and controls
34 lines (29 loc) · 702 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: CI
on:
push:
branches: [ "main" ]
workflow_dispatch:
schedule:
- cron: '0 0 * * 1'
jobs:
run-setup:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Make setup.sh executable (if needed)
run: chmod +x ./setup.sh
- name: Run setup.sh with strict bash
id: run_setup
shell: bash
env:
MATT_SKIP_POWERSHELL: "1"
run: |
set -euo pipefail
./setup.sh 2>&1 | tee setup.log
- name: Upload setup log on failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: setup-log
path: setup.log