try a different method to get the right format
This commit is contained in:
1 parent
33b7d9068a
commit
1212fbfd5d
1 file changed
+5
-14
@@ -16,17 +16,8 @@ jobs:
|
|||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Get current time
|
- name: Get Build Date
|
||||||
uses: srfrnk/current-time@master
|
run: echo ::set-env name=BUILD_DATE::$(/bin/date -u \"+%m%d%Y%H%M%S\")
|
||||||
id: current-time
|
|
||||||
with:
|
|
||||||
format: MMDDYYYYHHmmss
|
|
||||||
|
|
||||||
- name: Use current time
|
|
||||||
env:
|
|
||||||
DATE: "${{ steps.current-time.outputs.time }}"
|
|
||||||
F_DATE: "${{ steps.current-time.outputs.formattedTime }}"
|
|
||||||
run: echo $DATE $F_DATE
|
|
||||||
|
|
||||||
- name: Checkout python repo
|
- name: Checkout python repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
@@ -41,7 +32,7 @@ jobs:
|
|||||||
- name: Run build package (recommended pkg)
|
- name: Run build package (recommended pkg)
|
||||||
env:
|
env:
|
||||||
DATE: "${{ steps.current-time.outputs.formattedTime }}"
|
DATE: "${{ steps.current-time.outputs.formattedTime }}"
|
||||||
run: /usr/bin/sudo ./build_python_framework_pkgs.zsh "$TYPE" "$DEV_ID" "$PYTHON_VERSION" "{DATE}"
|
run: /usr/bin/sudo ./build_python_framework_pkgs.zsh "$TYPE" "$DEV_ID" "$PYTHON_VERSION" "${env.BUILD_DATE}"
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
uses: actions/create-release@v1
|
uses: actions/create-release@v1
|
||||||
@@ -49,8 +40,8 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
DATE: "${{ steps.current-time.outputs.formattedTime }}"
|
DATE: "${{ steps.current-time.outputs.formattedTime }}"
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ DATE }}
|
tag_name: v${{ env.BUILD_DATE }}
|
||||||
release_name: Python ${{PYTHON_VERSION}} (${{ github.ref }})
|
release_name: Python ${{env.PYTHON_VERSION}} (${{ env.BUILD_DATE }})
|
||||||
draft: true
|
draft: true
|
||||||
prerelease: true
|
prerelease: true
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user