diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index c9d5ec1cc..d25293a0d 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -20,13 +20,16 @@ jobs: matrix: node-version: [18.x] steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Push to next + if: github.ref == 'refs/heads/latest' + run: sh .github/workflows/push_to_next.sh - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - uses: bahmutov/npm-install@v1 - name: Test run: yarn test diff --git a/.github/workflows/push_to_next.sh b/.github/workflows/push_to_next.sh new file mode 100644 index 000000000..cef04e3ff --- /dev/null +++ b/.github/workflows/push_to_next.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +git config --global user.email "${{secrets.EMAIL_ADDRESS}}" +git config --global user.name "${{secrets.GIT_NAME}}" +git checkout -b next +git push origin next -f \ No newline at end of file