Skip to content

Commit

Permalink
Merge branch 'master' into sec-mask
Browse files Browse the repository at this point in the history
  • Loading branch information
Glamyrio authored Dec 25, 2024
2 parents 69b93f0 + ee660cd commit 081014a
Show file tree
Hide file tree
Showing 360 changed files with 34,686 additions and 36,756 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/check_changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,34 @@ on:
jobs:
CheckCL:
runs-on: ubuntu-latest
if: github.repository == 'ss220club/Paradise-SS220' && github.base_ref == 'master' && github.event.pull_request.draft == false
if: github.base_ref == 'master' && github.event.pull_request.draft == false

steps:
- id: create_token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}

- run: echo "GH_TOKEN=${{ steps.create_token.outputs.token }}" >> "$GITHUB_ENV"

- name: Downloading scripts
run: |
wget https://raw.githubusercontent.com/ss220club/Paradise-SS220/master/tools/changelog/check_changelog.py
wget https://raw.githubusercontent.com/ss220club/Paradise-SS220/master/tools/changelog/tags.yml
wget https://raw.githubusercontent.com/${{ github.repository }}/${{ github.base_ref }}/tools/changelog/changelog_utils.py
wget https://raw.githubusercontent.com/${{ github.repository }}/${{ github.base_ref }}/tools/changelog/check_changelog.py
wget https://raw.githubusercontent.com/${{ github.repository }}/${{ github.base_ref }}/tools/changelog/tags.yml
- name: Installing Python
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1
with:
python-version: '3.x'

- name: Installing deps
run: |
python -m pip install --upgrade pip
pip install ruamel.yaml PyGithub
- name: Changelog validation
env:
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
GITHUB_TOKEN: ${{ env.GH_TOKEN }}
run: python check_changelog.py
30 changes: 30 additions & 0 deletions .github/workflows/master_ancestor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Check Master Merged

on:
pull_request:
branches:
- master

jobs:
check-master-merged:
runs-on: ubuntu-latest
if: github.head_ref == 'merge-upstream'

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.base_ref }}

- name: Fetch head branch
run: git fetch origin ${{ github.head_ref }}

- name: Check if master is merged
run: |
git checkout ${{ github.head_ref }}
if git merge-base --is-ancestor origin/${{ github.base_ref }} HEAD; then
exit 0
else
echo "Base branch is NOT merged into the head branch. Merge base branch to keep CI checks relevant."
exit 1
fi
50 changes: 50 additions & 0 deletions .github/workflows/merge_upstream.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Merge Upstream

on:
workflow_dispatch:

jobs:
merge-upstream:
runs-on: ubuntu-latest

steps:
- id: create_token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}

- run: echo "GH_TOKEN=${{ steps.create_token.outputs.token }}" >> "$GITHUB_ENV"

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.x

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install PyGithub openai
- name: Download the script
run: |
wget https://raw.githubusercontent.com/${{ github.repository }}/${{ github.ref_name }}/tools/changelog/changelog_utils.py
wget https://raw.githubusercontent.com/${{ github.repository }}/${{ github.ref_name }}/tools/merge-upstream/merge_upstream.py
wget https://raw.githubusercontent.com/${{ github.repository }}/${{ github.ref_name }}/tools/merge-upstream/translation_context.txt
- name: Run the script
env:
GITHUB_TOKEN: ${{ env.GH_TOKEN }}
TARGET_REPO: 'ss220club/Paradise-SS220'
TARGET_BRANCH: 'master'
UPSTREAM_REPO: 'ParadiseSS13/Paradise'
UPSTREAM_BRANCH: 'master'
MERGE_BRANCH: 'merge-upstream'
CHANGELOG_AUTHOR: 'ParadiseSS13'
TRANSLATE_CHANGES: 'true'
OPENAI_API_KEY: ${{ secrets.ORG_EMPTY_TOKEN }}
LOG_LEVEL: ${{ runner.debug && 'DEBUG' || 'INFO' }}
run: |
git config --global user.email "action@github.com"
git config --global user.name "Upstream Sync"
python3 -u merge_upstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -1030,11 +1030,11 @@
/area/ruin/unpowered/althland_processing)
"Jw" = (
/obj/structure/table,
/obj/item/reagent_containers/drinks/cans/beer{
/obj/item/reagent_containers/drinks/bottle/beer{
pixel_x = 8;
pixel_y = 10
},
/obj/item/reagent_containers/drinks/cans/beer,
/obj/item/reagent_containers/drinks/bottle/beer,
/obj/effect/decal/cleanable/dirt,
/turf/simulated/floor/plasteel/lavaland_air,
/area/ruin/unpowered/althland_processing)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
/area/ruin/powered/pizza_party)
"k" = (
/obj/structure/table/wood,
/obj/effect/spawner/lootdrop/pizzaparty,
/obj/effect/spawner/random/pizzaparty,
/obj/effect/decal/cleanable/dirt,
/turf/simulated/floor/wood/lavaland_air,
/area/ruin/powered/pizza_party)
Expand All @@ -48,7 +48,7 @@
dir = 4
},
/obj/structure/table/wood,
/obj/effect/spawner/lootdrop/pizzaparty,
/obj/effect/spawner/random/pizzaparty,
/obj/effect/decal/cleanable/dirt,
/obj/effect/decal/cleanable/cobweb2,
/turf/simulated/floor/wood/lavaland_air,
Expand Down Expand Up @@ -111,7 +111,7 @@
/area/ruin/powered/pizza_party)
"x" = (
/obj/structure/table/wood,
/obj/effect/spawner/lootdrop/pizzaparty,
/obj/effect/spawner/random/pizzaparty,
/turf/simulated/floor/wood/lavaland_air,
/area/ruin/powered/pizza_party)
"y" = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
/area/ruin/powered/seedvault)
"ed" = (
/obj/structure/closet/crate/freezer,
/obj/effect/spawner/lootdrop/seed_vault,
/obj/effect/spawner/random/seed_vault,
/turf/simulated/floor/plasteel/freezer,
/area/ruin/powered/seedvault)
"eI" = (
Expand Down
38 changes: 1 addition & 37 deletions _maps/map_files/RandomRuins/SpaceRuins/abandoned_engi_sat.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -796,9 +796,7 @@
pixel_x = -3;
pixel_y = 6
},
/obj/machinery/newscaster{
pixel_y = 32
},
/obj/machinery/newscaster/directional/north,
/turf/simulated/floor/plasteel{
dir = 1;
icon_state = "blue"
Expand Down Expand Up @@ -2480,37 +2478,3 @@ LP
LP
LP
"}
(32,1,1) = {"
LP
LP
LP
LP
LP
LP
LP
LP
LP
LP
LP
LP
LP
LP
LP
LP
LP
LP
LP
LP
LP
LP
LP
LP
LP
LP
LP
LP
LP
LP
LP
LP
"}
Loading

0 comments on commit 081014a

Please sign in to comment.