https://github.com/garronej/github_actions_toolkit
https://github.com/garronej/github_actions_toolkit
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/garronej/github_actions_toolkit
- Owner: garronej
- Created: 2020-04-25T18:30:59.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-07-12T05:21:10.000Z (over 2 years ago)
- Last Synced: 2025-04-22T06:07:24.815Z (8 months ago)
- Language: TypeScript
- Homepage:
- Size: 5.13 MB
- Stars: 1
- Watchers: 2
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# github_actions_toolkit
```bash
npm install
npm run build
```
Example use:
```yaml
trigger-deploy:
runs-on: ubuntu-latest
if: steps.id1.outputs.is_version_changed && github.event_name == 'push'
needs:
- test-node
- test-deno
steps:
- name: Check if package.json version have changed
id: id1
uses: garronej/github_actions_toolkit@master
with:
action_name: is_version_changed
owner: ${{github.repository_owner}}
repo: ${{github.repository.name}}
branch_current: ${{master}}
branch_new: ${{dev}}
- name: Trigger publish if version changed
uses: garronej/github_actions_toolkit@master
with:
action_name: dispatch_event
owner: ${{github.repository_owner}}
repo: ${{github.repository.name}}
event_type: publish
```