mirror of
https://github.com/kou029w/_.git
synced 2025-02-04 16:18:41 +00:00
Compare commits
4 commits
ca63c60670
...
e1ac8379d9
Author | SHA1 | Date | |
---|---|---|---|
|
e1ac8379d9 | ||
962b721a24 | |||
24ac4ed7b1 | |||
|
d541984fa2 |
3 changed files with 51 additions and 4 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 }}
|
|
@ -1037,7 +1037,7 @@ component-emitter@^1.2.1:
|
|||
concat-map@0.0.1:
|
||||
version "0.0.1"
|
||||
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
|
||||
integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=
|
||||
integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==
|
||||
|
||||
convert-source-map@^1.4.0, convert-source-map@^1.6.0, convert-source-map@^1.7.0:
|
||||
version "1.7.0"
|
||||
|
@ -2482,9 +2482,9 @@ mimic-fn@^2.1.0:
|
|||
integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==
|
||||
|
||||
minimatch@^3.0.4:
|
||||
version "3.0.4"
|
||||
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083"
|
||||
integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==
|
||||
version "3.1.2"
|
||||
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b"
|
||||
integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==
|
||||
dependencies:
|
||||
brace-expansion "^1.1.7"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue