-
Notifications
You must be signed in to change notification settings - Fork 21
chore(ci): add submodules and update release process #221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
8ee3c61
acda81e
dfa8c29
c484dc7
cac59d5
4b87271
f5d5663
31d4cf6
7ea9c6c
e1d7bf6
68d89fe
cc42068
44de550
1549109
58e83d4
772ba78
7ec4043
118a751
44e563d
5b84a78
a00d022
ad4d952
ac978cf
6c0fc7c
e0d11d0
8c72099
d021de4
d44abef
ba264f6
fd286ee
19a569e
6897e19
e013b12
7836432
8f3287c
9ff4a37
6f19e5c
f16b5bc
ad71294
7e8f206
216bb06
7d91055
7e46818
571cdd3
a27849c
089b266
067b4ee
033ddac
67f3acd
b4a1813
4cc3a60
a395123
5004d6c
114ebf2
b00a222
36609f5
020dbc6
22a1e49
7edb048
3a1c4c7
e7da3a8
336ba6b
4215d66
a89cdbf
43fa93e
40fd3f7
ecf5ae8
59cf0d9
8b6ae7f
8d4ba9d
8582769
67ba982
787dbf6
4127260
a51689b
6d9a27e
3c898f3
4caeeec
4d3a470
08e3d43
e7e93be
751131d
3a4d702
73391de
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Submodule | ||
|
||
description: Update submodules | ||
# because actions/checkout@v2 does not pull submodule repositories out of the box | ||
|
||
inputs: | ||
token: | ||
# We can use personal access token with repo ACL | ||
description: GitHub Token | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we need specific ACLs? |
||
required: true | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Update submodules | ||
id: update-submodules | ||
shell: bash | ||
run: | | ||
git config --file .gitmodules --get-regexp url | while read url; do | ||
git config --file=.gitmodules $(echo "$url" | sed -E "s/[email protected]:|https:\/\/github.com\//https:\/\/${{ inputs.token }}:${{ inputs.token }}@github.com\//") | ||
done | ||
git submodule sync | ||
git submodule update --init --recursive |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,14 +20,9 @@ jobs: | |
submodules: recursive | ||
token: ${{ secrets.TOKEN_RELEASE_BOT }} | ||
|
||
- run: git checkout chore/release | ||
|
||
- run: | | ||
git config --file .gitmodules --get-regexp url | while read url; do | ||
git config --file=.gitmodules $(echo "$url" | sed -E "s/[email protected]:|https:\/\/github.com\//https:\/\/${{ secrets.TOKEN_RELEASE_BOT }}:${{ secrets.TOKEN_RELEASE_BOT }}@github.com\//") | ||
done | ||
git submodule sync | ||
git submodule update --init --recursive | ||
- uses: ./.github/actions/submodule | ||
with: | ||
token: $${{ secrets.TOKEN_RELEASE_BOT }} | ||
|
||
- name: Setup | ||
id: setup | ||
|
@@ -37,4 +32,3 @@ jobs: | |
env: | ||
EVENT_NUMBER: ${{ github.event.issue.number }} | ||
GITHUB_TOKEN: ${{ secrets.TOKEN_RELEASE_BOT }} | ||
RELEASE_TEST: ${{ secrets.RELEASE_TEST }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[submodule "clients/algoliasearch-client-java-2"] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a branch to specify somewhere? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ah ok it's in the config, make sense |
||
path = clients/algoliasearch-client-java-2 | ||
url = [email protected]:algolia/algoliasearch-client-java-2.git | ||
[submodule "clients/algoliasearch-client-javascript"] | ||
path = clients/algoliasearch-client-javascript | ||
url = [email protected]:algolia/algoliasearch-client-javascript.git | ||
[submodule "clients/algoliasearch-client-php"] | ||
path = clients/algoliasearch-client-php | ||
url = [email protected]:algolia/algoliasearch-client-php.git |
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add here why we need this action?