Azure / pipelines

Enable GitHub developers to trigger Azure Pipelines from a GitHub Actions workflow
MIT License
75 stars 86 forks source link

Error running pipeline from action #16

Open searledan opened 4 years ago

searledan commented 4 years ago

Information

When trying to run a pipeline from a GitHub action the below error is produced. I can confirm the URL works as I use it to access my project. The project is private, not sure if that helps.

Error

##[error]Failed to parse project url: "https://dev.azure.com/powerful-it/Monitoring/".
Specify the valid project url (eg, https://dev.azure.com/organization/project-name or https://server.example.com:8080/tfs/DefaultCollection/project-name)) and try again.

Action

pipeline:  
  name: 'DevOps Pipline' 
  needs: [terraform]  
  runs-on: ubuntu-latest  

defaults:
  run:
  working-directory: ./mon-app

steps:
- name: Run
   uses: Azure/pipelines@v1
   with:
     azure-devops-project-url: 'https://dev.azure.com/powerful-it/Monitoring/'
     azure-pipeline-name: 'app'
     azure-devops-token: '${{ secrets.AZURE_DEVOPS_TOKEN }}'`
abatishchev commented 3 years ago

What didn't work for me:

azure-devops-project-url: 'https://dev.azure.com/abatishchev/OpenSource/'
azure-devops-project-url: https://dev.azure.com/abatishchev/OpenSource/

What worked:

azure-devops-project-url: https://dev.azure.com/abatishchev/OpenSource

Note the lack of the trailing slash. But why?!