Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaminyam committed Feb 20, 2025
1 parent 23d6260 commit 7ce4987
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ jobs:
pull-requests: write
outputs:
skip: ${{ steps.check_skip.outputs.SKIP_CI }}
graphite-labels: ${{ steps.check_skip.outputs.GRAPHITE_LABELS }}
release: ${{ steps.check_skip.outputs.IS_RELEASE }}
graphite-labels: ${{ steps.graphite_labels.outputs.GRAPHITE_LABELS }}
release: ${{ steps.release.outputs.IS_RELEASE }}
alembic: ${{ steps.alembic.outputs.ALEMBIC }}
steps:
- name: Debug action trigger
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
if: github.event_name == 'pull_request'
uses: lablup/auto-labeler@main # actions/labeler, lablup/size-label-action, lablup/auto-label-in-issue
- name: Optimize CI
id: check_skip
id: check_stacked_pr
run: |
echo "NON_TOP_BOTTOM=false" >> $GITHUB_OUTPUT
BASE_BRANCH=${{ github.event.pull_request.base.ref }}
Expand All @@ -77,16 +77,19 @@ jobs:
fi
fi
- name: Skip CI
id: check_skip
if: |
contains(toJSON(github.event.head_commit.message), 'skip:ci')
|| contains(github.event.pull_request.labels.*.name, 'skip:ci')
|| steps.check_skip.outputs.NON_TOP_BOTTOM == 'true'
|| steps.check_stacked_pr.outputs.NON_TOP_BOTTOM == 'true'
run: echo "SKIP_CI=true" >> $GITHUB_OUTPUT
- name: Graphite labels
id: graphite_labels
if: contains(fromJSON('["flow:merge-queue", "flow:hotfix"]'), github.event.pull_request.labels.*.name)
run: |
echo "GRAPHITE_LABELS=true" >> $GITHUB_OUTPUT
- name: Release
id: release
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
run: echo "IS_RELEASE=true" >> $GITHUB_OUTPUT
- name: Alembic
Expand Down

0 comments on commit 7ce4987

Please sign in to comment.