Files
Aurora.3/.github/workflows/update_changelog.yml
FluffyandGitHub b512bcdbf0 CI Work (#20419)
Updated runners to ubuntu 2024.04 LTS

Consolidated some node cache utilization in its own action

Updated merge conflict detector action version

PRs with merge conflicts now get the Review Required tag removed, and
PRs that had a conflict get a comment remembering the author to mark
them as ready to review if they are ready once the conflict is resolved
2025-02-15 23:25:52 +00:00

54 lines
1.8 KiB
YAML

name: "Build Changelog"
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
compile:
name: "Compile changelogs"
runs-on: ubuntu-24.04
steps:
- name: "Check for BOT_TOKEN_AURORA secret and pass true to output if it exists to be checked by later steps"
id: value_holder
env:
ENABLER_SECRET: ${{ secrets.BOT_TOKEN_AURORA }}
run: |
unset SECRET_EXISTS
if [ -n "$ENABLER_SECRET" ]; then SECRET_EXISTS=true ; fi
echo "ACTIONS_ENABLED=$SECRET_EXISTS" >> $GITHUB_OUTPUT
- name: "Setup python"
if: steps.value_holder.outputs.ACTIONS_ENABLED
uses: actions/setup-python@v1
with:
python-version: '3.x'
- name: "Install deps"
if: steps.value_holder.outputs.ACTIONS_ENABLED
run: |
python -m pip install --upgrade pip
python -m pip install pyyaml
sudo apt-get install dos2unix
- name: "Checkout"
if: steps.value_holder.outputs.ACTIONS_ENABLED
uses: actions/checkout@v4
with:
fetch-depth: 25
persist-credentials: false
- name: "Compile"
if: steps.value_holder.outputs.ACTIONS_ENABLED
run: |
tools/bootstrap/python tools/GenerateChangelog/ss13_genchangelog.py html/changelogs
- name: Commit
if: steps.value_holder.outputs.ACTIONS_ENABLED
run: |
git config --local user.email "action@github.com"
git config --local user.name "Changelogs"
git pull origin master
git add html/changelogs
git commit -m "Automatic changelog compile [ci skip]" -a || true
- name: "Push"
if: steps.value_holder.outputs.ACTIONS_ENABLED
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.BOT_TOKEN_AURORA || secrets.GITHUB_TOKEN }}