Skip to content

Commit

Permalink
♻️ DRY common workflow env variables (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAfroOfDoom authored Aug 31, 2024
1 parent f531255 commit ca9e1b8
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 23 deletions.
6 changes: 6 additions & 0 deletions .github/variables/shared.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ASSETS_DIR=null
BLOCKBENCH_PATH=null
DATAPACK=null
MINECRAFT_PATH=null
RESOURCEPACK=null
WORLD_NAME=omega-flowey-remastered
10 changes: 3 additions & 7 deletions .github/workflows/datapack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,14 @@ env:
FABRIC_SERVER: https://meta.fabricmc.net/v2/versions/loader/1.21/0.15.11/1.0.1/server/jar
PACKTEST: https://cdn.modrinth.com/data/XsKUhp45/versions/sQSunYHv/packtest-1.8-beta3-mc1.21.jar

ASSETS_DIR: null
BLOCKBENCH_PATH: null
DATAPACK: null
MINECRAFT_PATH: null
RESOURCEPACK: null
WORLD_NAME: omega-flowey-remastered

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: tw3lveparsecs/[email protected]
with:
envFilePath: ./.github/variables/shared.env
- name: Install Yarn 3.6.3
run: corepack enable
- name: Setup cache
Expand Down
11 changes: 3 additions & 8 deletions .github/workflows/resourcepack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,14 @@ name: resourcepack

on: [push]

env:
ASSETS_DIR: null
BLOCKBENCH_PATH: null
DATAPACK: null
MINECRAFT_PATH: null
RESOURCEPACK: null
WORLD_NAME: omega-flowey-remastered

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: tw3lveparsecs/[email protected]
with:
envFilePath: ./.github/variables/shared.env
- name: Install Yarn 3.6.3
run: corepack enable
- name: Setup cache
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,14 @@ name: scripts

on: [push]

env:
ASSETS_DIR: null
BLOCKBENCH_PATH: null
DATAPACK: null
MINECRAFT_PATH: null
RESOURCEPACK: null
WORLD_NAME: omega-flowey-remastered

jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: tw3lveparsecs/[email protected]
with:
envFilePath: ./.github/variables/shared.env
- name: Install Yarn 3.6.3
run: corepack enable
- name: Setup cache
Expand All @@ -32,6 +27,9 @@ jobs:
needs: format
steps:
- uses: actions/checkout@v4
- uses: tw3lveparsecs/[email protected]
with:
envFilePath: ./.github/variables/shared.env
- name: Install Yarn 3.6.3
run: corepack enable
- name: Setup cache
Expand Down

0 comments on commit ca9e1b8

Please sign in to comment.