UnitsNet/5.60.0 #106
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: trigger-js-package-release # Trigger JS package re-generate and publish to NPM (https://github.com/haimkastner/unitsnet-js) | |
on: # Trigger re-generate JS units once a new relaese created | |
release: | |
types: [created] | |
workflow_dispatch: {} | |
jobs: | |
trigger: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Call re-run generate & publish job | |
env: | |
UNITSNET_JS_WORKFLOW_TOKEN: ${{ secrets.UNITSNET_JS_WORKFLOW_TOKEN }} | |
run: | | |
# Trigger dispatches event to rebuild unitsnet-js package | |
curl --fail --location --request POST 'https://api.github.com/repos/haimkastner/unitsnet-js/actions/workflows/nodejs.yml/dispatches' \ | |
--header 'Accept: application/vnd.github.everest-preview+json' \ | |
--header 'Content-Type: application/json' \ | |
--header "Authorization: Basic $UNITSNET_JS_WORKFLOW_TOKEN" \ | |
--data-raw '{"ref": "master" }' |