mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-05 06:28:51 +00:00
fix(ci/pre-release): get and set step vars properly
This commit is contained in:
1 parent
04f9195444
commit
1583789341
1 file changed
+6
-6
@@ -2,7 +2,7 @@ name: Prerelease Publisher
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- ci-testing
|
||||||
jobs:
|
jobs:
|
||||||
pre-release-build:
|
pre-release-build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -20,9 +20,9 @@ jobs:
|
|||||||
- name: Get variables
|
- name: Get variables
|
||||||
id: get_vars
|
id: get_vars
|
||||||
run: |
|
run: |
|
||||||
echo ::set-output name=VERSION_TAG::${GITHUB_REF/refs\/tags\//}
|
echo "::set-output name=VERSION_TAG::${GITHUB_REF/refs\/tags\//}"
|
||||||
echo ::set-output name=SHORT_SHA::$(git rev-parse --short HEAD)"
|
echo "::set-output name=SHORT_SHA::$(git rev-parse --short HEAD)"
|
||||||
echo ::set-output name=DATE::$(date +'%D')"
|
echo "::set-output name=DATE::$(date +'%D')"
|
||||||
- name: Get yarn cache directory path
|
- name: Get yarn cache directory path
|
||||||
id: yarn-cache-dir-path
|
id: yarn-cache-dir-path
|
||||||
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
|
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
|
||||||
@@ -51,9 +51,9 @@ jobs:
|
|||||||
uses: "marvinpinto/action-automatic-releases@latest"
|
uses: "marvinpinto/action-automatic-releases@latest"
|
||||||
with:
|
with:
|
||||||
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
title: "Pre-Release Build | ${{ steps.get_vars.outputs.DATE }}"
|
title: Pre-Release Build (${{ steps.get_vars.outputs.SHORT_SHA }}) | ${{ steps.get_vars.outputs.DATE }}
|
||||||
prerelease: true
|
prerelease: true
|
||||||
automatic_release_tag: "latest"
|
automatic_release_tag: "unstable"
|
||||||
files: ./temp/npwd-pre-${{ steps.get_vars.outputs.SHORT_SHA }}.zip
|
files: ./temp/npwd-pre-${{ steps.get_vars.outputs.SHORT_SHA }}.zip
|
||||||
env:
|
env:
|
||||||
CI: false
|
CI: false
|
||||||
|
|||||||
Reference in new issue
Block a user