Skip to content

Commit 6bc861c

Browse files
authored
ci(workflows): avoid github.actor in conditions (#28174)
1 parent 908f49e commit 6bc861c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
sync-labels: true
1818

1919
label-by-size:
20-
if: github.actor != 'dependabot[bot]' && !startsWith(github.event.pull_request.title, 'Release v')
20+
if: github.secret_source == 'Actions' && !startsWith(github.event.pull_request.title, 'Release v')
2121
needs: label-py-path
2222
runs-on: ubuntu-latest
2323
steps:

.github/workflows/release-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ concurrency:
1919

2020
jobs:
2121
manage-release-pr:
22-
if: github.repository == 'mdn/browser-compat-data' && github.actor != 'dependabot[bot]' && !startsWith(github.event.head_commit.message, 'Release v')
22+
if: github.repository == 'mdn/browser-compat-data' && github.secret_source == 'Actions' && !startsWith(github.event.head_commit.message, 'Release v')
2323
name: Manage release PR
2424
runs-on: ubuntu-latest
2525

0 commit comments

Comments
 (0)