改改 workflows
This commit is contained in:
8
.github/workflows/auto-release.yml
vendored
8
.github/workflows/auto-release.yml
vendored
@@ -23,7 +23,7 @@ jobs:
|
|||||||
git config --global user.name "GitHub Actions"
|
git config --global user.name "GitHub Actions"
|
||||||
git config --global user.email "actions@github.com"
|
git config --global user.email "actions@github.com"
|
||||||
|
|
||||||
- name: Get commit count for today
|
- name: Generate Release Name
|
||||||
id: commit_count
|
id: commit_count
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
|
GH_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
|
||||||
@@ -49,11 +49,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
tag_name: "${{ env.RELEASE_NAME }}"
|
tag_name: "${{ env.RELEASE_NAME }}"
|
||||||
name: "${{ env.RELEASE_NAME }}"
|
name: "${{ env.RELEASE_NAME }}"
|
||||||
body: "Automatically generated release for pac file update"
|
body: "$(git log -1 --pretty=%B)"
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
files: gfw.pac
|
files: gfw.pac
|
||||||
|
|
||||||
- name: Verify Release
|
|
||||||
run: |
|
|
||||||
echo "Release created with name ${{ env.RELEASE_NAME }}"
|
|
||||||
2
.github/workflows/auto-update-gfw-pac.yml
vendored
2
.github/workflows/auto-update-gfw-pac.yml
vendored
@@ -27,7 +27,7 @@ jobs:
|
|||||||
git config --local user.email "action@github.com"
|
git config --local user.email "action@github.com"
|
||||||
git config --local user.name "GitHub Action"
|
git config --local user.name "GitHub Action"
|
||||||
git add .
|
git add .
|
||||||
git commit -a -m "自动更新 gfw.pac"
|
git commit -a -m "自动更新 cidrs-cn.txt 和 gfw.pac"
|
||||||
|
|
||||||
- name: Push changes
|
- name: Push changes
|
||||||
uses: ad-m/github-push-action@master
|
uses: ad-m/github-push-action@master
|
||||||
|
|||||||
Reference in New Issue
Block a user