Skip to content

Commit

Permalink
Only run on PR or push to main branch
Browse files Browse the repository at this point in the history
Also fix some typos
  • Loading branch information
ditatompel committed Jun 7, 2024
1 parent 11e44bb commit 9011bb1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: Test Install Script
name: Test The script

on:
push:
branches:
- main
- test
pull_request:

jobs:
Expand All @@ -15,7 +14,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

- name: Run install Nginx
- name: install Nginx from official repository
run: |
chmod +x ./kickstart.sh
echo "y" | sudo ./kickstart.sh -I
Expand All @@ -26,6 +25,6 @@ jobs:
sudo cp -rT ./etc/nginx /etc/nginx && sudo /etc/nginx/cloudflare-ips.sh
sudo ./kickstart.sh -V
- name: Text nginx config
- name: Test nginx config
run: |
sudo nginx -t

0 comments on commit 9011bb1

Please sign in to comment.