cURL request not working in GitHub actions, works locally

4k views Asked by At

I’m attempting to make a cURL patch request via a GitHub action that executes when I make a push. The cURL call works perfectly when I execute it in Windows shell, but does nothing when I include it in a yaml file in my workflow. To be more specific, the GitHub Action actually succeeds, just the patch request clearly doesn’t go through. I’m directly entering my token and other info so I know the problem isn’t with secrets or something like that. Help appreciated!

on: 
  push: 
   
jobs: 
  updates_databricks_repos: 
    runs-on: ubuntu-latest 
    steps: 
      - name: databricks curl call 
        run: | 
          curl -n -X PATCH "https://adb-WORKSPACEHERE.azuredatabricks.net/api/2.0/repos/REPONUMHERE" \ 
            -H "Authorization: Bearer TOKENHERE" -d '{"branch": "Development"}' 
0

There are 0 answers