1
0
Fork 0
mirror of https://github.com/kou029w/_.git synced 2025-02-04 16:18:41 +00:00

Compare commits

..

2 commits

Author SHA1 Message Date
dependabot[bot]
758fba783d
Merge 4c9d891503 into 12f2da15ee 2023-10-25 21:41:11 +00:00
12f2da15ee
create update-latest-release action 2023-10-25 19:39:34 +09:00

View 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,
});