Files
vnr/.gitea/workflows/gendiff.yml
azw c14ce3e763
Some checks failed
sync / build (push) Failing after 3s
gendiff / gendiff (push) Failing after 9s
更新 .gitea/workflows/gendiff.yml
2025-02-10 17:11:13 +08:00

31 lines
795 B
YAML

name: gendiff
run-name:
on:
schedule:
- cron: '30 4 * * *'
issues:
types: [edited]
jobs:
gendiff:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Gen Diff
run: |
bash tools/diff.sh
git config user.name test
git config user.email test@github.com
git add .
git commit --allow-empty -m "$(date '+%Y-%m-%d %H:%M:%S')"
git diff main origin/main --name-only > diff
sed -i 's/src\/common\/on_actions\/00_navy_rework.txt//g' diff
zip -@ archive.zip < diff
- name: Upload
uses: https://gitea.com/actions/gitea-release-action@v1
with:
files: |-
archive.zip
api_key: '${{ secrets.GITHUB_TOKEN }}'
tag_name: 'Diff'