Skip to content

Commit

Permalink
test get moox-workflow json
Browse files Browse the repository at this point in the history
  • Loading branch information
Kim-the-Diamond committed Sep 5, 2024
1 parent 8afc29c commit ab31b88
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/monorepo-split-packages-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: "Load Config"

on:
push:
branches:
- feature/workflow


jobs:
load-config:
runs-on: ubuntu-latest
outputs:
core_version: ${{ steps.set-vars.outputs.core_version }}
packages: ${{ steps.set-vars.outputs.packages }}

steps:
- uses: actions/checkout@v4

# Read and parse moox.json
- id: set-vars
run: |
core_version=$(jq -r '.core_version' moox.json)
packages=$(jq -r '.packages | join(",")' moox.json)
echo "CORE_VERSION=${core_version}" >> $GITHUB_ENV
echo "PACKAGES=${packages}" >> $GITHUB_ENV
echo "::set-output name=core_version::$core_version"
echo "::set-output name=packages::$packages"

0 comments on commit ab31b88

Please sign in to comment.