Skip to content

Commit 8696d4d

Browse files
committed
Merge branch 'master' into dev
2 parents 90bff0f + a904535 commit 8696d4d

1 file changed

Lines changed: 19 additions & 4 deletions

File tree

.github/workflows/release.yaml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,29 @@ jobs:
8989
env:
9090
NEW_VERSION: ${{ needs.prepare.outputs.new_version }}
9191
steps:
92-
# Generate token from GitHub App (bypasses branch protection rulesets)
93-
- name: Generate GitHub App token
92+
# Token for galaxyproject repos: push to master/dev, create tag + release.
93+
# No `owner:` → defaults to this repo's owner (galaxyproject). Bypasses
94+
# branch protection rulesets.
95+
- name: Generate GitHub App token (galaxyproject)
9496
id: app-token
9597
uses: actions/create-github-app-token@v1
9698
with:
9799
app-id: ${{ secrets.HELM_UPDATER_APP_ID }}
98100
private-key: ${{ secrets.HELM_UPDATER_PKEY }}
99-
repositories: galaxy-helm,helm-charts,galaxy-k8s-boot
101+
repositories: galaxy-helm
102+
103+
# Separate token for the CloudVE org, used only to publish the packaged
104+
# chart. A single installation token cannot span two orgs, so this is its
105+
# own call with `owner: CloudVE`. Requires the App to be installed on the
106+
# CloudVE org with access to helm-charts.
107+
- name: Generate GitHub App token (CloudVE)
108+
id: helm-charts-token
109+
uses: actions/create-github-app-token@v1
110+
with:
111+
app-id: ${{ secrets.HELM_UPDATER_APP_ID }}
112+
private-key: ${{ secrets.HELM_UPDATER_PKEY }}
113+
owner: CloudVE
114+
repositories: helm-charts
100115

101116
- uses: actions/checkout@v4
102117
with:
@@ -152,7 +167,7 @@ jobs:
152167
153168
- name: Push to CloudVE/helm-charts
154169
env:
155-
APP_TOKEN: ${{ steps.app-token.outputs.token }}
170+
APP_TOKEN: ${{ steps.helm-charts-token.outputs.token }}
156171
run: |
157172
git clone https://x-access-token:${APP_TOKEN}@github.com/CloudVE/helm-charts.git /tmp/helm-charts
158173
cp /tmp/galaxy-${NEW_VERSION}.tgz /tmp/helm-charts/

0 commit comments

Comments
 (0)