Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

Commit

Permalink
Update hub_sync.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
migara authored Aug 14, 2023
1 parent 39f03cc commit a40223c
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/hub_sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,26 @@ permissions:
contents: read

on:
push:
tags:
- "*"
release:
types: [released]

jobs:
hub_sync:
runs-on: ubuntu-latest
steps:
- name: Generate GitHub token
id: generate-token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
installation_id: ${{ secrets.APP_INSTALLATION_ID }}

- name: Trigger Hub Sync Workflow
uses: benc-uk/workflow-dispatch@v1
with:
workflow: run.yml
repo: PaloAltoNetworks/automation-metadata-collector
ref: main
token: ${{ secrets.HUB_SYNC_TOKEN }}
token: ${{ steps.generate-token.outputs.token }}
inputs: '{"cloud-id": "azure"}'

0 comments on commit a40223c

Please sign in to comment.