Compare commits

...

8 Commits

Author SHA1 Message Date
Peter Evans
0f423da02c Merge pull request #315 from peter-evans/input-def
Add missing draft input definition
2020-05-17 17:55:03 +09:00
Peter Evans
9573f479a0 Add missing draft input definition 2020-05-17 17:47:54 +09:00
Peter Evans
eb4cde120d Update documentation 2020-05-17 14:42:46 +09:00
Peter Evans
25902ccdd1 Remove dockerhub-description workflow 2020-05-16 14:36:18 +09:00
Peter Evans
39b337e8bb Remove codeowners 2020-05-14 10:19:06 +09:00
Peter Evans
7e70d8e63c Skip test job for pull requests from forks 2020-05-13 17:25:18 +09:00
Peter Evans
1a640f5b01 Update README 2020-05-11 14:31:26 +09:00
Peter Evans
9faa8dc1d9 Update pull request example image 2020-05-11 14:28:02 +09:00
7 changed files with 8 additions and 28 deletions

1
.github/CODEOWNERS vendored
View File

@@ -1 +0,0 @@
* @peter-evans

View File

@@ -31,18 +31,16 @@ jobs:
path: dist
test:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository
needs: [build]
runs-on: ubuntu-latest
strategy:
matrix:
target: [built, committed]
steps:
- if: github.event_name == 'push'
uses: actions/checkout@v2
- if: github.event_name == 'pull_request'
uses: actions/checkout@v2
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
ref: master
- if: matrix.target == 'built' || github.event_name == 'pull_request'
uses: actions/download-artifact@v2
with:

View File

@@ -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

View File

@@ -206,7 +206,7 @@ jobs:
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:
![Pull Request Example](docs/assets/pull-request-example.png)

View File

@@ -30,6 +30,8 @@ inputs:
description: 'Deprecated. See README for details.'
project-column:
description: 'Deprecated. See README for details.'
draft:
description: 'Create a draft pull request'
branch:
description: 'The pull request branch name.'
request-to-parent:

Binary file not shown.

Before

Width:  |  Height:  |  Size: 414 KiB

After

Width:  |  Height:  |  Size: 126 KiB

View File

@@ -90,7 +90,7 @@ Workflows triggered by `pull_request` events will by default check out a [merge
### 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`.
> 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)
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.