summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAustin S. Hemmelgarn <austin@netdata.cloud>2021-03-22 12:01:10 -0400
committerGitHub <noreply@github.com>2021-03-22 12:01:10 -0400
commitbbcfd952f8ade178e2e17202cd9dfbd2e8f569de (patch)
tree0fdb4e2af82d9827f06d5928347991282c35c7f0
parentdd612974c2396d0aca811d091430c7d158586c0c (diff)
Fix name of PackageCLoud API token secret in workflows. (#10828)
It0s easier to rename it in the workflows than in the repo configuration.
-rw-r--r--.github/workflows/packaging.yml6
1 files changed, 3 insertions, 3 deletions
diff --git a/.github/workflows/packaging.yml b/.github/workflows/packaging.yml
index 6eb327af12..c1dce5d6f0 100644
--- a/.github/workflows/packaging.yml
+++ b/.github/workflows/packaging.yml
@@ -116,17 +116,17 @@ jobs:
shell: bash
run: |
# This figures out the distribution ID for the upload.
- DIST_ID="$(curl https://${{ secrets.PACKAGE_CLOUD_API_TOKEN }}:@packagecloud.io/api/v1/distributions.json | python3 .github/scripts/parse_packagecloud_dist_id.py ${{ matrix.format }} ${{ matrix.pkgclouddistro }} ${{ matrix.pkgcloudversion }})"
+ DIST_ID="$(curl https://${{ secrets.PACKAGE_CLOUD_API_KEY }}:@packagecloud.io/api/v1/distributions.json | python3 .github/scripts/parse_packagecloud_dist_id.py ${{ matrix.format }} ${{ matrix.pkgclouddistro }} ${{ matrix.pkgcloudversion }})"
for pkgfile in artifacts/*.${FORMAT} ; do
curl -F "package[distro_version_id]=${BUILD_ID}" \
-F "package[package_file]=@${pkgfile}" \
- https://${{ secrets.PACKAGE_CLOUD_API_TOKEN }}:@packagecloud.io/api/v1/repos/${{ env.repo }}/packages.json || exit 1
+ https://${{ secrets.PACKAGE_CLOUD_API_KEY }}:@packagecloud.io/api/v1/repos/${{ env.repo }}/packages.json || exit 1
- name: Clean
if: github.event_name == 'workflow_dispatch'
shell: bash
env:
REPO: ${{ env.repo }}
- PKG_CLOUD_TOKEN: ${{ secrets.PACKAGE_CLOUD_API_TOKEN }}
+ PKG_CLOUD_TOKEN: ${{ secrets.PACKAGE_CLOUD_API_KEY }}
PACKAGE_CLOUD_RETENTION_DAYS: ${{ env.pkg_retention_days }}
run: .github/scripts/old_package_purging.sh
- name: Failure Notification