Skip to content

Release v24.0.0-rc.3 #58

Release v24.0.0-rc.3

Release v24.0.0-rc.3 #58

name: Merge release pr
on:
pull_request:
types: opened
jobs:
approve-release-pull-request:
if: |

Check failure on line 8 in .github/workflows/merge_release_pr.yml

View workflow run for this annotation

GitHub Actions / Merge release pr

Invalid workflow file

The workflow is not valid. .github/workflows/merge_release_pr.yml (Line: 8, Col: 9): Unexpected symbol: 'startsWith'. Located at position 127 within expression: (startsWith(github.head_ref, 'release-v') || startsWith(github.head_ref, 'release/v')) && startsWith(github.base_ref, 'main') startsWith(github.event.pull_request.user.login, 'mapbox-github-ci-writer-public-') && github.event.pull_request.user.id == '93400552' .github/workflows/merge_release_pr.yml (Line: 22, Col: 9): Unexpected symbol: 'startsWith'. Located at position 127 within expression: (startsWith(github.head_ref, 'release-v') || startsWith(github.head_ref, 'release/v')) && startsWith(github.base_ref, 'main') startsWith(github.event.pull_request.user.login, 'mapbox-github-ci-writer-public-') && github.event.pull_request.user.id == '93400552'
(startsWith(github.head_ref, 'release-v') ||
startsWith(github.head_ref, 'release/v')) &&
startsWith(github.base_ref, 'main')
startsWith(github.event.pull_request.user.login, 'mapbox-github-ci-writer-public-') &&
github.event.pull_request.user.id == '93400552'
runs-on: ubuntu-latest
steps:
- name: Approve Pull Request
run: gh pr review $PR --approve
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR: ${{ github.event.pull_request.html_url }}
re-trigger-circleci-for-cocoapods:
if: |
(startsWith(github.head_ref, 'release-v') ||
startsWith(github.head_ref, 'release/v')) &&
startsWith(github.base_ref, 'main')
startsWith(github.event.pull_request.user.login, 'mapbox-github-ci-writer-public-') &&
github.event.pull_request.user.id == '93400552'
runs-on: ubuntu-latest
timeout-minutes: 40
steps:
- name: Rerun circleci
timeout-minutes: 40
run: |
# Rerun circleCI for cocoapods during 36 minutes
for n in {1..3};
do
sleep 720
curl --request POST \
--url https://circleci.com/api/v2/project/github/mapbox/mapbox-common-ios/pipeline \
--header 'Circle-Token: ${{ secrets.CCI_TOKEN }}' \
--header 'content-type: application/json' \
--data '{"branch":"${{ github.head_ref }}"}'
done