[Snyk] Upgrade angulartics2 from 14.0.0 to 14.1.0 #1384
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pull Request - Clean Up | |
on: | |
pull_request_target: | |
types: [closed] | |
env: | |
GH_TOKEN: ${{ github.token }} | |
jobs: | |
remove-deployment: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository files | |
uses: actions/checkout@v4 | |
- name: Stop container and remove folder | |
uses: appleboy/ssh-action@master | |
continue-on-error: true | |
with: | |
host: ${{ secrets.SSH_HOST }} | |
username: ${{ secrets.SSH_USERNAME }} | |
key: ${{ secrets.SSH_KEY }} | |
script: | | |
cd /var/docker/pr-${{ github.event.number }} | |
docker compose down | |
cd .. | |
rm -r pr-${{ github.event.number }} | |
- name: Delete Docker tag | |
continue-on-error: true | |
run: | | |
token=$(curl -s -L 'https://hub.docker.com/v2/users/login' -H 'Content-Type: application/json' -d '{ "username": "${{ secrets.DOCKER_USERNAME }}", "password": "${{ secrets.DOCKER_PASSWORD }}"}') | |
token=${token#*\"token\":\"} | |
token=${token%%\"*} | |
curl -s -L -X DELETE "https://hub.docker.com/v2/namespaces/aamdigital/repositories/ndb-server/tags/pr-${{ github.event.number }}" -H "Authorization: Bearer $token" | |
- name: Delete github caches for current branch | |
run: | | |
echo "Needs debugging" | |
echo github.base_ref ${{ github.base_ref }} | |
echo github ${{ github }} | |
echo github.ref ${{ github.ref }} | |
echo github.ref_name ${{ github.ref_name }} | |
echo github.actor ${{ github.actor }} | |
echo github.triggering_actor ${{ github.triggering_actor }} | |
echo github.base_ref ${{ github.base_ref }} | |
echo github.head_ref ${{ github.head_ref }} | |
echo github.event_name ${{ github.event_name }} | |
echo github.event ${{ github.event }} | |
echo github.event.number ${{ github.event.number }} | |
gh cache list -L 200 --ref "refs/pull/${{ github.event.number }}/merge" --json id --jq '.[] | .id' | while read -r id; do | |
gh cache delete "$id" | |
done |