mirror of
https://github.com/garronej/ts-ci.git
synced 2025-11-30 21:43:05 +00:00
Follow up from https://github.com/garronej/github_actions_toolkit
This commit is contained in:
commit
5297ab00ab
54 changed files with 18162 additions and 0 deletions
35
README.md
Normal file
35
README.md
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
|
||||
# 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
|
||||
```
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue