softprops / action-gh-release

📦 :octocat: GitHub Action for creating GitHub Releases
MIT License
3.91k stars 440 forks source link

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

Open qianbinbin opened 11 months ago

qianbinbin commented 11 months ago

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.

goforu commented 7 months ago

same issue

goforu commented 7 months ago

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.

qianbinbin commented 7 months ago

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.

mborejdo commented 7 months ago

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