How to fetch the tag that generated the action

Hello, we are doing a workflow here where we need to get the tag that triggered the action, for example when the release is done I want to get the tag that it came from to download the image of that tag

name: production
on:
  release:
    types: [released]

env:
  REGISTRY: ghcr.io
  IMAGE_NAME: ${{ github.repository }}
  TAG: GET_TAG

jobs:
 
  deploy:
    runs-on: ubuntu-latest
    steps:
      - name: Deployment
        uses: appleboy/ssh-action@master
        with:
          host: ${{ secrets.REMOTE_HOST }}
          key: ${{ secrets.SERVER_SSH_KEY }}
          username: ${{ secrets.REMOTE_USER }}
          port: ${{ secrets.SSH_PORT }}
          script: |
            echo ${{ secrets.GITHUB_TOKEN }} | docker login ${{ env.REGISTRY }} -u ${{ github.actor }} --password-stdin
            docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{env.TAG}}
            docker stop ${{ secrets.PROD_CONTAINER }} || true
            docker rm ${{ secrets.PROD_CONTAINER }} || true
            docker run -d --name ${{ secrets.PROD_CONTAINER }} -p 105:80 --restart=always ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{env.TAG}}

Per:
https://docs.github.com/en/actions/reference/events-that-trigger-workflows#release

it looks like you want GITHUB_REF (you’ll want to check its structure before using it…)