mirror of
https://github.com/ivuorinen/ghaw-auditor.git
synced 2026-01-26 03:14:09 +00:00
28 lines
642 B
YAML
28 lines
642 B
YAML
---
|
|
name: Job with Outputs
|
|
|
|
on: push
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
version: ${{ steps.version.outputs.version }}
|
|
artifact-url: ${{ steps.upload.outputs.url }}
|
|
status: success
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Get version
|
|
id: version
|
|
run: echo "version=1.0.0" >> $GITHUB_OUTPUT
|
|
- name: Upload artifact
|
|
id: upload
|
|
run: echo "url=https://example.com/artifact" >> $GITHUB_OUTPUT
|
|
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
needs: build
|
|
steps:
|
|
- name: Deploy
|
|
run: echo "Deploying version ${{ needs.build.outputs.version }}"
|