Skip to content

Commit

Permalink
fetch tags
Browse files Browse the repository at this point in the history
  • Loading branch information
kpgalligan committed Aug 27, 2024
1 parent 0118d41 commit a8b9a04
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ export async function run(): Promise<void> {
await git.raw('worktree', 'add', '.git/tmp/remote_swift_package', 'remote_swift_package')

Check failure on line 30 in src/main.ts

View workflow job for this annotation

GitHub Actions / Lint Codebase

Replace `'worktree',·'add',·'.git/tmp/remote_swift_package',·'remote_swift_package'` with `⏎······'worktree',⏎······'add',⏎······'.git/tmp/remote_swift_package',⏎······'remote_swift_package'⏎····`

const packageSource = fs.readFileSync(`.${localPackagePath}/Package.swift`, 'utf8')

Check failure on line 32 in src/main.ts

View workflow job for this annotation

GitHub Actions / Lint Codebase

Replace ``.${localPackagePath}/Package.swift`,·'utf8'` with `⏎······`.${localPackagePath}/Package.swift`,⏎······'utf8'⏎····`
fs.writeFileSync(`.git/tmp/remote_swift_package${remotePackagePath}/Package.swift`, packageSource);
fs.writeFileSync(`.git/tmp/remote_swift_package${remotePackagePath}/Package.swift`, packageSource)

Check failure on line 33 in src/main.ts

View workflow job for this annotation

GitHub Actions / Lint Codebase

Replace ``.git/tmp/remote_swift_package${remotePackagePath}/Package.swift`,·packageSource` with `⏎······`.git/tmp/remote_swift_package${remotePackagePath}/Package.swift`,⏎······packageSource⏎····`

const worktreeGit = simpleGit('.git/tmp/remote_swift_package')
await worktreeGit.pull() // Get release tag
await worktreeGit.raw('fetch', '--tags') // Get release tag
await worktreeGit.add('.')
await worktreeGit.commit(commitMessage)
await worktreeGit.raw('tag', '-fa', tagVersion, '-m', tagMessage)
Expand Down

0 comments on commit a8b9a04

Please sign in to comment.