-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: added s2 foundations workflow action support
- Loading branch information
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
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
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 |
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
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 |