Skip to content

Commit

Permalink
README: add a note about repository secrets not working for pull_requ…
Browse files Browse the repository at this point in the history
…est runs
  • Loading branch information
jhenstridge committed Apr 27, 2021
1 parent aaae009 commit 96aff83
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,14 @@ as a repository secret:
4. set the name to `UA_TOKEN` (or whatever is referenced in the workflow),
and paste the UA token as the value.

Note that repository secrets are not available to workflows triggered
by pull requests to public repositories.

An example workflow with UA token stored as secret `UA_TOKEN`:

```yaml
...
- uses: snapcore/action-build@v1
with:
path: path-to-snapcraft-project
ua-token: ${{ secrets.UA_TOKEN }}
```

0 comments on commit 96aff83

Please sign in to comment.