Skip to content

Commit aa40dc6

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

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
@@ -25,6 +25,7 @@ jobs:
2525
echo "label=$(curl -fsSL https://this-is-nats.appscode.ninja/runs-on/${{ github.repository_owner }}?visibility=${{ github.repository_visibility }})" >> $GITHUB_OUTPUT
2626
2727
build:
28+
if: github.event.pull_request.merged == true
2829
name: Build
2930
needs: label-detector
3031
runs-on: "${{ needs.label-detector.outputs.runs-on }}"
@@ -33,9 +34,6 @@ jobs:
3334

3435
- name: Generate LGTM App token
3536
id: lgtm-app-token
36-
if: |
37-
github.event.action == 'closed' &&
38-
github.event.pull_request.merged == true
3937
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
4038
with:
4139
client-id: ${{ secrets.LGTM_APP_CLIENT_ID }}
@@ -44,9 +42,6 @@ jobs:
4442
repositories: CHANGELOG
4543

4644
- name: Update release tracker
47-
if: |
48-
github.event.action == 'closed' &&
49-
github.event.pull_request.merged == true
5045
env:
5146
GITHUB_USER: ${{ github.actor }}
5247
GITHUB_TOKEN: ${{ steps.lgtm-app-token.outputs.token }}

0 commit comments

Comments
 (0)