-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add initial "composite" action for installing Bashbrew
(Also, fix a few minor bugs in `scripts/github-actions/generate.sh` and update the example appropriately)
- Loading branch information
Showing
3 changed files
with
30 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# steps: | ||
# - ... | ||
# - uses: docker-library/bashbrew | ||
# - ... | ||
|
||
name: 'Install Bashbrew' | ||
description: 'Install the "bashbrew" tool in GITHUB_PATH' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version-file: '${{ github.action_path }}/go.mod' | ||
- run: | | ||
'${{ github.action_path }}/bashbrew.sh' --version > /dev/null | ||
'${{ github.action_path }}/bin/bashbrew' --version | ||
echo '${{ github.action_path }}/bin' >> "$GITHUB_PATH" | ||
echo 'BASHBREW_SCRIPTS=${{ github.action_path }}/scripts' >> "$GITHUB_ENV" | ||
shell: 'bash -Eeuo pipefail -x {0}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters