@cryptotaxi247 / netdata-1 / commits / bbcfd952f

Fix name of PackageCLoud API token secret in workflows. (#10828)

It0s easier to rename it in the workflows than in the repo configuration.

Austin S. Hemmelgarn committed Mar 22, 2021 at 12:01 UTC bbcfd952f8ade178e2e17202cd9dfbd2e8f569de
1 file changed +3 -3
.github/workflows/packaging.yml
+3 -3
@@ -116,17 +116,17 @@ jobs:
116 shell: bash
117 run: |
118 # This figures out the distribution ID for the upload.
119 - 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 }})"
119 + 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 }})"
120 for pkgfile in artifacts/*.${FORMAT} ; do
121 curl -F "package[distro_version_id]=${BUILD_ID}" \
122 -F "package[package_file]=@${pkgfile}" \
123 - https://${{ secrets.PACKAGE_CLOUD_API_TOKEN }}:@packagecloud.io/api/v1/repos/${{ env.repo }}/packages.json || exit 1
123 + https://${{ secrets.PACKAGE_CLOUD_API_KEY }}:@packagecloud.io/api/v1/repos/${{ env.repo }}/packages.json || exit 1
124 - name: Clean
125 if: github.event_name == 'workflow_dispatch'
126 shell: bash
127 env:
128 REPO: ${{ env.repo }}
129 - PKG_CLOUD_TOKEN: ${{ secrets.PACKAGE_CLOUD_API_TOKEN }}
129 + PKG_CLOUD_TOKEN: ${{ secrets.PACKAGE_CLOUD_API_KEY }}
130 PACKAGE_CLOUD_RETENTION_DAYS: ${{ env.pkg_retention_days }}
131 run: .github/scripts/old_package_purging.sh
132 - name: Failure Notification