7a30bcae40dfd19153ad6fc4abd52dfa805dbd03
- Author
- Marc Cornellà <marc@mcornella.com>
- Committer
- Marc Cornellà <marc@mcornella.com>
- Date
Message
ci(installer): fix token passing and only run on main repo
Diff
1diff --git a/.github/workflows/installer.yml b/.github/workflows/installer.yml
2index a70c483d1ba635d7ff5a9d4bfe837dbf04f37550..cad5d445b9c85da7f297ce4f20164bf1f0f146c3 100644
3--- a/.github/workflows/installer.yml
4+++ b/.github/workflows/installer.yml
5@@ -17,6 +17,7 @@ permissions:
6 jobs:
7 test:
8 name: Test installer
9+ if: github.repository == 'ohmyzsh/ohmyzsh'
10 runs-on: ${{ matrix.os }}
11 strategy:
12 matrix:
13@@ -48,7 +49,8 @@ jobs:
14 env:
15 VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
16 VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
17+ VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
18 run: |
19 cp tools/install.sh .github/workflows/installer/install.sh
20 cd .github/workflows/installer
21- vc deploy --prod -t ${{ secrets.VERCEL_TOKEN }}
22+ vc deploy --prod -t "$VERCEL_TOKEN"