NPM publish #8
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: Call API Example | |
on: | |
workflow_dispatch: | |
inputs: | |
username: | |
required: true | |
type: string | |
password: | |
required: true | |
type: string | |
jobs: | |
do_the_thing: | |
runs-on: ubuntu-latest | |
steps: | |
#- name: Mask Password | |
# run: | | |
# API_PASSWORD=$(jq -r '.inputs.password' $GITHUB_EVENT_PATH) | |
# echo ::add-mask::$API_PASSWORD | |
# echo API_PASSWORD=$API_PASSWORD >> $GITHUB_ENV | |
- name: Call API | |
uses: fjogeleit/[email protected] | |
with: | |
url: https://www.example.com/api/awesome/stuff | |
method: 'GET' | |
username: ${{ github.event.inputs.username }} | |
password: ${{ env.API_PASSWORD }} |