Skip to content

Commit 7ddff34

Browse files
authored
Dummy pr 5 (#126)
* Update package.json * Revert "Update deploy-apps.yml" This reverts commit 97a4ad6. * print event name on deploy
1 parent 3243ba4 commit 7ddff34

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

.github/workflows/deploy-apps.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
name: Deploy Apps
22

33
on:
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:
@@ -15,18 +16,14 @@ on:
1516

1617
jobs:
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
@@ -43,6 +40,7 @@ jobs:
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:"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",

0 commit comments

Comments
 (0)