mirror of
https://github.com/peter-evans/create-pull-request.git
synced 2026-12-06 05:12:56 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0f423da02c | ||
|
|
9573f479a0 | ||
|
|
eb4cde120d | ||
|
|
25902ccdd1 | ||
|
|
39b337e8bb | ||
|
|
7e70d8e63c | ||
|
|
1a640f5b01 | ||
|
|
9faa8dc1d9 |
No files matched your search
@@ -1 +0,0 @@
|
|||||||
* @peter-evans
|
|
||||||
@@ -31,18 +31,16 @@ jobs:
|
|||||||
path: dist
|
path: dist
|
||||||
|
|
||||||
test:
|
test:
|
||||||
|
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository
|
||||||
needs: [build]
|
needs: [build]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
target: [built, committed]
|
target: [built, committed]
|
||||||
steps:
|
steps:
|
||||||
- if: github.event_name == 'push'
|
- uses: actions/checkout@v2
|
||||||
uses: actions/checkout@v2
|
|
||||||
- if: github.event_name == 'pull_request'
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.head_ref }}
|
ref: master
|
||||||
- if: matrix.target == 'built' || github.event_name == 'pull_request'
|
- if: matrix.target == 'built' || github.event_name == 'pull_request'
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v2
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -1,19 +0,0 @@
|
|||||||
name: Update Docker Hub Description
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
paths:
|
|
||||||
- README.md
|
|
||||||
- .github/workflows/dockerhub-description.yml
|
|
||||||
jobs:
|
|
||||||
dockerHubDescription:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v1
|
|
||||||
- name: Docker Hub Description
|
|
||||||
uses: peter-evans/dockerhub-description@v2.1.0
|
|
||||||
env:
|
|
||||||
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
||||||
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
|
|
||||||
DOCKERHUB_REPOSITORY: peterevans/create-pull-request
|
|
||||||
@@ -206,7 +206,7 @@ jobs:
|
|||||||
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
|
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
|
||||||
```
|
```
|
||||||
|
|
||||||
This reference configuration will create pull requests that look like this:
|
An example based on the above reference configuration creates pull requests that look like this:
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|||||||
@@ -30,6 +30,8 @@ inputs:
|
|||||||
description: 'Deprecated. See README for details.'
|
description: 'Deprecated. See README for details.'
|
||||||
project-column:
|
project-column:
|
||||||
description: 'Deprecated. See README for details.'
|
description: 'Deprecated. See README for details.'
|
||||||
|
draft:
|
||||||
|
description: 'Create a draft pull request'
|
||||||
branch:
|
branch:
|
||||||
description: 'The pull request branch name.'
|
description: 'The pull request branch name.'
|
||||||
request-to-parent:
|
request-to-parent:
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 414 KiB After Width: | Height: | Size: 126 KiB |
@@ -90,7 +90,7 @@ Workflows triggered by `pull_request` events will by default check out a [merge
|
|||||||
|
|
||||||
### Restrictions on forked repositories
|
### Restrictions on forked repositories
|
||||||
|
|
||||||
GitHub Actions have imposed restrictions on events triggered by a forked repository. For example, the `pull_request` event triggered by a fork opening a pull request in the upstream repository.
|
GitHub Actions have imposed restrictions on events triggered by a forked repository. Specifically, the `pull_request` event triggered by a fork opening a pull request in the upstream repository.
|
||||||
|
|
||||||
- Events from forks cannot access secrets, except for for the default `GITHUB_TOKEN`.
|
- Events from forks cannot access secrets, except for for the default `GITHUB_TOKEN`.
|
||||||
> With the exception of GITHUB_TOKEN, secrets are not passed to the runner when a workflow is triggered from a forked repository.
|
> With the exception of GITHUB_TOKEN, secrets are not passed to the runner when a workflow is triggered from a forked repository.
|
||||||
@@ -101,7 +101,7 @@ GitHub Actions have imposed restrictions on events triggered by a forked reposit
|
|||||||
|
|
||||||
[GitHub Actions: Permissions for the GITHUB_TOKEN](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/authenticating-with-the-github_token#permissions-for-the-github_token)
|
[GitHub Actions: Permissions for the GITHUB_TOKEN](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/authenticating-with-the-github_token#permissions-for-the-github_token)
|
||||||
|
|
||||||
These restrictions mean that during a `pull_request` event triggered by a forked repository the action will be unable to commit changes to a branch.
|
These restrictions mean that during a `pull_request` event triggered by a forked repository, actions have no write access to GitHub resources and will fail on attempt.
|
||||||
|
|
||||||
A job condition can be added to prevent workflows from executing when triggered by a repository fork.
|
A job condition can be added to prevent workflows from executing when triggered by a repository fork.
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user