Skip to content

Commit

Permalink
ci: add git Action bot information to PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
robsonos committed Dec 18, 2023
1 parent 36cc60e commit b3f2dd5
Showing 1 changed file with 22 additions and 18 deletions.
40 changes: 22 additions & 18 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
- name: Lint
run: yarn lint

verify-ios:
runs-on: macos-13
verify-android:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -36,20 +36,20 @@ jobs:
node-version: ${{ env.NODE_VERSION }}
cache: 'yarn'

- name: Set up Xcode
run: sudo xcode-select --switch /Applications/Xcode_14.2.app
- name: Setup Java
uses: actions/setup-java@v3
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: 'zulu'

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Lint
run: yarn lint

- name: Verify
run: yarn verify:ios
run: yarn verify:android

verify-android:
runs-on: ubuntu-latest
verify-ios:
runs-on: macos-13
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -62,17 +62,17 @@ jobs:
node-version: ${{ env.NODE_VERSION }}
cache: 'yarn'

- name: Setup Java
uses: actions/setup-java@v3
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: 'zulu'
- name: Set up Xcode
run: sudo xcode-select --switch /Applications/Xcode_14.2.app

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Lint
run: yarn lint

- name: Verify
run: yarn verify:android
run: yarn verify:ios

create-pr:
runs-on: ubuntu-latest
Expand All @@ -83,10 +83,14 @@ jobs:
with:
fetch-depth: 0

# - name: Configure Git Action bot
# run: |
# git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
# git config user.name "github-actions[bot]"

- name: Create pull or update pull request
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
github-token: ${{ secrets.CREATE_PR_TOKEN }}
script: |
const head = context.payload.ref.replace('refs/heads/', '');
const base = 'main';
Expand Down

0 comments on commit b3f2dd5

Please sign in to comment.