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 f77172f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/reusable_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run documentation check
run: ./scripts/check-docs.sh
run: |
apt-get -qq update && apt-get -qq -y install curl
curl -s https://raw.githubusercontent.com/apple/swift-nio/main/scripts/check-docs.sh | bash
unacceptable-language-check:
name: Unacceptable language check
Expand All @@ -135,4 +137,4 @@ jobs:
- name: Run unacceptable language check
env:
UNACCEPTABLE_WORD_LIST: ${{ inputs.unacceptable_language_check_word_list}}
run: ./scripts/check-unacceptable-language.sh
run: curl -s https://raw.githubusercontent.com/apple/swift-nio/main/scripts/check-unacceptable-language.sh | bash

0 comments on commit f77172f

Please sign in to comment.