diff --git a/.gitea/workflows/update-dispatches.yaml b/.gitea/workflows/update-dispatches.yaml new file mode 100644 index 0000000..fae9086 --- /dev/null +++ b/.gitea/workflows/update-dispatches.yaml @@ -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 \ No newline at end of file