From e7fc519f058af931c2de9f4f554c4d139a7e901e Mon Sep 17 00:00:00 2001 From: Wilson Lin Date: Wed, 1 Jan 2020 23:39:45 +1100 Subject: [PATCH] Fix using bash syntax in workflows --- .github/workflows/cli.yml | 2 ++ .github/workflows/nodejs.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml index d6ee2f2..256af96 100644 --- a/.github/workflows/cli.yml +++ b/.github/workflows/cli.yml @@ -28,9 +28,11 @@ jobs: - uses: actions/checkout@v1 - name: Get version id: version + shell: bash run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/v} - name: Get file name id: file + shell: bash run: echo ::set-output name=FILE::${{ steps.version.outputs.VERSION }}-${{ matrix.ARCH }}${{ matrix.EXT }} - name: Set up Rust uses: actions-rs/toolchain@v1 diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 837f468..2241396 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -24,9 +24,11 @@ jobs: - uses: actions/checkout@v1 - name: Get version id: version + shell: bash run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/v} - name: Get file name id: file + shell: bash run: echo ::set-output name=FILE::${{ steps.version.outputs.VERSION }}-${{ matrix.ARCH }}-node${{ matrix.node }}.node - name: Set up Node.js uses: actions/setup-node@master