diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index f8498356c..1c44ff59d 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -15,7 +15,7 @@ jobs: go: [ '1.16.x' ] steps: - name: Checkout - uses: actions/checkout@v2.3.4 + uses: actions/checkout@v2.3.5 - name: Unshallow run: git fetch --prune --unshallow @@ -38,13 +38,13 @@ jobs: uses: actions/setup-go@v2.1.4 with: go-version: ${{ matrix.go }} - + - name: Go fmt run: | cd "$(dirname $GITHUB_WORKSPACE)/src/github.com/smutel/terraform-provider-netbox" go fmt netbox/* shell: bash - + - name: Commit changes uses: EndBug/add-and-commit@v7.2.1 with: diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 0778ba0f0..4b63ae0e6 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -13,17 +13,17 @@ jobs: go: [ '1.16.x' ] steps: - name: Check conventional commits in PR - uses: Namchee/conventional-pr@master + uses: Namchee/conventional-pr@v0.6.0 with: access_token: ${{ secrets.github_token }} label: "no-conventional-commits" close: false template: "Thank you for your contribution attempt in this repository!\n\nUnfortunately, this pull request doesn't meet our standards by reason we stated below.\nFor future pull requests, please use conventional commits.\nPlease update the commits in this PR with conventional commits rules." - strict: false + strict: true link_issue: false - name: Checkout - uses: actions/checkout@v2.3.4 + uses: actions/checkout@v2.3.5 - name: Unshallow run: git fetch --prune --unshallow @@ -47,7 +47,7 @@ jobs: uses: actions/setup-go@v2.1.4 with: go-version: ${{ matrix.go }} - + - name: Build run: | cd "$(dirname $GITHUB_WORKSPACE)/src/github.com/smutel/terraform-provider-netbox" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4c685f69e..bf69fdc98 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,7 +15,7 @@ jobs: go: [ '1.16.x' ] steps: - name: Checkout - uses: actions/checkout@v2.3.4 + uses: actions/checkout@v2.3.5 - name: Unshallow run: git fetch --prune --unshallow @@ -27,7 +27,7 @@ jobs: - name: Import GPG key id: import_gpg - uses: crazy-max/ghaction-import-gpg@v4.0.0 + uses: crazy-max/ghaction-import-gpg@v4.1.0 with: gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} passphrase: ${{ secrets.PASSPHRASE }} @@ -40,7 +40,7 @@ jobs: run: ./utils/getChangelogRelease CHANGELOG.md ${{ steps.tag.outputs.tag }} > /tmp/RELEASE_CHANGELOG.md - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v2.4.1 + uses: goreleaser/goreleaser-action@v2.8.0 with: version: latest args: release --rm-dist --release-notes=/tmp/RELEASE_CHANGELOG.md