Skip to content

Commit

Permalink
ci: run for loop in bash file
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarcoatl committed Oct 17, 2023
1 parent 75d60f1 commit d035272
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,7 @@ jobs:
- uses: actions/checkout@v4

- run: |
# Get formulae
formulae=(
"bzip2"
"unzip"
"xz"
)
for formula in "${formulae[@]}"; do
curl -s -o "Formula/$formula.rb" "https://raw.githubusercontent.com/Homebrew/homebrew-core/HEAD/Formula/${formula:0:1}/$formula.rb"
done
./scripts/core.sh
- uses: coatl-dev/actions/simple-git-diff@coatl
id: git-diff
Expand Down
10 changes: 10 additions & 0 deletions scripts/core.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

formulae=(
"bzip2"
"unzip"
"xz"
)
for formula in "${formulae[@]}"; do
curl -s -o "Formula/$formula.rb" "https://raw.githubusercontent.com/Homebrew/homebrew-core/HEAD/Formula/${formula:0:1}/$formula.rb"
done

0 comments on commit d035272

Please sign in to comment.