Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #5 from transcend-io/dipack/version
Browse files Browse the repository at this point in the history
GHA workflow update to run a release manually.
  • Loading branch information
dipack95 authored Nov 27, 2023
2 parents c8c3b9d + b95c38e commit 6e6a7e8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 282 deletions.
76 changes: 0 additions & 76 deletions .github/workflows/on-pr-changelog.yml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/on-pr-default.yml

This file was deleted.

156 changes: 0 additions & 156 deletions .github/workflows/on-pr.yml

This file was deleted.

31 changes: 9 additions & 22 deletions .github/workflows/on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,37 +6,24 @@ permissions:
pull-requests: write

on:
release:
types:
- released
workflow_dispatch:
inputs:
version:
required: true
type: string
description: Pulumi override verison to release

concurrency: release

jobs:
info:
name: gather
runs-on: ubuntu-latest
outputs:
version: "${{ fromJSON(steps.version.outputs.version) }}"
steps:
- uses: actions/checkout@v3
# Uses release ref (tag)
- name: Info
id: version
run: |
TAG="${{ github.event.release.tag_name }}"
PULUMI_VERSION="${TAG#v}" # remove prefix
./.github/scripts/set-output version "${PULUMI_VERSION}"
release:
name: release
needs: [info]
uses: ./.github/workflows/release.yml
with:
ref: ${{ github.event.release.tag_name }}
version: ${{ needs.info.outputs.version }}
release-notes: ${{ github.event.release.body }}
ref: ${{ github.ref }}
version: ${{ inputs.version }}
release-notes: Releasing version ${{ inputs.version }}
queue-merge: true
run-dispatch-commands: true
secrets: inherit

0 comments on commit 6e6a7e8

Please sign in to comment.