added wireless client count #137
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: 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 | |