Merge pull request #1 from ITV/alekc #2
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: Release | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
- master | |
paths: | |
- '**/*.tpl' | |
- '**/*.py' | |
- '**/*.tf' | |
- '.github/workflows/release.yml' | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
# Skip running release workflow on forks | |
if: github.repository_owner == 'terraform-aws-modules' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
fetch-depth: 0 | |
- name: Release | |
uses: cycjimmy/semantic-release-action@v3 | |
with: | |
semantic_version: 18.0.0 | |
extra_plugins: | | |
@semantic-release/[email protected] | |
@semantic-release/[email protected] | |
[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }} |