try a different method to get the right format

This commit is contained in:
Erik Gomez
2020-06-19 16:56:28 -05:00
parent 33b7d9068a
commit 1212fbfd5d
+5 -14
View File
@@ -16,17 +16,8 @@ jobs:
runs-on: macos-latest
steps:
- name: Get current time
uses: srfrnk/current-time@master
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: Get Build Date
run: echo ::set-env name=BUILD_DATE::$(/bin/date -u \"+%m%d%Y%H%M%S\")
- name: Checkout python repo
uses: actions/checkout@v2
@@ -41,7 +32,7 @@ jobs:
- name: Run build package (recommended pkg)
env:
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
uses: actions/create-release@v1
@@ -49,8 +40,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DATE: "${{ steps.current-time.outputs.formattedTime }}"
with:
tag_name: ${{ DATE }}
release_name: Python ${{PYTHON_VERSION}} (${{ github.ref }})
tag_name: v${{ env.BUILD_DATE }}
release_name: Python ${{env.PYTHON_VERSION}} (${{ env.BUILD_DATE }})
draft: true
prerelease: true