Skip to content

Commit 9296f90

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

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
@@ -6,6 +6,7 @@ on:
66

77
jobs:
88
build:
9+
if: github.event.pull_request.merged == true
910
runs-on: ubuntu-24.04
1011
permissions:
1112
contents: write
@@ -15,9 +16,6 @@ jobs:
1516

1617
- name: Generate LGTM App token
1718
id: lgtm-app-token
18-
if: |
19-
github.event.action == 'closed' &&
20-
github.event.pull_request.merged == true
2119
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
2220
with:
2321
client-id: ${{ secrets.LGTM_APP_CLIENT_ID }}
@@ -26,9 +24,6 @@ jobs:
2624
repositories: CHANGELOG
2725

2826
- name: Update release tracker
29-
if: |
30-
github.event.action == 'closed' &&
31-
github.event.pull_request.merged == true
3227
env:
3328
GITHUB_USER: ${{ github.actor }}
3429
GITHUB_TOKEN: ${{ steps.lgtm-app-token.outputs.token }}

0 commit comments

Comments
 (0)