Skip to content
This repository has been archived by the owner on Mar 4, 2021. It is now read-only.

Can I create a release to a public repo from a private repo #107

Open
xhliu opened this issue Nov 22, 2020 · 0 comments
Open

Can I create a release to a public repo from a private repo #107

xhliu opened this issue Nov 22, 2020 · 0 comments

Comments

@xhliu
Copy link

xhliu commented Nov 22, 2020

There are owner & repo parameters. Can they be used to create a release to a different repo from where the action runs from? Say I have a public repo A and a private one B. Github action runs in B and release is in A.

      - name: Create Release
        id: create_release
        uses: actions/create-release@v1
        env:
          GITHUB_TOKEN: ${{ secrets.PAT }} # A personal access token from issue #103 
        with:
          tag_name: ${{ github.ref }}
          release_name: Release ${{ github.ref }}
          draft: false
          prerelease: false
          owner: ownerA
          repo: A

yields error
Error: Validation Failed: {"resource":"Release","code":"custom","field":"tag_name","message":"tag_name is not a valid tag"}, {"resource":"Release","code":"custom","message":"Published releases must have a valid tag"}, {"resource":"Release","code":"invalid","field":"target_commitish"}

#103 PAT

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant