diff --git a/.github/workflows/add-review-labels.yml b/.github/workflows/add-review-labels.yml index 12f830e99ec5..cea99864d3de 100644 --- a/.github/workflows/add-review-labels.yml +++ b/.github/workflows/add-review-labels.yml @@ -4,7 +4,7 @@ jobs: reviewer: runs-on: ubuntu-latest steps: - - uses: actions/checkout@master + - uses: actions/checkout@main - uses: ./actions/add-review-labels with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 97328cf5f0ee..68b051ff4e21 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,7 +2,7 @@ name: CI on: pull_request: branches: - - master + - main jobs: dedupe: runs-on: ubuntu-latest diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index e49ae492210a..8f06015792a2 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -1,10 +1,10 @@ -name: "Code scanning - action" +name: 'Code scanning - action' on: push: - branches: [master] + branches: [main] pull_request: - branches: [master] + branches: [main] schedule: - cron: '0 12 * * 1' @@ -13,23 +13,23 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout repository - uses: actions/checkout@v2 - with: - # We must fetch at least the immediate parents so that if this is - # a pull request then we can checkout the head. - fetch-depth: 2 + - name: Checkout repository + uses: actions/checkout@v2 + with: + # We must fetch at least the immediate parents so that if this is + # a pull request then we can checkout the head. + fetch-depth: 2 - # If this run was triggered by a pull request event, then checkout - # the head of the pull request instead of the merge commit. - - run: git checkout HEAD^2 - if: ${{ github.event_name == 'pull_request' }} + # If this run was triggered by a pull request event, then checkout + # the head of the pull request instead of the merge commit. + - run: git checkout HEAD^2 + if: ${{ github.event_name == 'pull_request' }} - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v1 - with: - languages: javascript + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v1 + with: + languages: javascript - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v1 diff --git a/.github/workflows/deploy-react-storybook.yml b/.github/workflows/deploy-react-storybook.yml index b62e078207d0..2ee669511c0f 100644 --- a/.github/workflows/deploy-react-storybook.yml +++ b/.github/workflows/deploy-react-storybook.yml @@ -16,7 +16,7 @@ jobs: build: runs-on: macOS-latest steps: - - uses: actions/checkout@master + - uses: actions/checkout@main - name: Use Node.js 14.x uses: actions/setup-node@v2.1.5 with: diff --git a/.github/workflows/deploy-vanilla-devenv.yml b/.github/workflows/deploy-vanilla-devenv.yml index 75031e31fba2..b7478c5b9b14 100644 --- a/.github/workflows/deploy-vanilla-devenv.yml +++ b/.github/workflows/deploy-vanilla-devenv.yml @@ -15,7 +15,7 @@ jobs: build: runs-on: macOS-latest steps: - - uses: actions/checkout@master + - uses: actions/checkout@main - name: Use Node.js 14.x uses: actions/setup-node@v2.1.5 with: diff --git a/.github/workflows/issue-triage.yml b/.github/workflows/issue-triage.yml index 366e9fa93350..67fb5f3674a3 100644 --- a/.github/workflows/issue-triage.yml +++ b/.github/workflows/issue-triage.yml @@ -8,7 +8,7 @@ jobs: comment: runs-on: ubuntu-latest steps: - - uses: actions/checkout@master + - uses: actions/checkout@main - uses: ./actions/issues with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/nightly-release.yml b/.github/workflows/nightly-release.yml index ce00f5c0555d..21453eaedd2b 100644 --- a/.github/workflows/nightly-release.yml +++ b/.github/workflows/nightly-release.yml @@ -9,7 +9,7 @@ jobs: release: runs-on: macOS-latest steps: - - uses: actions/checkout@master + - uses: actions/checkout@main - name: Use Node.js 14.x uses: actions/setup-node@v2.1.5 with: diff --git a/.github/workflows/sync-generated-files.yml b/.github/workflows/sync-generated-files.yml index d8b909e58a59..05200166c7af 100644 --- a/.github/workflows/sync-generated-files.yml +++ b/.github/workflows/sync-generated-files.yml @@ -2,7 +2,7 @@ name: Sync generated files on: push: branches: - - master + - main jobs: release: runs-on: macOS-latest @@ -31,7 +31,7 @@ jobs: git config --global user.name "carbon-bot" git remote set-url origin "https://x-access-token:$GITHUB_TOKEN@github.com/carbon-design-system/carbon.git" - git checkout master + git checkout main git add -A git commit -m "chore(project): sync generated files" git push