[Rt-commit] rt branch, 4.4/github-actions-testing2, updated. rt-4.4.4-465-g429fade791
Jim Brandt
jbrandt at bestpractical.com
Tue May 25 11:15:14 EDT 2021
The branch, 4.4/github-actions-testing2 has been updated
via 429fade79150c040057039295bc6b378b89e47d3 (commit)
from c8f60194889ae52611d9b4cc1365f9d72811c592 (commit)
Summary of changes:
.github/workflows/github-action.yml | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
- Log -----------------------------------------------------------------
commit 429fade79150c040057039295bc6b378b89e47d3
Author: Jim Brandt <jbrandt at bestpractical.com>
Date: Tue May 25 11:15:10 2021 -0400
Don't reference env in the same step that sets it
diff --git a/.github/workflows/github-action.yml b/.github/workflows/github-action.yml
index 767b0c7d5d..a628eb06b1 100644
--- a/.github/workflows/github-action.yml
+++ b/.github/workflows/github-action.yml
@@ -12,7 +12,6 @@ jobs:
run: |
echo "RT_BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
echo "RT_START_TIME=$(date +%s)" >> $GITHUB_ENV
- echo "RT_START_TIME ${{ env.RT_START_TIME }}"
- name: Check out RT
uses: actions/checkout at v2
- name: Build RT
@@ -30,11 +29,9 @@ jobs:
- name: Get run time
shell: bash
run: |
- echo "RT_END_TIME=(date +%s)" >> $GITHUB_ENV
- echo "RT_TEST_TIME=$(( RT_END_TIME - RT_START_TIME ))" >> $GITHUB_ENV
- echo "RT_START_TIME ${{ env.RT_START_TIME }}"
- echo "RT_END_TIME ${{ env.RT_END_TIME }}"
- echo "RT_TEST_TIME ${{ env.RT_TEST_TIME }}"
+ export RT_END_TIME=(date +%s)
+ echo "RT_END_TIME=$RT_END_TIME" >> $GITHUB_ENV
+ echo "RT_TEST_TIME=$(( RT_END_TIME - env.RT_START_TIME ))" >> $GITHUB_ENV
- name: Post results to Slack
if: always()
uses: edge/simple-slack-notify at v1.1.1
-----------------------------------------------------------------------
More information about the rt-commit
mailing list