Skip to content

Commit

Permalink
ci: always set skip output of optimize-ci workflow (#2593) (#2596)
Browse files Browse the repository at this point in the history
Co-authored-by: Sion Kang <siontama@gmail.com>
  • Loading branch information
lablup-octodog and Yaminyam authored Jul 31, 2024
1 parent 8c1289e commit d6f113a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,22 @@ jobs:
contents: read
pull-requests: write
outputs:
skip: ${{ steps.check_skip.outputs.skip }}
skip: ${{ steps.check_skip.outputs.SKIP }}
steps:
- name: Optimize CI
if: ${{ github.event_name == 'pull_request' }}
id: check_skip
id: graphite-ci-action
uses: withgraphite/graphite-ci-action@main
with:
graphite_token: ${{ secrets.GRAPHITE_CI_OPTIMIZER_TOKEN }}
- name: Check if should skip the CI
id: check_skip
run: |
if [ "${{ steps.graphite-ci-action.outputs.skip }}" == "true" ]; then
echo "SKIP=true" >> $GITHUB_OUTPUT
else
echo "SKIP=false" >> $GITHUB_OUTPUT
fi
- name: labeler
if: github.event.action == 'opened' || github.event.action == 'reopened' || github.event.action == 'syncrhonize'
uses: lablup/auto-labeler@main # actions/labeler, lablup/size-label-action, lablup/auto-label-in-issue
Expand Down

0 comments on commit d6f113a

Please sign in to comment.