action-gh-release icon indicating copy to clipboard operation
action-gh-release copied to clipboard

Error: Cannot read properties of undefined (reading 'data')

Open qianbinbin opened this issue 10 months ago • 4 comments

Hello,

A few days ago my scheduled action failed with Error: Cannot read properties of undefined (reading 'data'), for details see https://github.com/qianbinbin/fdroid-priv-ext/actions/runs/5779647317/job/15662229381

It doesn't reproduce for now, and before that the action ran for months smoothly.

My simple script:

      - name: Release
        id: release
        if: ${{ steps.create.outputs.VERSION != '' }}
        uses: softprops/action-gh-release@v1
        with:
          tag_name: ${{ steps.create.outputs.VERSION }}
          body: ${{ steps.create.outputs.CHANGELOG }}
          files: build/*

The full version is here.

Any help is appreciated.

qianbinbin avatar Aug 09 '23 13:08 qianbinbin

same issue

goforu avatar Dec 05 '23 13:12 goforu

It turns out the tag_name should follow certain convention, which means you have to add 'v' at the start. In my case, I only give 1.x.x.

goforu avatar Dec 05 '23 13:12 goforu

It turns out the tag_name should follow certain convention, which means you have to add 'v' at the start. In my case, I only give 1.x.x.

Thanks for your reply, but if so why it ran for months very well?

My tag_name was like 20231205, without the starting v as well. It doesn't seem to be a compulsory convention.

qianbinbin avatar Dec 05 '23 13:12 qianbinbin

We are facing the same problem.. job ran fine months ago, now getting the error. we use vX.X.X naming scheme

mborejdo avatar Dec 07 '23 12:12 mborejdo