Skip to content

Commit 3b39d95

Browse files
committed
release-tracker.yml: gate at job level with merged == true
Signed-off-by: Tamal Saha <tamal@appscode.com>
1 parent dd37156 commit 3b39d95

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

.github/workflows/release-tracker.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ concurrency:
1111

1212
jobs:
1313
build:
14+
if: github.event.pull_request.merged == true
1415
runs-on: ubuntu-24.04
1516
permissions:
1617
contents: write
@@ -19,9 +20,6 @@ jobs:
1920

2021
- name: Generate LGTM App token
2122
id: lgtm-app-token
22-
if: |
23-
github.event.action == 'closed' &&
24-
github.event.pull_request.merged == true
2523
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
2624
with:
2725
client-id: ${{ secrets.LGTM_APP_CLIENT_ID }}
@@ -30,9 +28,6 @@ jobs:
3028
repositories: CHANGELOG
3129

3230
- name: Update release tracker
33-
if: |
34-
github.event.action == 'closed' &&
35-
github.event.pull_request.merged == true
3631
env:
3732
GITHUB_USER: ${{ github.actor }}
3833
GITHUB_TOKEN: ${{ steps.lgtm-app-token.outputs.token }}

0 commit comments

Comments
 (0)