Skip to content

Commit 20e855e

Browse files
committed
fix ci
1 parent 9c87102 commit 20e855e

File tree

2 files changed

+11
-16
lines changed

2 files changed

+11
-16
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release
1+
name: Release new action version
22

33
permissions:
44
contents: write
@@ -10,22 +10,17 @@ on:
1010
branches:
1111
- "main"
1212

13-
defaults:
14-
run:
15-
shell: bash --noprofile --norc -CeEuo pipefail {0}
16-
17-
env:
18-
TAG_NAME: ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }}
19-
2013
jobs:
2114
update_tag:
15+
name: Update the major tag to include the ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }} changes
16+
# Remember to configure the releaseNewActionVersion environment with required approvers in the repository settings
2217
runs-on: ubuntu-latest
23-
permissions:
24-
contents: write
2518
steps:
26-
- uses: actions/checkout@v4
27-
- uses: actions/publish-action@v0.3.0
28-
if: startsWith(github.ref, 'refs/tags/')
19+
- uses: actions/checkout@v3
20+
- uses: taiki-e/create-gh-release-action@v1
2921
with:
30-
source-tag: ${{ env.TAG_NAME }}
31-
22+
token: ${{ secrets.GITHUB_TOKEN }}
23+
- name: Update the ${{ github.event.release.tag_name }} tag
24+
uses: ./
25+
with:
26+
source-tag: ${{ github.event.release.tag_name }}

src/tool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export async function extractTo(compressedFilePath: string, outputDir: string) {
1414
{ ext: [".tar", ".tar.gz", ".tgz"], cmd: () => tc.extractTar(compressedFilePath, outputDir) },
1515
{
1616
ext: [".tar.bz2"],
17-
cmd: tc.extractXar(compressedFilePath, outputDir),
17+
cmd: () => tc.extractXar(compressedFilePath, outputDir),
1818
},
1919
{ ext: [".7z"], cmd: () => tc.extract7z(compressedFilePath, outputDir) },
2020
{ ext: [".rar"], cmd: `unrar x "${compressedFilePath}" "${outputDir}"` },

0 commit comments

Comments
 (0)