name: Scoop on: workflow_dispatch: inputs: version: description: 'The latest version' required: true release: description: 'The release id' required: true jobs: publish: runs-on: ubuntu-latest defaults: run: shell: pwsh working-directory: ${{ github.workspace }}/packages/scoop steps: - name: Checkout code 👋 uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f - name: Update Template ✍️ run: | ./build.ps1 -Version ${{ github.event.inputs.version }} - name: Upload artifacts 🆙 uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975 with: github-token: ${{secrets.GITHUB_TOKEN}} script: | console.log('environment', process.versions); const fs = require('fs').promises; const { repo: { owner, repo }, sha } = context; console.log({ owner, repo, sha }); await github.rest.repos.uploadReleaseAsset({ owner, repo, release_id: ${{ github.event.inputs.release }}, name: 'oh-my-posh.json', data: await fs.readFile('./packages/scoop/dist/oh-my-posh.json') });