mirror of
https://github.com/kou029w/_.git
synced 2025-02-04 16:18:41 +00:00
Compare commits
3 commits
9931324f7c
...
11db08cff4
Author | SHA1 | Date | |
---|---|---|---|
|
11db08cff4 | ||
12f2da15ee | |||
|
0975063ed3 |
2 changed files with 28 additions and 6 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,
|
||||
});
|
12
npm-run-script/package-lock.json
generated
12
npm-run-script/package-lock.json
generated
|
@ -630,9 +630,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/shell-quote": {
|
||||
"version": "1.7.2",
|
||||
"resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.7.2.tgz",
|
||||
"integrity": "sha512-mRz/m/JVscCrkMyPqHc/bczi3OQHkLTqXHEFu0zDhK/qfv3UcOA4SVmRCLmos4bhjr9ekVQubj/R7waKapmiQg==",
|
||||
"version": "1.7.3",
|
||||
"resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.7.3.tgz",
|
||||
"integrity": "sha512-Vpfqwm4EnqGdlsBFNmHhxhElJYrdfcxPThu+ryKS5J8L/fhAwLazFZtq+S+TWZ9ANj2piSQLGj6NQg+lKPmxrw==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/spdx-correct": {
|
||||
|
@ -1241,9 +1241,9 @@
|
|||
"dev": true
|
||||
},
|
||||
"shell-quote": {
|
||||
"version": "1.7.2",
|
||||
"resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.7.2.tgz",
|
||||
"integrity": "sha512-mRz/m/JVscCrkMyPqHc/bczi3OQHkLTqXHEFu0zDhK/qfv3UcOA4SVmRCLmos4bhjr9ekVQubj/R7waKapmiQg==",
|
||||
"version": "1.7.3",
|
||||
"resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.7.3.tgz",
|
||||
"integrity": "sha512-Vpfqwm4EnqGdlsBFNmHhxhElJYrdfcxPThu+ryKS5J8L/fhAwLazFZtq+S+TWZ9ANj2piSQLGj6NQg+lKPmxrw==",
|
||||
"dev": true
|
||||
},
|
||||
"spdx-correct": {
|
||||
|
|
Loading…
Add table
Reference in a new issue