Skip to content

Commit

Permalink
optimize github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
shhhplus committed May 16, 2023
1 parent f76bf8b commit 3a2f860
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,31 +15,31 @@ jobs:
- run: echo [pull_request.merged] ${{ github.event.pull_request.merged }}

get_computed:
if: ${{ github.event.pull_request.merged == true }}
if: github.event.pull_request.merged == true
uses: './.github/workflows/atom.get_computed.yml'

test:
if: ${{ github.event.pull_request.merged == true }}
if: github.event.pull_request.merged == true
needs: [info, get_computed]
uses: './.github/workflows/atom.test.yml'
secrets: inherit

build:
if: ${{ github.event.pull_request.merged == true }}
if: github.event.pull_request.merged == true
needs: [test, get_computed]
uses: './.github/workflows/atom.build.yml'
with:
repo_name: ${{ needs.get_computed.outputs.repo_name }}

publish:
if: ${{ github.event.pull_request.merged == true }}
if: github.event.pull_request.merged == true
needs: [build, get_computed]
secrets: inherit
uses: './.github/workflows/atom.publish.yml'
with:
repo_name: ${{ needs.get_computed.outputs.repo_name }}

tag:
if: ${{ github.event.pull_request.merged == true }}
if: github.event.pull_request.merged == true
needs: [publish]
uses: './.github/workflows/atom.tag.yml'
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
- master
types:
- opened
- reopened
jobs:
info:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 3a2f860

Please sign in to comment.