Skip to content

Commit

Permalink
chore(actions): add gh-actions for cwc-v2 branch (#9810)
Browse files Browse the repository at this point in the history
### Description

Adds GH workflows for `carbon-web-components@v2` feature branch.

### Changelog

**New**

- {{new thing}}

**Changed**

- {{changed thing}}

**Removed**

- {{removed thing}}

<!-- React and Web Component deploy previews are enabled by default. -->
<!-- To enable additional available deploy previews, apply the following -->
<!-- labels for the corresponding package: -->
<!-- *** "test: e2e": Codesandbox examples and e2e integration tests -->
<!-- *** "package: services": Services -->
<!-- *** "package: utilities": Utilities -->
<!-- *** "RTL": React / Web Components (RTL) -->
<!-- *** "feature flag": React / Web Components (experimental) -->
  • Loading branch information
kennylam authored Dec 7, 2022
1 parent 1e7d0bf commit 1255443
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 6 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/automerge-cwc-v2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: automerge-cwc-v2
on:
push:
branches:
- 'main'

concurrency:
group: automerge-cwc-v2-${{ github.ref }}
cancel-in-progress: true

jobs:
automerge-mastheadv2:
if: github.repository == 'carbon-design-system/carbon-for-ibm-dotcom'
runs-on: ubuntu-20.04
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
steps:
- uses: actions/checkout@v2
- name: Merge to feat/cwc-v2
uses: devmasx/[email protected]
with:
type: now
target_branch: 'feat/cwc-v2'
env:
GITHUB_TOKEN: ${{secrets.MERGE_ACTION}}
- uses: act10ns/slack@v1
with:
status: ${{ job.status }}
if: failure()
4 changes: 2 additions & 2 deletions .github/workflows/ci-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: ci-check

on:
push:
branches: [ main, release/* ]
branches: [ main, release/*, feat/cwc-v2 ]
pull_request:
branches: [ main, release/* ]
branches: [ main, release/*, feat/cwc-v2 ]

concurrency:
group: ci-check-${{ github.ref }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ name: "CodeQL"

on:
push:
branches: [ main, release/* ]
branches: [ main, release/*, feat/cwc-v2 ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: e2e-tests

on:
push:
branches: [ main, release/* ]
branches: [ main, release/*, feat/cwc-v2 ]
pull_request:
branches: [ main, release/* ]
branches: [ main, release/*, feat/cwc-v2 ]

concurrency:
group: e2e-tests-${{ github.ref }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/percy-update-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: percy-update-base

on:
push:
branches: [ main, release/* ]
branches: [ main, release/*, feat/cwc-v2 ]

concurrency:
group: percy-update-base-${{ github.ref }}
Expand Down

0 comments on commit 1255443

Please sign in to comment.