update workflow #36
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: Update Winget | |
on: | |
workflow_dispatch: | |
push: | |
branches: ['main'] | |
paths: ['JSON/*.json'] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: check out repo | |
uses: actions/checkout@v3 | |
- name: read p81 json | |
id: app1 | |
uses: RadovanPelka/[email protected] | |
with: | |
path: "JSON/perimeter81.json" | |
- name: Run Komac - p81 | |
uses: michidk/[email protected] | |
with: | |
args: 'update -i ${{ steps.app1.outputs.package_id }} -v ${{ steps.app1.outputs.version_number }} --urls ${{ steps.app1.outputs.msi_url }} --submit --token ${{ secrets.GH_TOKEN }}' | |
- name: read thy.agent json | |
id: app2 | |
uses: RadovanPelka/[email protected] | |
with: | |
path: "JSON/DelineaInc.ThycoticAgent.json" | |
- name: jq uri thy.agent | |
id: output2 | |
run: (jq -r '.URI' JSON/DelineaInc.ThycoticAgent.json) | |
- name: Run Komac - thy.agent | |
uses: michidk/[email protected] | |
with: | |
args: 'update -i ${{ steps.app2.outputs.product_name }} -v ${{ steps.app2.outputs.version_number }} --urls ${{ steps.output2.outputs }} --submit --token ${{ secrets.GH_TOKEN }}' | |
- name: read thy.con json | |
id: app3 | |
uses: RadovanPelka/[email protected] | |
with: | |
path: "JSON/DelineaInc.ThycoticApplicationControlAgent.json" | |
- name: Run Komac - thy.con | |
uses: michidk/[email protected] | |
with: | |
args: 'update -i ${{ steps.app3.outputs.product_name }} -v ${{ steps.app3.outputs.version_number }} --urls ${{ steps.app3.outputs.uri }} --submit --token ${{ secrets.GH_TOKEN }}' | |
- name: read thy.sec json | |
id: app4 | |
uses: RadovanPelka/[email protected] | |
with: | |
path: "JSON/DelineaInc.ThycoticLocalSecurityAgent.json" | |
- name: Run Komac - thy.sec | |
uses: michidk/[email protected] | |
with: | |
args: 'update -i ${{ steps.app4.outputs.product_name }} -v ${{ steps.app4.outputs.version_number }} --urls ${{ steps.app4.outputs.uri }} --submit --token ${{ secrets.GH_TOKEN }}' |