yaml-update-action: Error: HttpError: Reference already exists

I am running this action in a an environment with many jobs running in parallel on GitHub actions but at least 3 in every 10 of the jobs fail with the error Error: HttpError: Reference already exists. I tried to change the check-out depth as suggested in a similar issue(#531) but the issue still remains. image Any help?

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15 (8 by maintainers)

Most upvoted comments

okay, great. Thanks for the feedback

I was able to solve the issue using the Wandalen/wretry.action retry action on all the update all occurrences.

      - name: Update file
        uses: Wandalen/wretry.action@master
        with:
          action: fjogeleit/yaml-update-action@main
          with: |
            valueFile: "k8s/app6/values.yaml"
            propertyPath: "image.tag"
            value: ${{ env.imageTag }}
            branch: myBranch
            message: "Update app6 image tag to ${{ env.imageTag }}"