Skip to content

Commit

Permalink
Remove .github/workflows from release tag (#690)
Browse files Browse the repository at this point in the history
  • Loading branch information
int128 authored Sep 14, 2024
1 parent 750f077 commit 721dfc1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ export const createNextRelease = async (inputs: Inputs) => {
core.info(`Next tag is ${nextTag}`)

await exec.exec('sed', ['-i', '-E', 's|^/?dist/?||g', '.gitignore'])
await exec.exec('rm', ['-fr', '.github/workflows'])

await exec.exec('git', ['add', '.'])
await exec.exec('git', ['status'])
await exec.exec('git', ['config', 'user.name', 'github-actions'])
Expand Down
2 changes: 2 additions & 0 deletions src/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ export const followUpCurrentTag = async () => {
core.info(`Major tag is ${majorTag}`)

await exec.exec('sed', ['-i', '-E', 's|^/?dist/?||g', '.gitignore'])
await exec.exec('rm', ['-fr', '.github/workflows'])

await exec.exec('git', ['add', '.'])
if ((await gitStatus()) === '') {
core.info(`Current tag is up-to-date`)
Expand Down

0 comments on commit 721dfc1

Please sign in to comment.