Skip to content

Commit 5ba51f4

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

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
name: Build
1516
runs-on: ubuntu-24.04
1617
permissions:
@@ -20,9 +21,6 @@ jobs:
2021

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

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

0 commit comments

Comments
 (0)