Update workflows

This commit is contained in:
Peter Evans 2019-09-30 18:57:49 +09:00
parent ff7ec1c208
commit 7556cef424
2 changed files with 48 additions and 40 deletions

View file

@ -13,10 +13,10 @@ jobs:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- name: Create report file - name: Create report file
if: matrix.platform == 'ubuntu-latest' || matrix.platform == 'macos-latest' if: matrix.platform == 'ubuntu-latest' || matrix.platform == 'macos-latest'
run: touch report.txt run: date +%s > report.txt
- name: Create report file (windows) - name: Create report file (windows)
if: matrix.platform == 'windows-latest' if: matrix.platform == 'windows-latest'
run: type NUL > report.txt run: echo %DATE% %TIME% > report.txt
- name: Create Pull Request - name: Create Pull Request
uses: peter-evans/create-pull-request@multi-platform-release uses: peter-evans/create-pull-request@multi-platform-release
env: env:
@ -31,4 +31,10 @@ jobs:
PULL_REQUEST_REVIEWERS: peter-evans PULL_REQUEST_REVIEWERS: peter-evans
PULL_REQUEST_MILESTONE: 1 PULL_REQUEST_MILESTONE: 1
PULL_REQUEST_BRANCH: example-patches PULL_REQUEST_BRANCH: example-patches
BRANCH_SUFFIX: 'timestamp' BRANCH_SUFFIX: 'random'
- name: Check output environment variable
if: matrix.platform == 'ubuntu-latest' || matrix.platform == 'macos-latest'
run: echo "Pull Request Number - $PULL_REQUEST_NUMBER"
- name: Check output environment variable (windows)
if: matrix.platform == 'windows-latest'
run: echo Pull Request Number - %PULL_REQUEST_NUMBER%

View file

@ -8,7 +8,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- name: Create report file - name: Create report file
run: touch report.txt run: date +%s > report.txt
- name: Create Pull Request - name: Create Pull Request
uses: ./ uses: ./
env: env:
@ -24,3 +24,5 @@ jobs:
PULL_REQUEST_MILESTONE: 1 PULL_REQUEST_MILESTONE: 1
PULL_REQUEST_BRANCH: example-patches PULL_REQUEST_BRANCH: example-patches
BRANCH_SUFFIX: short-commit-hash BRANCH_SUFFIX: short-commit-hash
- name: Check output environment variable
run: echo "Pull Request Number - $PULL_REQUEST_NUMBER"