Skip to content

Commit

Permalink
Add language family workflow to publish all releases.
Browse files Browse the repository at this point in the history
- only manual dispatch for now until we are comfortable auto-publishing language family buildpacks.
  • Loading branch information
robdimsdale committed Jul 18, 2024
1 parent 14c53b3 commit ddd137c
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions language-family/.github/workflows/publish-releases.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Publish Draft Releases

on:
workflow_dispatch: {}

concurrency:
group: publish-release

jobs:
publish:
name: Publish
runs-on: ubuntu-22.04
steps:
- name: Publish Draft Release With Highest Semantic Version
id: drafts
env:
GITHUB_TOKEN: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }}
uses: paketo-buildpacks/github-config/actions/release/publish-drafts@main
with:
repo: ${{ github.repository }}

failure:
name: Alert on Failure
runs-on: ubuntu-22.04
needs: [ publish ]
if: ${{ always() && needs.publish.result == 'failure' }}
steps:
- name: File Failure Alert Issue
uses: paketo-buildpacks/github-config/actions/issue/file@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
repo: ${{ github.repository }}
label: "failure:release"
comment_if_exists: true
issue_title: "Failure: Publish draft releases"
issue_body: |
Publish All Draft Releases workflow [failed](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}).
comment_body: |
Another failure occurred: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}

0 comments on commit ddd137c

Please sign in to comment.