Skip to content

Commit

Permalink
printcss.yml: Skip release if not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
rsp4jack authored Feb 19, 2024
1 parent 753e1fb commit c494908
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/printcss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,10 @@ jobs:
release:
runs-on: ubuntu-latest
needs: build-printcss
needs: build-printcss
if: (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/'))
|| (github.event_name == 'schedule')
|| (github.event_name == 'workflow_dispatch' || ithub.event.inputs.tag_name != '')
permissions:
contents: write
steps:
Expand Down Expand Up @@ -179,11 +182,10 @@ jobs:
git config user.name github-actions
git config user.email github-actions@github.com
git push origin :contiguous || true
sleep 2
- name: Rename release files
run: |
mv loser-homework-pdf.tar.zst loser-homework-pdf-${{ env.TAG_NAME }}.tar.zst
- name: Wait a sec
run: sleep 2
- name: Release
uses: softprops/action-gh-release@v1
if: github.event_name != 'pull_request' && env.TAG_NAME != ''
Expand Down

0 comments on commit c494908

Please sign in to comment.