-
Notifications
You must be signed in to change notification settings - Fork 566
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'cmss13-devs/master' into !MPS_REWORK
- Loading branch information
Showing
719 changed files
with
178,968 additions
and
8,172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Creates an entry in html/changelogs automatically, to eventually be compiled by compile_changelogs | ||
name: Auto Changelog | ||
on: | ||
pull_request_target: | ||
types: | ||
- closed | ||
branches: | ||
- master | ||
permissions: | ||
contents: write | ||
jobs: | ||
auto_changelog: | ||
runs-on: ubuntu-latest | ||
if: github.event.pull_request.merged == true | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Run auto changelog | ||
uses: actions/github-script@v6 | ||
with: | ||
script: | | ||
const { processAutoChangelog } = await import('${{ github.workspace }}/tools/pull_request_hooks/autoChangelog.js') | ||
await processAutoChangelog({ github, context }) | ||
github-token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,53 +3,52 @@ name: Compile changelogs | |
on: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
compile: | ||
name: "Compile changelogs" | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: "Check for CHANGELOG_ENABLER secret and pass true to output if it exists to be checked by later steps" | ||
- name: "Check for ACTION_ENABLER secret and pass true to output if it exists to be checked by later steps" | ||
id: value_holder | ||
env: | ||
CHANGELOG_ENABLER: ${{ secrets.CHANGELOG_ENABLER }} | ||
ENABLER_SECRET: ${{ secrets.ACTION_ENABLER }} | ||
run: | | ||
unset SECRET_EXISTS | ||
if [ -n $CHANGELOG_ENABLER ]; then SECRET_EXISTS='true' ; fi | ||
echo ::set-output name=CL_ENABLED::${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.CL_ENABLED | ||
if: steps.value_holder.outputs.ACTIONS_ENABLED | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.x' | ||
- name: "Install deps" | ||
if: steps.value_holder.outputs.CL_ENABLED | ||
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.CL_ENABLED | ||
if: steps.value_holder.outputs.ACTIONS_ENABLED | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 25 | ||
persist-credentials: false | ||
- name: "Compile" | ||
if: steps.value_holder.outputs.CL_ENABLED | ||
if: steps.value_holder.outputs.ACTIONS_ENABLED | ||
run: | | ||
python tools/ss13_genchangelog.py html/changelog.html html/changelogs | ||
- name: "Convert Lineendings" | ||
if: steps.value_holder.outputs.CL_ENABLED | ||
run: | | ||
unix2dos html/changelogs/.all_changelog.yml | ||
python .github/ss13_genchangelog.py html/changelogs | ||
- name: Commit | ||
if: steps.value_holder.outputs.CL_ENABLED | ||
if: steps.value_holder.outputs.ACTIONS_ENABLED | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "Changelogs" | ||
git pull origin dev | ||
git pull origin master | ||
git add html/changelogs/archive | ||
git commit -m "Automatic changelog compile [ci skip]" -a || true | ||
- name: "Push" | ||
if: steps.value_holder.outputs.CL_ENABLED | ||
uses: ad-m/github-push-action@dev | ||
if: steps.value_holder.outputs.ACTIONS_ENABLED | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.