Add success flags to workflows
This commit is contained in:
parent
9f93c0846d
commit
e98e11d963
10
.github/workflows/build-push-attest-docker.yml
vendored
10
.github/workflows/build-push-attest-docker.yml
vendored
@ -6,6 +6,10 @@ on:
|
|||||||
release:
|
release:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
outputs:
|
||||||
|
success:
|
||||||
|
description: "Did the flow succeed?"
|
||||||
|
value: ${{ jobs.publish.outputs.success }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish:
|
publish:
|
||||||
@ -16,6 +20,8 @@ jobs:
|
|||||||
contents: read
|
contents: read
|
||||||
attestations: write
|
attestations: write
|
||||||
id-token: write
|
id-token: write
|
||||||
|
outputs:
|
||||||
|
success: ${{ steps.set_flag.outputs.success }}
|
||||||
steps:
|
steps:
|
||||||
- name: Check out the repo
|
- name: Check out the repo
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@ -58,3 +64,7 @@ jobs:
|
|||||||
subject-name: ghcr.io/${{ github.repository }}
|
subject-name: ghcr.io/${{ github.repository }}
|
||||||
subject-digest: ${{ steps.push.outputs.digest }}
|
subject-digest: ${{ steps.push.outputs.digest }}
|
||||||
push-to-registry: true
|
push-to-registry: true
|
||||||
|
|
||||||
|
- name: Set success flag
|
||||||
|
id: set_flag
|
||||||
|
run: echo "success=true" >> "$GITHUB_OUTPUT"
|
||||||
|
8
.github/workflows/create-release.yml
vendored
8
.github/workflows/create-release.yml
vendored
@ -5,6 +5,9 @@ on:
|
|||||||
release_name:
|
release_name:
|
||||||
description: "Name of the created release"
|
description: "Name of the created release"
|
||||||
value: ${{ jobs.create_release.outputs.release_name }}
|
value: ${{ jobs.create_release.outputs.release_name }}
|
||||||
|
success:
|
||||||
|
description: "Was the release created successfully?"
|
||||||
|
value: ${{ jobs.create_release.outputs.success }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
create_release:
|
create_release:
|
||||||
@ -12,6 +15,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
release_name: ${{ steps.tag_version.outputs.new_tag }}
|
release_name: ${{ steps.tag_version.outputs.new_tag }}
|
||||||
|
success: ${{ steps.set_flag.outputs.success }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
@ -41,3 +45,7 @@ jobs:
|
|||||||
name: ${{ steps.tag_version.outputs.new_tag }}
|
name: ${{ steps.tag_version.outputs.new_tag }}
|
||||||
body: ${{ steps.tag_version.outputs.changelog }}
|
body: ${{ steps.tag_version.outputs.changelog }}
|
||||||
generateReleaseNotes: true
|
generateReleaseNotes: true
|
||||||
|
|
||||||
|
- name: Set success flag
|
||||||
|
id: set_flag
|
||||||
|
run: echo "success=true" >> "$GITHUB_OUTPUT"
|
||||||
|
Loading…
Reference in New Issue
Block a user