forked from BlueMoon-Labs/MOLOT-BlueMoon-Station
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
62 additions
and
274 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 |
---|---|---|
|
@@ -11,43 +11,44 @@ jobs: | |
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 "::set-output name=ACTIONS_ENABLED::$SECRET_EXISTS" | ||
- name: "Setup python" | ||
if: steps.value_holder.outputs.CL_ENABLED | ||
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.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@v1 | ||
with: | ||
fetch-depth: 25 | ||
- name: "Compile" | ||
if: steps.value_holder.outputs.CL_ENABLED | ||
if: steps.value_holder.outputs.ACTIONS_ENABLED | ||
run: | | ||
python tools/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 "Sandstorm Bot" | ||
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.CL_ENABLED | ||
if: steps.value_holder.outputs.ACTIONS_ENABLED | ||
uses: ad-m/github-push-action@master | ||
with: | ||
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.