Add GitHub composite action #5
Workflow file for this run
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
name: Test Action | |
on: | |
pull_request: | |
jobs: | |
test: | |
name: Test Action | |
runs-on: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
# test that action has current sver embedded | |
.github/workflows/bin/embed_sver_in_action.sh | |
if ! git diff --quiet action.yaml ; then | |
echo '::error title=Action not updated::The action /action.yaml' \ | |
'was not updated with the current sver script.' | |
exit 1 | |
fi | |
shell: bash | |
- uses: ./ | |
name: sver version | |
with: | |
command: version | |
- uses: ./ | |
name: sver max | |
with: | |
command: max | |
input-command: git tag -l | |