Wandalen / wretry.action

Retry action for Github CI
MIT License
93 stars 20 forks source link

Map.pure should have no fields : "key_token" #121

Closed dannytsang closed 5 months ago

dannytsang commented 10 months ago

I'm trying to use retry with http request and adding JSON to a the http payload. I get the above error message. Does it mean I cannot have key value pays in my with?

deploy:
    name: "Deploy changes"
    needs: [ha-stable-check]
    runs-on: ubuntu-latest
    steps:
      - name: 🔌 Tailscale
        uses: tailscale/github-action@v2
        with:
          authkey: ${{ secrets.TAILSCALE_AUTHKEY }}
      - name: 🚚 Deploying
        uses: Wandalen/wretry.action@master
        with:
          action: fjogeleit/http-request-action@master
          with: |
            url: '${{ secrets.DEPLOYMENT_URL }}'
            method: POST
            customHeaders: '{"Content-Type":"application/json"}'
            data: '{ "key_token":"${{ secrets.PULL_KEY }}" }'
          attempt_limit: 3
          attempt_delay: 2000
dmvict commented 10 months ago

Hello @dannytsang

I'll check the issue when I'm available.

dmvict commented 5 months ago

Hello @dannytsang

Can you try the new version of action and give me a feedback? I made a lot of changes and it can solve the issue.

dannytsang commented 5 months ago

@dmvict tested with v2.2.0 and it works!

Thank you very much and happy for this to be closed.