Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
satackey authored Jul 28, 2020
1 parent aa39ec8 commit 922b8a1
Showing 1 changed file with 29 additions and 13 deletions.
42 changes: 29 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- '**'
pull_request:
delete:

jobs:
Expand All @@ -16,11 +17,26 @@ jobs:
node-version: 12.x

- uses: actions/checkout@v2

- name: Output info
id: info
run: |
if [ '${{ github.event_name }}' = 'pull_request' ]; then
echo '::set-output name=commit_message::'
exit 0
fi
echo '::set-output name=commit_message::[auto]'
- uses: satackey/[email protected]
with:
commit-message: ${{ steps.info.outputs.commit_message }}
push-branch: '{branch}-release'

- uses: actions/upload-artifact@v2
with:
name: built
path: ./

#
# test built image caching

Expand All @@ -37,11 +53,11 @@ jobs:
id: extract
run: |
echo "##[set-output name=branch;]${GITHUB_REF#refs/heads/}"
- uses: actions/checkout@v2
name: Pull action
- name: Download action
uses: actions/download-artifact@v2
with:
ref: ${{ steps.extract.outputs.branch }}-release
name: built
path: action-dlc

- uses: ./action-dlc
Expand All @@ -66,10 +82,10 @@ jobs:
run: |
echo "##[set-output name=branch;]${GITHUB_REF#refs/heads/}"
- uses: actions/checkout@v2
name: Pull action
- name: Download action
uses: actions/download-artifact@v2
with:
ref: ${{ steps.extract.outputs.branch }}-release
name: built
path: action-dlc

- uses: ./action-dlc
Expand Down Expand Up @@ -115,10 +131,10 @@ jobs:
run: |
echo "##[set-output name=branch;]${GITHUB_REF#refs/heads/}"
- uses: actions/checkout@v2
name: Pull action
- name: Download action
uses: actions/download-artifact@v2
with:
ref: ${{ steps.extract.outputs.branch }}-release
name: built
path: action-dlc

- uses: ./action-dlc
Expand All @@ -140,10 +156,10 @@ jobs:
run: |
echo "##[set-output name=branch;]${GITHUB_REF#refs/heads/}"
- uses: actions/checkout@v2
name: Pull action
- name: Download action
uses: actions/download-artifact@v2
with:
ref: ${{ steps.extract.outputs.branch }}-release
name: built
path: action-dlc

- uses: ./action-dlc
Expand Down

0 comments on commit 922b8a1

Please sign in to comment.