Skip to content

Commit c36388b

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

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
@@ -12,6 +12,7 @@ concurrency:
1212

1313
jobs:
1414
build:
15+
if: github.event.pull_request.merged == true
1516
runs-on: ubuntu-24.04
1617
permissions:
1718
contents: write
@@ -23,9 +24,6 @@ jobs:
2324

2425
- name: Generate LGTM App token
2526
id: lgtm-app-token
26-
if: |
27-
github.event.action == 'closed' &&
28-
github.event.pull_request.merged == true
2927
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
3028
with:
3129
client-id: ${{ secrets.LGTM_APP_CLIENT_ID }}
@@ -34,9 +32,6 @@ jobs:
3432
repositories: CHANGELOG
3533

3634
- name: Update release tracker
37-
if: |
38-
github.event.action == 'closed' &&
39-
github.event.pull_request.merged == true
4035
env:
4136
GITHUB_USER: ${{ github.actor }}
4237
GITHUB_TOKEN: ${{ steps.lgtm-app-token.outputs.token }}

0 commit comments

Comments
 (0)