Skip to content

Renovate Minor and Patch Updates #87

Renovate Minor and Patch Updates

Renovate Minor and Patch Updates #87

Workflow file for this run

name: Lint & Version
on:
pull_request:
branches:
- main
push:
branches:
- main
defaults:
run:
shell: bash
jobs:
lint:
name: Lint Terraform
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: tf_version
name: "Get terraform version"
uses: 'ministryofjustice/opg-github-actions/.github/actions/[email protected]'
with:
terraform_directory: "./"
- name: "Setup terraform [version: ${{ steps.tf_version.outputs.version }}]"
uses: hashicorp/setup-terraform@v3
with:
terraform_version: ${{ steps.tf_version.outputs.version }}
- name: terraform fmt
run: |
terraform fmt -check -recursive
versioning:
name: Bump Version
runs-on: ubuntu-latest
needs: lint
steps:
- name: "Generate semver tag and release"
id: semver_tag
uses: ministryofjustice/opg-github-actions/.github/actions/[email protected]
with:
prerelease: ${{ github.ref != 'refs/heads/main' }}
github_token: ${{ secrets.GITHUB_TOKEN }}