diff --git a/e2e/actions/deploy-katee/workflowExpected.yml b/e2e/actions/deploy-katee/workflowExpected.yml index 6bd642a1..4fc933cb 100644 --- a/e2e/actions/deploy-katee/workflowExpected.yml +++ b/e2e/actions/deploy-katee/workflowExpected.yml @@ -65,7 +65,7 @@ jobs: docker buildx imagetools create eu.gcr.io/halfpipe-io/cache/halfpipe-team/someImage:${{ env.GIT_REVISION }} --tag eu.gcr.io/halfpipe-io/halfpipe-team/someImage:${{ env.BUILD_VERSION }} docker buildx imagetools create eu.gcr.io/halfpipe-io/cache/halfpipe-team/someImage:${{ env.GIT_REVISION }} --tag eu.gcr.io/halfpipe-io/halfpipe-team/someImage:${{ env.GIT_REVISION }} - name: Repository dispatch - uses: peter-evans/repository-dispatch@v2 + uses: peter-evans/repository-dispatch@v3 with: event-type: docker-push:eu.gcr.io/halfpipe-io/halfpipe-team/someImage token: ${{ secrets.EE_REPOSITORY_DISPATCH_TOKEN }} @@ -127,7 +127,7 @@ jobs: VERY_SECRET: ${{ steps.secrets.outputs.springernature_data_halfpipe-team_another_secret }} - name: 'Notify slack #ee-re (failure)' if: failure() - uses: slackapi/slack-github-action@v1.24.0 + uses: slackapi/slack-github-action@v1.25.0 with: channel-id: '#ee-re' slack-message: '${{ job.status }} for pipeline ${{ github.workflow }} - link to the pipeline: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}' @@ -180,7 +180,7 @@ jobs: VERY_SECRET: ${{ steps.secrets.outputs.springernature_data_halfpipe-team_another_secret }} - name: 'Notify slack #ee-re (failure)' if: failure() - uses: slackapi/slack-github-action@v1.24.0 + uses: slackapi/slack-github-action@v1.25.0 with: channel-id: '#ee-re' slack-message: '${{ job.status }} for pipeline ${{ github.workflow }} - link to the pipeline: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}' diff --git a/e2e/actions/docker-push/workflowExpected.yml b/e2e/actions/docker-push/workflowExpected.yml index f96b22fc..c68dfe48 100644 --- a/e2e/actions/docker-push/workflowExpected.yml +++ b/e2e/actions/docker-push/workflowExpected.yml @@ -100,7 +100,7 @@ jobs: docker buildx imagetools create eu.gcr.io/halfpipe-io/cache/someImage:${{ env.GIT_REVISION }} --tag eu.gcr.io/halfpipe-io/someImage:${{ env.BUILD_VERSION }} docker buildx imagetools create eu.gcr.io/halfpipe-io/cache/someImage:${{ env.GIT_REVISION }} --tag eu.gcr.io/halfpipe-io/someImage:${{ env.GIT_REVISION }} - name: Repository dispatch - uses: peter-evans/repository-dispatch@v2 + uses: peter-evans/repository-dispatch@v3 with: event-type: docker-push:eu.gcr.io/halfpipe-io/someImage token: ${{ secrets.EE_REPOSITORY_DISPATCH_TOKEN }} @@ -186,7 +186,7 @@ jobs: docker buildx imagetools create eu.gcr.io/halfpipe-io/cache/dockerhubusername/someImage:${{ env.GIT_REVISION }} --tag dockerhubusername/someImage:${{ env.BUILD_VERSION }} docker buildx imagetools create eu.gcr.io/halfpipe-io/cache/dockerhubusername/someImage:${{ env.GIT_REVISION }} --tag dockerhubusername/someImage:${{ env.GIT_REVISION }} - name: Repository dispatch - uses: peter-evans/repository-dispatch@v2 + uses: peter-evans/repository-dispatch@v3 with: event-type: docker-push:dockerhubusername/someImage token: ${{ secrets.EE_REPOSITORY_DISPATCH_TOKEN }} @@ -252,7 +252,7 @@ jobs: docker buildx imagetools create eu.gcr.io/halfpipe-io/cache/someImage:${{ env.GIT_REVISION }} --tag eu.gcr.io/halfpipe-io/someImage:${{ env.BUILD_VERSION }} docker buildx imagetools create eu.gcr.io/halfpipe-io/cache/someImage:${{ env.GIT_REVISION }} --tag eu.gcr.io/halfpipe-io/someImage:${{ env.GIT_REVISION }} - name: Repository dispatch - uses: peter-evans/repository-dispatch@v2 + uses: peter-evans/repository-dispatch@v3 with: event-type: docker-push:eu.gcr.io/halfpipe-io/someImage token: ${{ secrets.EE_REPOSITORY_DISPATCH_TOKEN }} @@ -322,7 +322,7 @@ jobs: docker buildx imagetools create eu.gcr.io/halfpipe-io/cache/someImage:${{ env.GIT_REVISION }} --tag eu.gcr.io/halfpipe-io/someImage:${{ env.BUILD_VERSION }} docker buildx imagetools create eu.gcr.io/halfpipe-io/cache/someImage:${{ env.GIT_REVISION }} --tag eu.gcr.io/halfpipe-io/someImage:${{ env.GIT_REVISION }} - name: Repository dispatch - uses: peter-evans/repository-dispatch@v2 + uses: peter-evans/repository-dispatch@v3 with: event-type: docker-push:eu.gcr.io/halfpipe-io/someImage token: ${{ secrets.EE_REPOSITORY_DISPATCH_TOKEN }} @@ -396,7 +396,7 @@ jobs: docker buildx imagetools create eu.gcr.io/halfpipe-io/cache/someImage:${{ env.GIT_REVISION }} --tag eu.gcr.io/halfpipe-io/someImage:${{ env.BUILD_VERSION }} docker buildx imagetools create eu.gcr.io/halfpipe-io/cache/someImage:${{ env.GIT_REVISION }} --tag eu.gcr.io/halfpipe-io/someImage:${{ env.GIT_REVISION }} - name: Repository dispatch - uses: peter-evans/repository-dispatch@v2 + uses: peter-evans/repository-dispatch@v3 with: event-type: docker-push:eu.gcr.io/halfpipe-io/someImage token: ${{ secrets.EE_REPOSITORY_DISPATCH_TOKEN }} diff --git a/e2e/actions/notifications/workflowExpected.yml b/e2e/actions/notifications/workflowExpected.yml index d30ce8af..0d78e977 100644 --- a/e2e/actions/notifications/workflowExpected.yml +++ b/e2e/actions/notifications/workflowExpected.yml @@ -38,21 +38,21 @@ jobs: entrypoint: /bin/sh - name: 'Notify slack #failure1 (failure)' if: failure() - uses: slackapi/slack-github-action@v1.24.0 + uses: slackapi/slack-github-action@v1.25.0 with: channel-id: '#failure1' slack-message: failure msg env: SLACK_BOT_TOKEN: ${{ secrets.EE_SLACK_TOKEN }} - name: 'Notify slack #success1 (success)' - uses: slackapi/slack-github-action@v1.24.0 + uses: slackapi/slack-github-action@v1.25.0 with: channel-id: '#success1' slack-message: success message env: SLACK_BOT_TOKEN: ${{ secrets.EE_SLACK_TOKEN }} - name: 'Notify slack #success2 (success)' - uses: slackapi/slack-github-action@v1.24.0 + uses: slackapi/slack-github-action@v1.25.0 with: channel-id: '#success2' slack-message: success message diff --git a/renderers/actions/actions.go b/renderers/actions/actions.go index 00327712..a80ff78c 100644 --- a/renderers/actions/actions.go +++ b/renderers/actions/actions.go @@ -183,7 +183,7 @@ func notify(notifications manifest.Notifications) (steps Steps) { return Step{ Name: "Notify slack " + channel, - Uses: "slackapi/slack-github-action@v1.24.0", + Uses: "slackapi/slack-github-action@v1.25.0", With: With{ "channel-id": channel, "slack-message": text, diff --git a/renderers/actions/docker_push.go b/renderers/actions/docker_push.go index c3637002..569e71c3 100644 --- a/renderers/actions/docker_push.go +++ b/renderers/actions/docker_push.go @@ -31,7 +31,7 @@ func tags(task manifest.DockerPush) []string { func repositoryDispatch(eventName string) Step { return Step{ Name: "Repository dispatch", - Uses: "peter-evans/repository-dispatch@v2", + Uses: "peter-evans/repository-dispatch@v3", With: With{ "token": githubSecrets.RepositoryDispatchToken, "event-type": "docker-push:" + eventName,