Skip to content

Commit

Permalink
Merge pull request #6 from yumemi-inc/update_ci
Browse files Browse the repository at this point in the history
Update CI
  • Loading branch information
hkusu authored Nov 29, 2023
2 parents b44527e + eea1b74 commit faa7fb9
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: CI

on:
pull_request:
push:
branches: [main]
merge_group:

jobs:
check:
Expand All @@ -19,9 +18,19 @@ jobs:
steps:
- name: Check out
uses: actions/checkout@v4
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Get PR number
id: pr-number
if: github.event_name == 'merge_group'
shell: bash # for windlows
run: echo "number=$(echo '${{ github.ref }}' | awk '{gsub(/^.*pr-|-.*$/,"")}1')" >> "$GITHUB_OUTPUT"
- name: Use this action
uses: ./
with:
comment: 'CI ( ${{ matrix.runner }} ) passed. ref: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'
previous-comment: 'hide'
grouping-key: ${{ matrix.runner }}-${{ github.workflow }}-${{ github.job }}
pull-request-number: ${{ github.event.pull_request.number || steps.pr-number.outputs.number }}

0 comments on commit faa7fb9

Please sign in to comment.