Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
fix release branch not updating
  • Loading branch information
Chocolate4U committed Nov 4, 2023
1 parent 43dffb9 commit 366d59a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ on:
PRE_RELEASE:
description: "Set as pre-release"
required: false
default: "false"
type: boolean
default: false
schedule:
- cron: "15 1 * * *"

Expand Down Expand Up @@ -72,7 +73,7 @@ jobs:
echo "* Based on [Iran-v2ray-rules](https://github.com/Chocolate4U/Iran-v2ray-rules)" >> RELEASE_NOTES
- name: Push assets to release branch
if: ${{ inputs.PRE_RELEASE == 'false' }}
if: ${{ !inputs.PRE_RELEASE }}
run: |
cd release || exit 1
git init
Expand All @@ -85,7 +86,7 @@ jobs:
git push -f origin release
- name: Purge jsDelivr CDN cache
if: ${{ inputs.PRE_RELEASE == 'false' }}
if: ${{ !inputs.PRE_RELEASE }}
run: |
cd release || exit 1
for file in $(ls); do
Expand All @@ -105,7 +106,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Clean older releases
if: ${{ inputs.PRE_RELEASE == 'false' }}
if: ${{ !inputs.PRE_RELEASE }}
uses: dev-drprasad/delete-older-releases@v0.3.2
with:
keep_latest: 7
Expand Down

0 comments on commit 366d59a

Please sign in to comment.