Skip to content

Instantly share code, notes, and snippets.

@blake-newman
Created May 19, 2020 15:58
Show Gist options
  • Save blake-newman/7d19432a4efef6de0e37225f808fedb2 to your computer and use it in GitHub Desktop.
Save blake-newman/7d19432a4efef6de0e37225f808fedb2 to your computer and use it in GitHub Desktop.
Unique id from job output
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