Skip to content

v1.50.0

v1.50.0 #130

Workflow file for this run

name: pubhub-notification
# Run this workflow every time a new commit pushed to your repository
on: push
jobs:
notification:
name: notification
runs-on: ubuntu-latest
outputs:
response: ${{steps.CloudSSO.response}}
steps:
- name: echo
run: echo "Starting https request"
- name: cloudsso
uses: fjogeleit/[email protected]
id: ciscosso
with:
url: 'https://cloudsso.cisco.com/as/token.oauth2?grant_type=client_credentials&client_id=${{secrets.client_id}}&client_secret=${{secrets.client_secret}}'
method: POST
- name : PubHub API
uses: fjogeleit/[email protected]
with:
url: 'https://api.cisco.com/api/v1.0/projects/sync/${{secrets.project_id}}/'
timeout: 60000
customHeaders: '{"X-Authorization":"Token ${{secrets.pubhub_token}}", "Authorization" : "Bearer ${{fromJson(steps.ciscosso.outputs.response).access_token}}"}'
method: GET