make dispatch read this file instead trying to call
Some checks failed
Update Dispatches / refresh-news (push) Has been cancelled
Some checks failed
Update Dispatches / refresh-news (push) Has been cancelled
This commit is contained in:
20
.gitea/workflows/update-dispatches.yaml
Normal file
20
.gitea/workflows/update-dispatches.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
name: Update Dispatches
|
||||
on: [push]
|
||||
jobs:
|
||||
refresh-news:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- awk: 'BEGIN {print "Generating News..."}'
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Generate dispatches.txt
|
||||
run: |
|
||||
git log -3 --pretty=format:"Published: %ad | %s (%an)" --date=format:"%m-%d-%Y" > dispatches.txt
|
||||
- name: Commit changes
|
||||
run: |
|
||||
git config --local user.email "action@dynastyrevolution.com"
|
||||
git config --local user.name "Dynasty Bot"
|
||||
git add dispatches.txt
|
||||
git commit -m "chore: Update Archive Dispatches [skip ci]" || echo "No changes"
|
||||
git push
|
||||
Reference in New Issue
Block a user