Compare commits

...

6 Commits

Author SHA1 Message Date
331ce1d993 Merge pull request #141 from paulcacheux/fix-windows-extractor-selection
Fix extractor selection on windows
2021-08-25 11:43:04 -04:00
1087a81afd Merge pull request #146 from actions/joshmgross/add-release-workflow
Add release action version workflow
2021-08-25 11:41:46 -04:00
ecd878f81d Add release action version workflow 2021-08-25 11:38:05 -04:00
bba6fe1d58 Fix extractor selection on windows 2021-08-19 21:32:02 +02:00
3b4dc6cbed Merge pull request #90 from actions/joshmgross/add-codeowners
Add CODEOWNERS
2020-12-09 11:22:47 -05:00
afe68ffd57 Add CODEOWNERS 2020-12-07 15:56:41 -05:00
4 changed files with 32 additions and 4 deletions

View File

@ -0,0 +1,27 @@
name: Release new action version
on:
release:
types: [released]
workflow_dispatch:
inputs:
TAG_NAME:
description: 'Tag name that the major tag will point to'
required: true
env:
TAG_NAME: ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }}
permissions:
contents: write
jobs:
update_tag:
name: Update the major tag to include the ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }} changes
environment:
name: releaseNewActionVersion
runs-on: ubuntu-latest
steps:
- name: Update the ${{ env.TAG_NAME }} tag
uses: actions/publish-action@v0.1.0
with:
source-tag: ${{ env.TAG_NAME }}
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}

1
CODEOWNERS Normal file
View File

@ -0,0 +1 @@
* @actions/spark

4
dist/index.js vendored
View File

@ -5084,9 +5084,9 @@ function installGoVersion(info, auth) {
}
function extractGoArchive(archivePath) {
return __awaiter(this, void 0, void 0, function* () {
const arch = os_1.default.arch();
const platform = os_1.default.platform();
let extPath;
if (arch === 'win32') {
if (platform === 'win32') {
extPath = yield tc.extractZip(archivePath);
}
else {

View File

@ -122,10 +122,10 @@ async function installGoVersion(
}
export async function extractGoArchive(archivePath: string): Promise<string> {
const arch = os.arch();
const platform = os.platform();
let extPath: string;
if (arch === 'win32') {
if (platform === 'win32') {
extPath = await tc.extractZip(archivePath);
} else {
extPath = await tc.extractTar(archivePath);