Skip to content

Add run id and sha to action outputs #46

Add run id and sha to action outputs

Add run id and sha to action outputs #46

Workflow file for this run

name: Build
on:
pull_request:
paths-ignore:
- '**.md'
push:
paths-ignore:
- '**.md'
branches:
- master
tags:
- v**
jobs:
build-docker:
name: Build docker image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Generate Docker meta names
uses: docker/metadata-action@v3
id: meta
with:
images: convictional/trigger-workflow-and-wait
tags: |
type=ref,event=tag
type=raw,enable=${{ !startsWith(github.ref, 'refs/tags/') }},value=master
- name: Build Docker image
uses: docker/build-push-action@v2
with:
push: false
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
context: .
self-test:
name: Run self-test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./
with:
owner: ${{ github.repository_owner }}
repo: trigger-workflow-and-wait
ref: ${{ github.event.repository.default_branch || 'master' }}
github_token: ${{ secrets.SECRET_PERSONAL_TOKEN }}
workflow_file_name: selftest.yaml
client_payload: '{"test": "true"}'
wait_interval: 11
trigger_workflow: true
wait_workflow: true
propagate_failure: true