mirror of
https://github.com/kou029w/_.git
synced 2025-02-04 16:18:41 +00:00
Compare commits
3 commits
e0427dd10f
...
8f3f670ff2
Author | SHA1 | Date | |
---|---|---|---|
|
8f3f670ff2 | ||
12f2da15ee | |||
|
8015c78eb4 |
2 changed files with 25 additions and 3 deletions
22
.github/workflows/update-latest-release.yml
vendored
Normal file
22
.github/workflows/update-latest-release.yml
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
name: update-latest-release
|
||||
on:
|
||||
workflow_dispatch:
|
||||
jobs:
|
||||
main:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: echo ok > hello.txt
|
||||
- uses: actions/github-script@v6
|
||||
with:
|
||||
script: |
|
||||
const { data: release } = await github.rest.repos.getLatestRelease(context.repo);
|
||||
|
||||
const name = "hello.txt";
|
||||
const data = await require("node:fs").promises.readFile(name);
|
||||
|
||||
await github.rest.repos.uploadReleaseAsset({
|
||||
...context.repo,
|
||||
release_id: release.id,
|
||||
name,
|
||||
data,
|
||||
});
|
|
@ -2084,9 +2084,9 @@ debug@^2.2.0, debug@^2.3.3:
|
|||
ms "2.0.0"
|
||||
|
||||
decode-uri-component@^0.2.0:
|
||||
version "0.2.0"
|
||||
resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545"
|
||||
integrity sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=
|
||||
version "0.2.2"
|
||||
resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.2.tgz#e69dbe25d37941171dd540e024c444cd5188e1e9"
|
||||
integrity sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==
|
||||
|
||||
define-properties@^1.1.2:
|
||||
version "1.1.3"
|
||||
|
|
Loading…
Add table
Reference in a new issue