mirror of
https://github.com/kou029w/_.git
synced 2025-02-04 16:18:41 +00:00
Compare commits
4 commits
72defd3ae1
...
dfb63e24b7
Author | SHA1 | Date | |
---|---|---|---|
|
dfb63e24b7 | ||
962b721a24 | |||
24ac4ed7b1 | |||
|
86768fcd83 |
3 changed files with 51 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 }}
|
|
@ -2324,11 +2324,9 @@ json-stringify-safe@~5.0.1:
|
||||||
integrity sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=
|
integrity sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=
|
||||||
|
|
||||||
json5@^2.1.2:
|
json5@^2.1.2:
|
||||||
version "2.2.0"
|
version "2.2.3"
|
||||||
resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.0.tgz#2dfefe720c6ba525d9ebd909950f0515316c89a3"
|
resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283"
|
||||||
integrity sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA==
|
integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==
|
||||||
dependencies:
|
|
||||||
minimist "^1.2.5"
|
|
||||||
|
|
||||||
jsprim@^1.2.2:
|
jsprim@^1.2.2:
|
||||||
version "1.4.1"
|
version "1.4.1"
|
||||||
|
@ -2488,7 +2486,7 @@ minimatch@^3.0.4:
|
||||||
dependencies:
|
dependencies:
|
||||||
brace-expansion "^1.1.7"
|
brace-expansion "^1.1.7"
|
||||||
|
|
||||||
minimist@^1.1.1, minimist@^1.2.0, minimist@^1.2.5:
|
minimist@^1.1.1, minimist@^1.2.0:
|
||||||
version "1.2.5"
|
version "1.2.5"
|
||||||
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602"
|
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602"
|
||||||
integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==
|
integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==
|
||||||
|
|
Loading…
Add table
Reference in a new issue