Skip to content

Commit ab1c430

Browse files
author
rahul-infra
committed
fix: pass PR number as input to version-preview workflow
1 parent 362b337 commit ab1c430

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/terraform.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030
contents: read
3131
pull-requests: write
3232
uses: ./.github/workflows/version-preview.yaml
33+
with:
34+
pr_number: ${{ github.event.pull_request.number }}
3335

3436
preCommitCheck:
3537
name: Terraform Checks

.github/workflows/version-preview.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: 'Version Preview'
22

33
on:
44
workflow_call:
5+
inputs:
6+
pr_number:
7+
required: true
8+
type: number
59

610
defaults:
711
run:
@@ -20,7 +24,7 @@ jobs:
2024
uses: actions/checkout@v4
2125
with:
2226
fetch-depth: 0
23-
ref: refs/pull/${{ github.event.pull_request.number }}/merge
27+
ref: refs/pull/${{ inputs.pr_number }}/merge
2428

2529
- name: Configure for preview
2630
run: |

0 commit comments

Comments
 (0)