Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Commit

Permalink
update action version & fix badge
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongfly authored Nov 4, 2022
1 parent 8504e11 commit ae73994
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/Backup_Nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Dependencies
run: |
pip3 install beautifulsoup4 lxml requests
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
artifacts: "clash*"
commit: version
name: "${{ env.tag_name }}"
body: "**Downloads**: ![downloads](https://badgen.net/github/assets-dl/${{github.repository}}/${{ env.short_time }}?cache=300)"
body: "**Downloads**: ![downloads](https://badgen.net/github/assets-dl/${{github.repository}}/${{ env.tag_name }}?cache=300)"
tag: "${{ env.tag_name }}"
allowUpdates: true
prerelease: false
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/Backup_Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: 'Get Release title'
id: get_name
uses: actions/github-script@v5
uses: actions/github-script@v6
with:
script: |
const res = await github.rest.repos.getReleaseByTag({
Expand All @@ -24,11 +24,10 @@ jobs:
core.setOutput('name', String(res.data.name))
core.setOutput('tag_name', String(res.data.name).replace(' ','-'))
- name: download
uses: robinraju/release-downloader@v1.3
uses: robinraju/release-downloader@v1.6
with:
repository: "Dreamacro/clash"
tag: "premium"
fileName: "*"
tarBall: false
zipBall: false
out-file-path: "release"
Expand All @@ -52,7 +51,7 @@ jobs:
artifacts: "release/*"
commit: version
name: "${{ steps.get_name.outputs.name }}"
body: "**Downloads**: ![downloads](https://badgen.net/github/assets-dl/${{github.repository}}/${{ env.short_time }}?cache=300)"
body: "**Downloads**: ![downloads](https://badgen.net/github/assets-dl/${{github.repository}}/${{ steps.get_name.outputs.name }}?cache=300)"
tag: "${{ steps.get_name.outputs.tag_name }}"
allowUpdates: true
removeArtifacts: true
Expand Down

0 comments on commit ae73994

Please # to comment.