Skip to content

Commit

Permalink
upload: update tag WorkInProgress to latest commit
Browse files Browse the repository at this point in the history
  • Loading branch information
entorb committed Feb 9, 2025
1 parent 1050eb8 commit dd6142a
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/check-and-ebook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ jobs:
- name: Compare to previous hpmor.html
run: |
diff -U 0 -s hpmor-prev.html hpmor.html > hpmor-html-diff.log || :
diff -U 0 -s hpmor-prev.html hpmor.html > hpmor-html-diff.log || true
- name: ls after
run: |
Expand All @@ -155,12 +155,27 @@ jobs:
#
upload:
needs: make
# only for push or workflow_dispatch into main branch
if: (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/main'
# only for main branch and actions push or manual run
if: github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch')

permissions:
contents: write

runs-on: ubuntu-24.04

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Get tags
run: git fetch --tags origin

- name: Update tag WorkInProgress
run: |
git tag -d WorkInProgress || true
git tag WorkInProgress
git push origin -f WorkInProgress
- name: Download eBooks artifact
uses: actions/download-artifact@v4
with:
Expand Down

0 comments on commit dd6142a

Please sign in to comment.