Skip to content

Commit

Permalink
ci: Update release-automation.yaml to enable completion
Browse files Browse the repository at this point in the history
**Description**:

Uses the newly added GPG_KEY_CONTENTS, GPG_KEY_PASSPHRASE, and
GH_ACCESS_TOKEN github actions secrets to enable the workflow to run.

**Related Issue(s)**:

Related to: #235

Signed-off-by: Roger Barker <[email protected]>
  • Loading branch information
rbarkerSL committed Oct 8, 2024
1 parent a3a97cc commit f272102
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/release-automation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ on:

permissions:
contents: write
issues: write
actions: write

defaults:
run:
Expand Down Expand Up @@ -80,7 +80,7 @@ jobs:
with:
fetch-depth: 0
ref: main
token: ${{ secrets.HEDERA_BOT_TOKEN }}
token: ${{ secrets.GH_ACCESS_TOKEN }}

- name: Import GPG Key
id: gpg_importer
Expand All @@ -89,8 +89,8 @@ jobs:
git_commit_gpgsign: true
git_tag_gpgsign: true
git_user_signingkey: true
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
gpg_private_key: ${{ secrets.GPG_KEY_CONTENTS }}
passphrase: ${{ secrets.GPG_KEY_PASSPHRASE }}

- name: Install JDK
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
Expand Down Expand Up @@ -128,7 +128,7 @@ jobs:
with:
milestone_name: ${{ steps.version_parser.outputs.release }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}

- name: Create Release Notes
if: ${{ steps.milestone.outputs.milestone_id != '' }}
Expand Down Expand Up @@ -158,7 +158,7 @@ jobs:
omitBody: ${{ steps.milestone.outputs.milestone_id == '' }}
prerelease: ${{ steps.version_parser.outputs.prerelease != '' }}
tag: ${{ env.RELEASE_TAG }}
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GH_ACCESS_TOKEN }}

create_pr:
name: Create PR
Expand All @@ -178,7 +178,9 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 0
ref: main
token: ${{ secrets.GH_ACCESS_TOKEN }}

- name: Import GPG Key
id: gpg_importer
Expand All @@ -187,8 +189,8 @@ jobs:
git_commit_gpgsign: true
git_tag_gpgsign: true
git_user_signingkey: true
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
gpg_private_key: ${{ secrets.GPG_KEY_CONTENTS }}
passphrase: ${{ secrets.GPG_KEY_PASSPHRASE }}

- name: Install JDK
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
Expand Down Expand Up @@ -218,4 +220,4 @@ jobs:
delete-branch: true
signoff: true
title: ${{ needs.release.outputs.pr_title }}
token: ${{ secrets.HEDERA_BOT_TOKEN }}
token: ${{ secrets.GH_ACCESS_TOKEN }}

0 comments on commit f272102

Please sign in to comment.