-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8d5bd8c
commit f000797
Showing
1 changed file
with
64 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: Manually-triggered (workflow_dispatch) to generate RAML schema from publicly available router. | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
start_path: | ||
description: 'Starting path (space seperated)' | ||
required: false | ||
# release_tag: | ||
# description: 'Release tag' | ||
# required: true | ||
# release_name: | ||
# description: 'Release name' | ||
# required: true | ||
# release_body: | ||
# description: 'Release description' | ||
# required: true | ||
|
||
jobs: | ||
run-bun: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Bun | ||
uses: oven-sh/setup-bun@v1 | ||
with: | ||
bun-version: 'latest' | ||
|
||
- name: Run JavaScript with Bun | ||
run: | | ||
bun install js-yaml raml2html raml2html-slate-theme | ||
bun rest2raml.js ${{ github.event.inputs.param1 }} | ||
env: | ||
URLBASE: https://${{ secrets.ROS_HOST}}}/rest | ||
BASICAUTH: ${{ secrets.ROS_USER }}:${{ secrets.ROS_PASSWD }} | ||
|
||
# - name: Archive results | ||
# run: | | ||
# mkdir -p results | ||
# mv output.json results/ # Assuming your script generates an output.json file | ||
# tar -czvf results.tar.gz results/ | ||
# | ||
# - name: Create GitHub Release | ||
# id: create_release | ||
# uses: actions/create-release@v1 | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# with: | ||
# tag_name: ${{ github.event.inputs.release_tag }} | ||
# release_name: ${{ github.event.inputs.release_name }} | ||
# body: ${{ github.event.inputs.release_body }} | ||
# draft: false | ||
# prerelease: false | ||
# | ||
# - name: Upload release asset | ||
# uses: actions/upload-release-asset@v1 | ||
# with: | ||
# upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
# asset_path: results.tar.gz | ||
# asset_name: results.tar.gz | ||
# asset_content_type: application/gzip |