How to automate Release using GitHub Action as well.

name: Releases
on:
  workflow_dispatch:
    inputs:
      version:
        type: string
        required: true
        
jobs:
  release:
    name: Manual Version Up
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: actions/create-release@v1
        env:
          GITHUB_TOKEN: $
        with:
          tag_name: $
          release_name: $
          draft: false
          prerelease: false

❌ Resource not accessible by integration

The problem was solved by changing the Settings > Actions > General > Workflow permissions for the repository in question from Read repository contents permission to Read and write permissions

image