Skip to content

Bump terraform-linters/setup-tflint from 5.0.0 to 6.2.2 #1993

Bump terraform-linters/setup-tflint from 5.0.0 to 6.2.2

Bump terraform-linters/setup-tflint from 5.0.0 to 6.2.2 #1993

Workflow file for this run

name: Publish / Calculate Version
on: push
jobs:
build:
name: calculate version
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0 # This causes all history to be fetched, which is required for calculate-version to function
- name: Install Python 3.13
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
with:
python-version: 3.13
- name: Install poetry
run: pip install poetry
- name: Cache poetry packages
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
id: cache
with:
path: ~/.venv
key: ${{ runner.os }}-utils-venv-${{ hashFiles('**/poetry.lock') }}
- name: Install
run: poetry install
if: steps.cache.outputs.cache-hit != 'true'
- name: Set SPEC_VERSION env var
run: |
version="$(poetry run python scripts/calculate_version.py)"
echo "${version}"
echo ::set-env name=SPEC_VERSION::${version}
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
- name: Create release (master only)
id: create-release
if: github.ref == 'refs/heads/master'
uses: actions/create-release@0cb9c9b65d5d1901c1f53e5e66eaf4afd303e70e # v1.1.4
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.SPEC_VERSION }}
release_name: ${{ env.SPEC_VERSION }}