Skip to content

Commit 9efe3d2

Browse files
rffontenellem-aciek
authored andcommitted
Add pull_request CI event trigger
1 parent f0790d4 commit 9efe3d2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/update.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push:
55
branches:
66
- 'main'
7+
pull_request:
8+
branches:
9+
- 'main'
710
workflow_dispatch:
811
jobs:
912
update:
@@ -17,7 +20,14 @@ jobs:
1720
- run: uv run generate.py # generates "index.html"
1821
- run: mkdir -p build && cp index.html style.css build
1922
- name: Deploy 🚀
23+
if: github.event_name != 'pull_request'
2024
uses: JamesIves/github-pages-deploy-action@v4
2125
with:
2226
folder: build
2327
clean: true
28+
- name: Debug index.html if pull request
29+
if: github.event_name == 'pull_request'
30+
run: |
31+
curl -Lo index.html-public https://github.com/m-aciek/pydocs-translation-dashboard/raw/refs/heads/gh-pages/index.html
32+
diff --color=always -u index.html-public index.html || :
33+
cat index.html

0 commit comments

Comments
 (0)