Skip to content

Commit 8a7ac75

Browse files
committed
update github actions
1 parent 4ff987f commit 8a7ac75

File tree

2 files changed

+3
-45
lines changed

2 files changed

+3
-45
lines changed

.github/workflows/continuous_integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Continuous Integration
33
on:
44
push:
55
branches:
6-
- main
6+
- fix/unexpectedChar
77
pull_request:
88
types: [opened, synchronize, reopened]
99

.github/workflows/prepare_release.yml

Lines changed: 2 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515

1616
jobs:
1717
build-and-release:
18-
if: github.ref == 'refs/heads/main'
18+
if: github.ref == 'refs/heads/fix/unexpectedChar'
1919
runs-on: macos-latest
2020
steps:
2121
- name: Checkout
@@ -36,46 +36,4 @@ jobs:
3636
run: ruby ./scripts/bump_versions.rb ${{ github.event.inputs.versionBumpLevel }}
3737

3838
- name: Build XCFramework
39-
run: ./scripts/build_framework.sh
40-
41-
- name: Get new version
42-
id: version
43-
run: echo "VERSION=$(ruby -e 'puts File.read("./OSInAppBrowserLib.podspec").match(/spec.version.*=.*''(\d+\.\d+\.\d+)''/)[1]')" >> $GITHUB_ENV
44-
45-
- name: Create new branch
46-
run: |
47-
git switch --create "prepare-new-release-${{ env.VERSION }}"
48-
49-
- name: Move zip file to root and push changes
50-
run: |
51-
if [ -f OSInAppBrowserLib.zip ]; then
52-
rm OSInAppBrowserLib.zip
53-
else
54-
echo "File does not exist."
55-
fi
56-
mv build/OSInAppBrowserLib.zip .
57-
git config --global user.name 'github-actions[bot]'
58-
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
59-
git add .
60-
git commit -m "chore: Bump version to ${{ env.VERSION }}"
61-
git push origin HEAD:prepare-new-release-${{ env.VERSION }}
62-
63-
- name: Create pull request
64-
id: create_pr
65-
run: |
66-
gh pr create -B main -H prepare-new-release-${{ env.VERSION }} --title 'Prepare `main` to Release `${{ env.VERSION }}`' --body 'Bumps version to `${{ env.VERSION }}`.<br/>Creates an updated and ready-to-be-released `OSInAppBrowserLib.zip`.'
67-
PR_NUMBER=$(gh pr view --json number --jq '.number')
68-
echo "PR_NUMBER=${PR_NUMBER}" >> $GITHUB_ENV
69-
env:
70-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
71-
72-
- name: Add label to the pull request
73-
run: |
74-
gh api \
75-
--method POST \
76-
-H "Accept: application/vnd.github+json" \
77-
-H "X-GitHub-Api-Version: 2022-11-28" \
78-
/repos/${{ github.repository }}/issues/${{ env.PR_NUMBER }}/labels \
79-
-f "labels[]=release"
80-
env:
81-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
run: ./scripts/build_framework.sh

0 commit comments

Comments
 (0)