File tree Expand file tree Collapse file tree 2 files changed +9
-11
lines changed
Expand file tree Collapse file tree 2 files changed +9
-11
lines changed Original file line number Diff line number Diff line change 11name : Deploy Apps
22
33on :
4- workflow_run :
5- workflows : ["Test Apps"]
6- types :
7- - completed
8- branches : [main]
4+ push :
5+ branches : [ main ]
6+ paths :
7+ - ' */package.json'
8+ - ' */index.html'
9+ - ' */**'
910 pull_request :
1011 types : [opened, synchronize, reopened, closed]
1112 paths :
1516
1617jobs :
1718 build-and-deploy :
18- if : |
19- (github.event_name == 'pull_request' && github.event.action != 'closed') ||
20- (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success')
19+ if : github.event.action != 'closed'
2120 runs-on : ubuntu-latest
2221 permissions :
2322 contents : write
2423 pull-requests : write
2524
2625 steps :
2726 - uses : actions/checkout@v3
28- with :
29- ref : ${{ github.event.workflow_run.head_sha }}
3027
3128 - name : Set up Node.js
3229 uses : actions/setup-node@v3
4340
4441 - name : Build all apps
4542 run : |
43+ echo "Event name: ${{ github.event_name }}"
4644 if [[ "${{ github.event_name }}" == "pull_request" ]]; then
4745 npm run build pr-preview ${{ github.event.pull_request.number }}
4846 echo "PR Preview build output structure:"
Original file line number Diff line number Diff line change 11{
22 "name" : " hive" ,
3- "version" : " 1.0.3 " ,
3+ "version" : " 1.0.6 " ,
44 "description" : " Collection of Pollinations apps" ,
55 "scripts" : {
66 "test" : " node scripts/test-apps.js" ,
You can’t perform that action at this time.
0 commit comments