Skip to content

Commit 5335918

Browse files
authored
chore(scripts): update the jira action (#5678)
1 parent 0a8defb commit 5335918

File tree

3 files changed

+41
-4
lines changed

3 files changed

+41
-4
lines changed

.github/workflows/issue.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ jobs:
3636
id: '10001'
3737
},
3838
parent: {
39-
key: 'DI-3523'
39+
key: 'API-1'
4040
},
4141
project: {
42-
id: '10118'
42+
id: '11316'
4343
},
4444
components: [
4545
{

scripts/update_jira_token.sh

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#!/bin/sh
2+
3+
# This script updates the JIRA_TOKEN secret in the GitHub repository
4+
# Usage: ./scripts/update_jira_token.sh <jira_email> <new_jira_token>
5+
6+
if [ "$#" -ne 1 ]; then
7+
echo "Usage: $0 <jira_email> <new_jira_token>"
8+
exit 1
9+
fi
10+
11+
EMAIL="$1"
12+
TOKEN="$2"
13+
ENCRYPED_TOKEN=$(echo -n "$EMAIL:$TOKEN" | base64)
14+
15+
repositories=(
16+
"algolia/api-clients-automation"
17+
"algolia/algoliasearch-client-csharp"
18+
"algolia/algoliasearch-client-dart"
19+
"algolia/algoliasearch-client-go"
20+
"algolia/algoliasearch-client-java"
21+
"algolia/algoliasearch-client-javascript"
22+
"algolia/algoliasearch-client-kotlin"
23+
"algolia/algoliasearch-client-php"
24+
"algolia/algoliasearch-client-python"
25+
"algolia/algoliasearch-client-ruby"
26+
"algolia/algoliasearch-client-scala"
27+
"algolia/algoliasearch-client-swift"
28+
"algolia/algoliasearch-django"
29+
"algolia/scout-extended"
30+
"algolia/search-bundle"
31+
"algolia/firestore-algolia-search"
32+
"algolia/algoliasearch-rails"
33+
)
34+
35+
for repo in "${repositories[@]}"; do
36+
gh -R "$repo" secret set JIRA_TOKEN --body "$ENCRYPED_TOKEN"
37+
done

templates/issue.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ jobs:
3636
id: '10001'
3737
},
3838
parent: {
39-
key: 'DI-3523'
39+
key: 'API-1'
4040
},
4141
project: {
42-
id: '10118'
42+
id: '11316'
4343
},
4444
components: [
4545
{

0 commit comments

Comments
 (0)