Created
May 19, 2020 15:58
-
-
Save blake-newman/7d19432a4efef6de0e37225f808fedb2 to your computer and use it in GitHub Desktop.
Unique id from job output
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jobs: | |
context: | |
runs-on: ubuntu-latest | |
outputs: | |
uuid: ${{ steps.uuid.outputs.value }} | |
steps: | |
- name: 'uuid' | |
id: uuid | |
run: echo "::set-output name=value::$GITHUB_SHA-$(date +"%s")" | |
tests: | |
needs: ['context'] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cypress run | |
uses: cypress-io/github-action@v1 | |
with: | |
record: true | |
parallel: true | |
# use our build id | |
ci-build-id: '${{ needs.context.outputs.uuid }}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment