jsmrcaga / action-netlify-deploy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

deploy_alias is not a valid input and is not respected.

mwolfhoffman opened this issue · comments

I am getting a warning that deploy_alias is not a valid input.
My project then deploys to Netlify, but without the alias.

Here is the warning text:

Unexpected input(s) 'deploy_alias', valid inputs are ['entryPoint', 'args', 'NETLIFY_AUTH_TOKEN', 'NETLIFY_SITE_ID', 'NETLIFY_DEPLOY_TO_PROD', 'NETLIFY_DEPLOY_MESSAGE', 'build_directory', 'functions_directory']

My yaml file:

      
      - name: Print Branch Name
        run: echo ${BRANCH_NAME}

      - name: 'Deploy to Netlify'
        uses: jsmrcaga/action-netlify-deploy@v1.1.0
        with:
          NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
          NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
          NETLIFY_DEPLOY_MESSAGE: Deploying ${{ env.BRANCH_NAME }} to Netlify
          build_directory: dist
          deploy_alias: ${{ env.BRANCH_NAME }}

This was an error on v 1.1.0. I tried again with 1.5.0 and it is fixed. Closing issue.

@mwolfhoffman thank you!