Update Winget #6
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: | |
paths: | |
- 'JSON/**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
outputs: | |
output1: ${{ steps.py.outputs.cmd }} | |
steps: | |
- name: check out repo and run py create output | |
uses: actions/checkout@v3 | |
id: py | |
- run: | | |
output=$(python ./update.py) | |
echo "::set-output name=output1::$output" | |
shell: sh | |
use_output: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Use the captured output | |
run: | | |
echo "${{ needs.build.outputs.output1 }}" | |
echo "Output successfully accessed" | |
- name: Run Komac | |
uses: michidk/[email protected] | |
with: | |
args: '${{ needs.build.outputs.output1 }} --token ${{ secrets.GITHUB_TOKEN }}' |