Skip to content

Commit 6d50838

Browse files
authored
build: run workflow step only if user has write access
PR-URL: #2597 Reviewed-by: Athan Reines <kgryte@gmail.com> Signed-off-by: Snehil Shah <snehilshah.989@gmail.com>
1 parent 903c51c commit 6d50838

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/process_metadata.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ jobs:
9292
# Check the metadata for directives to send tweets:
9393
- name: 'Send tweets'
9494

95+
# Only run this step if a user has write access:
96+
if: steps.assert-write-access.outcome == 'success'
97+
9598
# Pin action to full length commit SHA
9699
uses: stdlib-js/metadata-tweet-action@8e9b688c86150797c1c7f60bc8f7c9a9a30e10fe # v2.0.0
97100
with:

0 commit comments

Comments
 (0)