Skip to content

refactor: Delete unused scripts #555

refactor: Delete unused scripts

refactor: Delete unused scripts #555

Workflow file for this run

name: Go mod tidy
on:
pull_request:
branches: [develop]
jobs:
build:
name: run go mod tidy
runs-on: ubuntu-latest
# don't run on PRs from forks (it will fail because secrets won't be available), run only on renovate bot PRs
if: github.actor == 'renovate[bot]'
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v4
with:
go-version: "1.20"
id: go
- name: Generate token # generate a token to trigger the rest of the CI tasks... https://github.com/tibdex/github-app-token
id: generate_token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.IOTA_GH_APP_ID }}
private_key: ${{ secrets.IOTA_GH_APP_PRIVATE_KEY }}
- name: Check out code into the Go module directory
uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
token: ${{ steps.generate_token.outputs.token }}
- name: Run go mod tidy script
run: ./scripts/go_mod_tidy.sh
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
author_name: GitHub Actions
committer_email: [email protected]
message: "go mod tidy"
add: "."