mirror of
https://github.com/kou029w/_.git
synced 2025-02-04 16:18:41 +00:00
Compare commits
4 commits
7fea5249d2
...
4c2daffbdc
Author | SHA1 | Date | |
---|---|---|---|
|
4c2daffbdc | ||
962b721a24 | |||
24ac4ed7b1 | |||
|
cbc5521cc8 |
3 changed files with 53 additions and 6 deletions
18
.github/workflows/update-empty-branch.yml
vendored
Normal file
18
.github/workflows/update-empty-branch.yml
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
name: update-empty-branch
|
||||
on:
|
||||
workflow_dispatch:
|
||||
jobs:
|
||||
main:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- run: |
|
||||
git worktree add --track -b empty empty origin/empty
|
||||
rm -rf empty/*
|
||||
git config user.name bot
|
||||
git config user.email '<>'
|
||||
git -C empty add --all
|
||||
git -C empty commit --allow-empty --message "based on $(git rev-parse @)"
|
||||
git -C empty push origin empty
|
29
.github/workflows/update-latest-release.yml
vendored
Normal file
29
.github/workflows/update-latest-release.yml
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
name: update-latest-release
|
||||
on:
|
||||
workflow_dispatch:
|
||||
jobs:
|
||||
main:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- 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,
|
||||
# });
|
||||
- run: |
|
||||
latest=$(gh release view --json tagName --jq .tagName)
|
||||
gh release delete-asset "${latest}" hello.txt || :
|
||||
gh release upload "${latest}" hello.txt
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
|
@ -2920,9 +2920,9 @@ json-schema-traverse@^0.4.1:
|
|||
integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==
|
||||
|
||||
json5@^1.0.1:
|
||||
version "1.0.1"
|
||||
resolved "https://registry.yarnpkg.com/json5/-/json5-1.0.1.tgz#779fb0018604fa854eacbf6252180d83543e3dbe"
|
||||
integrity sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==
|
||||
version "1.0.2"
|
||||
resolved "https://registry.yarnpkg.com/json5/-/json5-1.0.2.tgz#63d98d60f21b313b77c4d6da18bfa69d80e1d593"
|
||||
integrity sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==
|
||||
dependencies:
|
||||
minimist "^1.2.0"
|
||||
|
||||
|
@ -3159,9 +3159,9 @@ minimatch@^3.0.4:
|
|||
brace-expansion "^1.1.7"
|
||||
|
||||
minimist@^1.2.0, minimist@^1.2.5:
|
||||
version "1.2.5"
|
||||
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602"
|
||||
integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==
|
||||
version "1.2.7"
|
||||
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.7.tgz#daa1c4d91f507390437c6a8bc01078e7000c4d18"
|
||||
integrity sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==
|
||||
|
||||
minipass-collect@^1.0.2:
|
||||
version "1.0.2"
|
||||
|
|
Loading…
Add table
Reference in a new issue