change dir name #9
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
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) |