Skip to content

Commit 3682838

Browse files
omarcopiresErza
authored andcommitted
fix: default branch on clang-lang formatter
1 parent 9cc8ed0 commit 3682838

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/clang-format.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,28 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Cancel Previous Runs
16-
if: github.ref != 'refs/heads/main'
16+
if: github.ref != 'refs/heads/master'
1717
uses: fkirc/skip-duplicate-actions@master
1818
with:
1919
concurrent_skipping: "same_content"
2020
cancel_others: true
2121

2222
- name: Set up Git
23-
if: ${{ github.ref != 'refs/heads/main' }}
23+
if: ${{ github.ref != 'refs/heads/master' }}
2424
run: |
2525
git config --global user.email "github-actions[bot]@users.noreply.github.com"
2626
git config --global user.name "GitHub Actions"
2727
2828
- name: Actions checkout
29-
if: ${{ github.ref != 'refs/heads/main' }}
29+
if: ${{ github.ref != 'refs/heads/master' }}
3030
uses: actions/checkout@v3
3131
with:
3232
repository: ${{ github.event.pull_request.head.repo.full_name }}
3333
ref: ${{ github.event.pull_request.head.ref }}
3434
token: ${{ secrets.GITHUB_TOKEN }}
3535

3636
- name: Run clang format lint
37-
if: ${{ github.ref != 'refs/heads/main' }}
37+
if: ${{ github.ref != 'refs/heads/master' }}
3838
uses: DoozyX/[email protected]
3939
with:
4040
source: "source"
@@ -43,7 +43,7 @@ jobs:
4343
inplace: true
4444

4545
- name: Run add and commit
46-
if: ${{ github.ref != 'refs/heads/main' }}
46+
if: ${{ github.ref != 'refs/heads/master' }}
4747
uses: EndBug/add-and-commit@v9
4848
with:
4949
author_name: GitHub Actions

0 commit comments

Comments
 (0)