mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-10 04:54:03 -08:00
b922d61371
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.2 to 4.1.3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](9bb56186c3...1d96c772d1
)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-patch
...
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@1d96c772d19495a3b5c517cd2bc0cb401ea0529f
|
|
- name: Update Template ✍️
|
|
run: |
|
|
./build.ps1 -Version ${{ github.event.inputs.version }}
|
|
- name: Upload artifacts 🆙
|
|
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
|
|
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')
|
|
});
|