diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index d8c978e02e..be67b65816 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -13,7 +13,7 @@ on: jobs: commit: runs-on: ubuntu-latest - if: ${{ github.event_name == 'pull_request' || github.event_name == 'push' }} + if: github.event_name == 'pull_request' || github.event_name == 'push' steps: - uses: actions/setup-go@v3 with: @@ -31,13 +31,13 @@ jobs: with: files: coverage.out - - run: go run ./cmd/cpr -d -t ${{ secrets.GITHUB_TOKEN }} - - run: go run ./cmd/tir -d -t ${{ secrets.GITHUB_TOKEN }} - - run: go run ./cmd/ovm -d -t ${{ secrets.GITHUB_TOKEN }} + - run: go run ./cmd/cpr -d -t ${{ github.token }} + - run: go run ./cmd/tir -d -t ${{ github.token }} + - run: go run ./cmd/ovm -d -t ${{ github.token }} run: runs-on: ubuntu-latest - if: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }} + if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' steps: - uses: actions/setup-go@v3 with: @@ -50,16 +50,16 @@ jobs: restore-keys: ${{ runner.os }}-go- - run: go get -v -t -d ./... - - run: go run ./cmd/cpr -t ${{ secrets.GITHUB_TOKEN }} + - run: go run ./cmd/cpr -t ${{ github.token }} - if: ${{ github.event_name == 'workflow_dispatch' || github.event.schedule == '0 0 * * *' }} - run: go run ./cmd/tir -t ${{ secrets.GITHUB_TOKEN }} + run: go run ./cmd/tir -t ${{ github.token }} - if: ${{ github.event_name == 'workflow_dispatch' || github.event.schedule == '0 0 * * *' }} - run: go run ./cmd/ovm -t ${{ secrets.GITHUB_TOKEN }} + run: go run ./cmd/ovm -t ${{ github.token }} golangci: - if: ${{ github.event_name == 'pull_request' || github.event_name == 'push' }} + if: github.event_name == 'pull_request' || github.event_name == 'push' runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -67,7 +67,7 @@ jobs: staticcheck: - if: ${{ github.event_name == 'pull_request' || github.event_name == 'push' }} + if: github.event_name == 'pull_request' || github.event_name == 'push' runs-on: ubuntu-latest steps: - uses: actions/checkout@v3