File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -284,7 +284,7 @@ jobs:
284284 # The system on which we are running the actions
285285 runs-on : ubuntu-latest
286286 needs : clean_up_generation
287- if : success()
287+ if : success() && github.event_name == 'push' && startsWith(github.ref, 'refs/heads/main')
288288 steps :
289289 - name : Checkout code
290290 uses : actions/checkout@v5
@@ -531,17 +531,20 @@ jobs:
531531 git fetch origin main:main
532532 git checkout main
533533
534- # Create empty commit
535- git commit --allow-empty -m "Trigger HTML deployment from tag ${{ github.ref_name }}"
534+ echo "$(date)" > .github/last_triggered_by_tag
535+ git add .github/last_triggered_by_tag
536+ git commit -m "Trigger HTML deployment from tag ${{ github.ref_name }}"
536537
537538 # Push back to main
538539 git push origin main
539540
541+
542+
540543 clean_created_cache :
541544 name : Clear the cache generated during the build time
542545 permissions : write-all
543546 runs-on : ubuntu-latest
544- needs : [ export_other_formats_when_present, publish_html]
547+ needs : export_other_formats_when_present
545548 steps :
546549 - name : Checkout code
547550 uses : actions/checkout@v5
You can’t perform that action at this time.
0 commit comments