Skip to content

Commit

Permalink
ci: test the actions output
Browse files Browse the repository at this point in the history
  • Loading branch information
serkonda7 committed Jan 5, 2024
1 parent 0992002 commit e2fc868
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Run Action
- id: bait_setup
name: Run Action
uses: ./
- run: bait version
- run:
- name: Check output
run: |
echo "Action output is ${{ steps.bait_setup.outputs.version }}"
BAIT_VERSION=$(bait version)
if [ "${{ steps.bait_setup.outputs.version }}" != "$BAIT_VERSION" ]; then
echo "Output does not match expected value"
exit 1
fi
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
# Setup Bait
GitHub Action to setup Bait for use in workflows.


## Usage
```yaml
- uses: tiabeast/setup-bait@main
```
## Outputs
The action has the following output variables:
- `version`: Version of Bait that was installed


## License
This repository is licensed under the Mozilla Public License (`MPL-2.0`).
See [LICENSE.txt](./LICENSE.txt) for details.
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/setup-bait.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2023-present Lukas Neubert <lukas.neubert@proton.me>
// SPDX-License-Identifier: MPL-2.0

const core = require('@actions/core')
const exec = require('@actions/exec')

Expand Down

0 comments on commit e2fc868

Please sign in to comment.