forked from walters954/why-salesforce
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Alfredo
committed
Dec 17, 2024
1 parent
e5ba29a
commit a66541e
Showing
1 changed file
with
13 additions
and
13 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 |
---|---|---|
|
@@ -5,7 +5,7 @@ on: | |
types: | ||
- opened | ||
- edited | ||
branches: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
|
@@ -28,11 +28,11 @@ jobs: | |
|
||
- name: Switch branch | ||
run: | | ||
HEAD_REF="${{ github.head_ref }}" | ||
if [ "$HEAD_REF" != "" && "$HEAD_REF" != "main" ]; then | ||
git fetch origin $HEAD_REF | ||
git switch $HEAD_REF | ||
fi | ||
HEAD_REF="${{ github.head_ref }}" | ||
if [ "$HEAD_REF" != "" && "$HEAD_REF" != "main" ]; then | ||
git fetch origin $HEAD_REF | ||
git switch $HEAD_REF | ||
fi | ||
- name: Run linter | ||
run: deno task lint | ||
|
@@ -42,10 +42,10 @@ jobs: | |
|
||
- name: Upload changes to base branch | ||
run: | | ||
HEAD_REF="${{ github.head_ref }}" | ||
if [ "$HEAD_REF" != "" && "$HEAD_REF" != "main" ]; then | ||
git config user.name "github-actions" | ||
git config user.email "[email protected]" | ||
git commit -am "deno formatting" | ||
git push | ||
fi | ||
HEAD_REF="${{ github.head_ref }}" | ||
if [ "$HEAD_REF" != "main" ]; then | ||
git config user.name "github-actions" | ||
git config user.email "[email protected]" | ||
git commit -am "deno formatting" | ||
git push | ||
fi |