forked from trustwallet/assets
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (47 loc) · 1.23 KB
/
fix.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#Disabled, we have 'check' job, 'fix' job do invisible changes which is not convenient to debug
#name: Fix All
#
#on:
# push:
# branches:
# - '*'
# 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)
# 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: Set up Go
# uses: actions/setup-go@v4
# with:
# go-version: 1.18
#
# - name: Run fix
# run: make fix
#
# - name: Show fix result (diff)
# run: |
# git status
# git diff
#
# - name: Run check
# run: make check
#
# - name: Commit changes
# if: success()
# uses: stefanzweifel/[email protected]
# with:
# commit_user_name: trust-ci
# commit_user_email: "[email protected]"
# commit_message: Auto fix all (sanity and consistency)