This repository was 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
Description
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
Metadata
Metadata
Assignees
Labels
No labels