Skip to content

Commit

Permalink
Fix workflow
Browse files Browse the repository at this point in the history
yukirii committed Apr 4, 2021
1 parent 761f524 commit 0a903e0
Showing 2 changed files with 15 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/pull-request-closed.yml
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ on:
types: [closed]

jobs:
build-and-push:
pull-request-closed:
if: startsWith(github.event.pull_request.state, 'closed')
runs-on: ubuntu-latest
steps:
@@ -14,4 +14,5 @@ jobs:
- name: Show message
run: |
echo "pull-${{ github.event.pull_request.number }}: closed"
echo "${{ github.event.pull_request }}"
15 changes: 13 additions & 2 deletions .github/workflows/pull-request-opened.yml
Original file line number Diff line number Diff line change
@@ -5,11 +5,22 @@ on:
types: [assigned, opened, synchronize, reopened]

jobs:
build-and-push:
pull-request-open:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Show message
run: |
echo "pull-${{ github.event.pull_request.number }}: opened"
echo "PR Num: ${{ github.event.pull_request.number }}"
echo "URL: ${{ github.event.pull_request.url }}"
echo "user.login: ${{ github.event.pull_request.user.login }}"
echo "user.id: ${{ github.event.pull_request.user.id }}"
echo "user.site_admin: ${{ github.event.pull_request.user.site_admin }}"
echo "base.ref: ${{ github.event.pull_request.base.ref }}"
echo "base.repo.fork: ${{ github.event.pull_request.base.repo.fork }}"
echo "head.ref: ${{ github.event.pull_request.head.ref }}"
echo "head.repo.fork: ${{ github.event.pull_request.head.repo.fork }}"

0 comments on commit 0a903e0

Please sign in to comment.