Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hkusu committed Nov 22, 2023
1 parent 9d8efe4 commit b19bef2
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,24 @@ name: CI

on: push

concurrency:
group: ${{ github.workflow }}-${{ github.ref_name != 'main' && github.ref_name || github.run_id }}
cancel-in-progress: true

jobs:
check:
name: Use this action for check
strategy:
matrix:
runner: [ubuntu-latest, macos-latest, windows-latest]
fail-fast: false
permissions:
contents: read
runs-on: ubuntu-latest
runs-on: ${{ matrix.runner }}
timeout-minutes: 30
steps:
- name: Check out
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
Expand All @@ -26,4 +34,11 @@ jobs:
repository: 'android/sunflower'
sha: '8d000f6c72bc5384b4ca9f7452d620085919519d'
- name: Show result
run: echo '${{ steps.report.outputs.exists-diff }}'
if: always()
shell: bash # for windlows
run: |
{
echo '### outputs'
echo ''
echo '- exists-diff: `${{ steps.report.outputs.exists-diff }}`'
} >> "$GITHUB_STEP_SUMMARY"
4 changes: 3 additions & 1 deletion .github/workflows/main-version-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ on:
jobs:
main-version-branch:
name: Create Main version branch
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Push HEAD to main version branch
run: |
branch=$(echo '${{ github.event.release.tag_name }}' | sed -E 's/(v[0-9]+)\..+/\1/')
Expand Down

0 comments on commit b19bef2

Please sign in to comment.