Skip to content

Commit 67cf7a8

Browse files
author
rahul-infra
committed
Updated github workflows.
1 parent 6e4d3a5 commit 67cf7a8

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.github/workflows/terraform.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@ jobs:
2626
versionPreview:
2727
name: Version Preview
2828
if: ${{ github.event_name == 'pull_request' }}
29+
permissions:
30+
contents: read
31+
pull-requests: write
2932
uses: ./.github/workflows/version-preview.yaml
33+
secrets:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3035

3136
preCommitCheck:
3237
name: Terraform Checks

.github/workflows/version-preview.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,18 @@ name: 'Version Preview'
22

33
on:
44
workflow_call:
5+
secrets:
6+
GITHUB_TOKEN:
7+
required: true
58

69
defaults:
710
run:
811
shell: bash
912

13+
permissions:
14+
contents: read
15+
pull-requests: write
16+
1017
jobs:
1118
preview:
1219
name: Preview Release
@@ -23,6 +30,12 @@ jobs:
2330
with:
2431
semantic_version: 18.0.0
2532
dry_run: true
33+
branches: |
34+
[
35+
'main',
36+
'master',
37+
{name: '*', prerelease: true}
38+
]
2639
extra_plugins: |
2740
@semantic-release/changelog@6.0.0
2841
@semantic-release/git@10.0.0

0 commit comments

Comments
 (0)