forked from trustwallet/assets
-
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.
* makefile udpate * only run fix all for trustwallet org, fix-dryrun is executed for forks * update codeql workflow
- Loading branch information
Showing
4 changed files
with
36 additions
and
53 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
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 |
---|---|---|
@@ -1,42 +1,32 @@ | ||
name: Fixes | ||
# Runs on: | ||
# - on master branch of trustwallet repo: fix, checkin | ||
# - on other branch of trustwallet repo: fix, checkin | ||
# - on fork repos: fix-sanity only | ||
name: Fix All | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
- '*' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
fix-all: | ||
runs-on: ubuntu-latest | ||
|
||
if: github.repository_owner == 'trustwallet' && github.event.repository.fork == false | ||
|
||
steps: | ||
- name: Checkout (trustwallet repo, secret token) | ||
if: github.repository_owner == 'trustwallet' | ||
uses: actions/checkout@v3 | ||
with: | ||
# Use trust-ci fine-grained PAT to checkout and later commit the code | ||
# Do not use for forked repos | ||
token: ${{ secrets.CI_GITHUB_TOKEN }} | ||
ref: ${{ github.ref }} | ||
|
||
- name: Checkout (fork repo, default token) | ||
if: github.repository_owner != 'trustwallet' | ||
uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
ref: ${{ github.ref }} | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: 1.18 | ||
id: go | ||
|
||
- name: Run fix | ||
if: github.repository_owner == 'trustwallet' | ||
run: make fix | ||
|
||
- name: Show fix result (diff) | ||
|
@@ -53,4 +43,4 @@ jobs: | |
with: | ||
commit_user_name: trust-ci | ||
commit_user_email: "[email protected]" | ||
commit_message: Fixes (sanity and consistency, auto) | ||
commit_message: Auto fix all (sanity and consistency) |
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 |
---|---|---|
@@ -1,10 +1,8 @@ | ||
**/.DS_Store | ||
node_modules/ | ||
.idea | ||
.vscode/ | ||
*~ | ||
*.txt | ||
.env | ||
.env.test | ||
bin/ | ||
vendor/ |
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