feat(xdesign-story): foundation Color System 세팅 #60
Workflow file for this run
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
name: Pull Request Service | |
on: | |
pull_request: | |
paths: | |
- "services/**" | |
jobs: | |
get-diff-workspace: | |
runs-on: ubuntu-latest | |
outputs: | |
matrix: ${{ steps.set-matrix.outputs.matrix }} | |
steps: | |
- name: Check Out The Repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: '2' | |
token: ${{ secrets.GHP_TOKEN }} | |
- name: diff-workspace | |
id: set-matrix | |
run: echo "::set-output name=matrix::{\"workspaces\":[$(yarn changed list --git-range $(git rev-parse HEAD^) --json --exclude xquare-frontend --exclude @shared/xbridge | tr "\n" ",")]}" | |
build: | |
runs-on: ubuntu-latest | |
needs: get-diff-workspace | |
strategy: | |
matrix: ${{ fromJson(needs.get-diff-workspace.outputs.matrix) }} | |
steps: | |
- name: Check Out The Repository | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.GHP_TOKEN }} | |
- name: Get Service | |
id: get_service | |
run: echo ::set-output name=SERVICE::$(echo ${{ matrix.workspaces.name }} | cut -d / -f 2) | |
- name: Docker Build | |
run: yarn docker build @service/${{steps.get_service.outputs.SERVICE}} |