Skip to content

Commit

Permalink
[GHA] Download the scripts to make workflow reusable
Browse files Browse the repository at this point in the history
# Motivation

The reusable workflow is intended to be called from other repos; however, the workflow contains jobs that execute shell scripts. Those scripts are part of the NIO repo. When another repo calls the reusable workflow those scripts aren't present on the machine.

# Modification

This PR downloads the scripts via curl and executes them.

# Result

Makes the reusable workflow truly reusable
  • Loading branch information
FranzBusch committed Jul 12, 2024
1 parent 8631602 commit 40fecc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/reusable_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run documentation check
run: ./scripts/check-docs.sh
run: wget https://raw.githubusercontent.com/apple/swift-nio/main/scripts/check-docs.sh | bash

unacceptable-language-check:
name: Unacceptable language check
Expand All @@ -135,4 +135,4 @@ jobs:
- name: Run unacceptable language check
env:
UNACCEPTABLE_WORD_LIST: ${{ inputs.unacceptable_language_check_word_list}}
run: ./scripts/check-unacceptable-language.sh
run: wget https://raw.githubusercontent.com/apple/swift-nio/main/scripts/check-unacceptable-language.sh | bash

0 comments on commit 40fecc4

Please sign in to comment.