Skip to content

Commit

Permalink
chore: added s2 foundations workflow action support
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjhicks authored and GarthDB committed Jun 25, 2024
1 parent bbb55c4 commit 04145bb
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/sync-foundations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: SYNC FOUNDATIONS

on:
workflow_dispatch

jobs:
check_should_run:
uses: ./.github/workflows/_diff-should-run.yml
secrets: inherit
diff_do:
needs: [check_should_run]
if: ${{ needs.check_should_run.outputs.condition == 'true' && (github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch')}}
uses: ./.github/workflows/_diff-trigger-sync.yml
with:
source: foundations # the tokens-studio data we want to compare (folder prefix in the repo)
branch: snapshot-s2-foundations # the spectrum-tokens data we want to compare (branch of the repo)
secrets: inherit
23 changes: 23 additions & 0 deletions .github/workflows/test-foundations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: TEST FOUNDATIONS

on:
workflow_dispatch:
pull_request:
types: [opened, reopened, synchronize]
branches:
- main # only run on PRs targetting main
paths:
- 'src/tokens-studio/foundations/**' # only run when files in these paths change

jobs:
check_should_run:
uses: ./.github/workflows/_diff-should-run.yml
secrets: inherit
diff_test:
needs: [check_should_run]
if: ${{ needs.check_should_run.outputs.condition == 'true' }}
uses: ./.github/workflows/_diff-trigger-test.yml
with:
source: foundations # the tokens-studio data we want to compare (folder prefix in the repo)
branch: snapshot-s2-foundations # the spectrum-tokens data we want to compare (branch of the repo)
secrets: inherit

0 comments on commit 04145bb

Please sign in to comment.