Skip to content

Commit

Permalink
Merge 1cd3fb9 into 41084c6
Browse files Browse the repository at this point in the history
  • Loading branch information
fiddlermikey authored Jul 15, 2024
2 parents 41084c6 + 1cd3fb9 commit 5ee117a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 7 deletions.
16 changes: 15 additions & 1 deletion .github/workflows/kf-post-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
token:
description: token
required: true
inputs:
branchname:
description: Release branch tag being merged to main
required: true
type: string

jobs:
clean-releases:
Expand All @@ -13,4 +18,13 @@ jobs:
- name: Remove prereleases
uses: Keyfactor/action-delete-prereleases@v1.0
with:
repo-token: ${{ secrets.V2BUILDTOKEN }}
token: ${{ secrets.token }}

- name: Create PR to main
uses: Keyfactor/action-pull-request@v0.5.5
with:
token: ${{ secrets.token }}
source_branch: ${{ inputs.branchname }}
target_branch: main
title: Merge ${{ inputs.branchname }} to main
body: "Merge ${{ inputs.branchname }} to main - Automated PR"
14 changes: 8 additions & 6 deletions .github/workflows/starter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,12 @@ jobs:
secrets:
token: ${{ secrets.scan_token }}

#call-post-release-cleanup-workflow:
# needs: [call-dotnet-build-and-release-workflow, call-assign-from-json-workflow, call-create-github-release-workflow]
# if: needs.call-create-github-release-workflow.outputs.IS_FULL_RELEASE == 'True'
# uses: Keyfactor/actions/.github/workflows/kf-post-release.yml@v2
# secrets:
# token: ${{ secrets.token }}
call-post-release-cleanup-workflow:
needs: [call-assign-from-json-workflow, call-create-github-release-workflow]
if: needs.call-create-github-release-workflow.outputs.IS_FULL_RELEASE == 'True'
uses: Keyfactor/actions/.github/workflows/kf-post-release.yml@post-release-tasks_ab#56816
secrets:
token: ${{ secrets.token }}
with:
branchname: ${{ github.event.pull_request.head.ref }}

0 comments on commit 5ee117a

Please sign in to comment.