Skip to content

Commit

Permalink
docs: document version output (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
serkonda7 authored Jan 5, 2024
1 parent 0992002 commit c423d52
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:
with:
node-version: 16.x
- uses: pnpm/action-setup@v2
with:
version: 8
with:
version: 8

- name: Install dependencies
run: pnpm install --frozen-lockfile
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Run Action
- id: bait_setup
name: Run Action
uses: ./
- run: bait version
- name: Check output
run: |
echo "Action output is ${{ steps.bait_setup.outputs.version }}"
bait version
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 c423d52

Please sign in to comment.