mirror of
https://github.com/kou029w/_.git
synced 2025-02-05 00:28:42 +00:00
Compare commits
1 commit
9bc1cc6e40
...
e1acc48679
Author | SHA1 | Date | |
---|---|---|---|
|
e1acc48679 |
1 changed files with 0 additions and 22 deletions
22
.github/workflows/update-latest-release.yml
vendored
22
.github/workflows/update-latest-release.yml
vendored
|
@ -1,22 +0,0 @@
|
||||||
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,
|
|
||||||
});
|
|
Loading…
Add table
Reference in a new issue