Skip to content

Commit

Permalink
build: run workflow step only if user has write access
Browse files Browse the repository at this point in the history
PR-URL: #2597
Reviewed-by: Athan Reines <[email protected]>
Signed-off-by: Snehil Shah <[email protected]>
  • Loading branch information
Snehil-Shah authored Jul 14, 2024
1 parent 903c51c commit 6d50838
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/process_metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ jobs:
# Check the metadata for directives to send tweets:
- name: 'Send tweets'

# Only run this step if a user has write access:
if: steps.assert-write-access.outcome == 'success'

# Pin action to full length commit SHA
uses: stdlib-js/metadata-tweet-action@8e9b688c86150797c1c7f60bc8f7c9a9a30e10fe # v2.0.0
with:
Expand Down

0 comments on commit 6d50838

Please sign in to comment.