Skip to content

Commit

Permalink
πŸ’š [ci] add run names and job names
Browse files Browse the repository at this point in the history
  • Loading branch information
jxn-30 committed Oct 17, 2022
1 parent e5584ee commit 939a65c
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 6 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
name: Build and Deploy
name: '[πŸ‘·πŸš€] Build and Deploy'
run-name: '[πŸ‘·πŸš€] Build on `${{ github.ref }}` and deploy on master & dev'

on:
push:

jobs:
build:
name: '[πŸ‘·] Build'
if: ${{ !contains(github.event.head_commit.message, 'skip ci') || !contains(github.event.head_commit.message, 'ci-push') }}
uses: ./.github/workflows/build.yml
with:
Expand All @@ -13,6 +15,7 @@ jobs:

deploy:
needs: [build]
name: '[πŸš€] Deploy'
if: github.repository_owner == 'LSS-Manager' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev')
uses: ./.github/workflows/deploy.yml
with:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Build Project
name: '[πŸ‘·] Build Project'
run-name: '[πŸ‘·] Build Project on `${{ inputs.ref }}`'

on:
workflow_call:
Expand All @@ -19,6 +20,7 @@ on:
jobs:
build:
runs-on: ubuntu-latest
name: '[πŸ‘·] Build'
outputs:
branch: ${{ steps.output.outputs.branch }}
version: ${{ steps.output.outputs.version }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/clean-update-yarnlock.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: clean & update yarn.lock
name: '[🧹] Clean & Update yarn.lock'

on:
schedule:
Expand All @@ -8,6 +8,7 @@ on:
jobs:
clean-update-yarnlock:
runs-on: ubuntu-latest
name: '[🧹] Clean & Update yarn.lock'
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/deploy-request.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Deploy Request
name: '[πŸš€πŸ”Ž] Deploy Request'
run-name: '[πŸš€πŸ”Ž] Deploy Request on #${{ github.event.issue.number }}'

on:
issue_comment:
Expand All @@ -8,6 +9,7 @@ on:
jobs:
check_request:
runs-on: ubuntu-latest
name: '[πŸ”Ž] Check Request'
if: ${{ github.event.issue.pull_request && github.event.comment.body == '@LSS-Manager deploy' }}
outputs:
deploy: ${{ steps.get_maintainers.outputs.deploy }}
Expand Down Expand Up @@ -54,6 +56,7 @@ jobs:

build:
needs: [check_request]
name: '[πŸ‘·] Build'
if: ${{ needs.check_request.outputs.deploy == 'true' }}
uses: ./.github/workflows/build.yml
with:
Expand All @@ -62,13 +65,15 @@ jobs:

deploy:
needs: [build]
name: '[πŸš€] Deploy'
uses: ./.github/workflows/deploy.yml
with:
branch: ${{ needs.build.outputs.branch }}
secrets: inherit

reply_to_request:
runs-on: ubuntu-latest
name: '[πŸ’¬] reply to request'
needs:
- build
- deploy
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Deploy Project
name: '[πŸš€] Deploy Project'
run-name: '[πŸš€] Deploy Project on `${{ inputs.branch }}`'

on:
workflow_call:
Expand All @@ -10,6 +11,7 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest
name: '[πŸš€] Deploy'
steps:
- name: '[🍱] Install apt packages'
run: sudo apt-get install -y unzip rsync
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: PR Build
name: '[πŸ‘·πŸ”€] PR Build'
run-name: '[πŸ‘·πŸ”€] Build on PR #${{ github.event.number }}, `${{ github.ref }}`'

on: [pull_request]

jobs:
build:
name: '[πŸ‘·] Build'
uses: ./.github/workflows/build.yml
with:
ref: ${{ github.ref }}
Expand Down

0 comments on commit 939a65c

Please sign in to comment.