mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-10 04:54:03 -08:00
209feea544
Bumps [actions/github-script](https://github.com/actions/github-script) from 6.4.1 to 7.0.0.
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](d7906e4ad0...e69ef5462f
)
---
updated-dependencies:
- dependency-name: actions/github-script
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
43 lines
1.2 KiB
YAML
43 lines
1.2 KiB
YAML
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@b4ffde65f46336ab88eb53be808477a3936bae11
|
|
- name: Update Template ✍️
|
|
run: |
|
|
./build.ps1 -Version ${{ github.event.inputs.version }}
|
|
- name: Upload artifacts 🆙
|
|
uses: actions/github-script@e69ef5462fd455e02edcaf4dd7708eda96b9eda0
|
|
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')
|
|
});
|