Terraform Testing Release #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Terraform Testing Release | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: 'Version' | |
required: true | |
type: string | |
permissions: | |
contents: write | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Validate | |
run: | | |
if ! [[ "${{ inputs.version }}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then | |
exit 1 | |
fi | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Bump Terraform Testing version | |
run: git tag ${{ inputs.version }} | |
- name: Push | |
run: git push origin --tags | |
- name: Create Go Sync Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ inputs.version }} | |
release_name: ${{inputs.version}} | |
draft: false | |
prerelease: false |