From 77d24d79d8f1f50c90e8df2e7eb4c2c30b2afa86 Mon Sep 17 00:00:00 2001 From: Sebastian Copei Date: Tue, 16 Mar 2021 11:40:31 +0100 Subject: [PATCH] fix(chore): typos --- README.md | 2 +- main.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 609aca6..f97ed9e 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ jobs: release: runs-on: ubuntu-latest steps: - - uses: sekassel-research/actions-rancher-update@2.0.1 + - uses: sekassel-research/actions-rancher-update@2.0.2 with: rancher_url: https://rancher.test.de rancher_token: ${{ secrets.RANCHER_TOKEN }} diff --git a/main.js b/main.js index 868b7fa..2947d6f 100644 --- a/main.js +++ b/main.js @@ -14,7 +14,7 @@ async function main() { const dockerImage = core.getInput('docker_image', {required: true}); await axios.patch( - `${rancherUrl}/k8s/clusters/${clusterId}/api/apps/v1/namespaces/${namespace}/deployments/${deployment}`, + `${rancherUrl}/k8s/clusters/${clusterId}/apis/apps/v1/namespaces/${namespace}/deployments/${deployment}`, [ { op: 'replace', @@ -31,7 +31,7 @@ async function main() { ); await axios.post( - `${rancherUrl}/v3/project/${clusterId}:${projectId}/workloads/deployment:${namespace}:${deployment}?action=redeploy`, + `${rancherUrl}/v3/projects/${clusterId}:${projectId}/workloads/deployment:${namespace}:${deployment}?action=redeploy`, {}, { headers: {