Skip to content

Commit 0e70f8c

Browse files
committed
🦋 Add changeset
1 parent 673ff33 commit 0e70f8c

File tree

2 files changed

+85
-0
lines changed

2 files changed

+85
-0
lines changed

.changeset/cool-sheep-arrive.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
"@wso2is/console": patch
3+
"@wso2is/i18n": patch
4+
"@wso2is/myaccount": patch
5+
"@wso2is/common": patch
6+
"@wso2is/core": patch
7+
---
8+
9+
Rename `Tenant Permissions` -> `Root Organization Permissions`
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
name: 🌝 Nightly Version Bump
2+
3+
on:
4+
pull_request:
5+
branches: [ master ]
6+
workflow_dispatch:
7+
8+
env:
9+
GH_TOKEN: ${{ secrets.RELEASE_BOT_TOKEN }}
10+
BOT_USERNAME: ${{ secrets.RELEASE_BOT_USER_NAME }}
11+
BOT_EMAIL: ${{ secrets.RELEASE_BOT_EMAIL }}
12+
BASE_BRANCH: 'main'
13+
14+
jobs:
15+
bump-version:
16+
name: 🌝 Nightly Version Bump
17+
runs-on: ubuntu-latest
18+
strategy:
19+
matrix:
20+
node-version: [lts/*]
21+
maven-version: [3.8.6]
22+
java-version: [1.8]
23+
pnpm-version: [8.7.4]
24+
steps:
25+
- name: ⬇️ Checkout
26+
id: checkout
27+
uses: actions/[email protected]
28+
with:
29+
fetch-depth: 0
30+
31+
- name: 🌟 Set up Git
32+
run: |
33+
git config user.name ${{ env.BOT_USERNAME }}}
34+
git config user.email ${{ env.BOT_EMAIL }}}
35+
36+
- name: 🏷️ Set branch name
37+
id: set-branch-name
38+
run: |
39+
base_branch=${{ env.BASE_BRANCH }}
40+
version_bump_branch="asgardeo-auth-spa-version-bump/$base_branch"
41+
echo "Setting branch name to: $version_bump_branch"
42+
echo "VERSION_BUMP_BRANCH=${version_bump_branch}" >> $GITHUB_ENV
43+
44+
- name: 🚀 Create version bump branch
45+
id: create-branch
46+
run: |
47+
echo "Checking out a new branch: $VERSION_BUMP_BRANCH"
48+
git checkout -b "$VERSION_BUMP_BRANCH"
49+
50+
- name: Validate existing `@asgardeo/auth-spa` version
51+
id: validate-existing-auth-spa-version
52+
run: |
53+
existing_version=$(grep -oP 'auth-spa-\K[0-9]+\.[0-9]+\.[0-9]+' apps/console/src/public/auth-spa-3.0.1.min.js)
54+
echo "EXISTING_ASGARDEO_AUTH_VERSION=${existing_version}" >> $GITHUB_ENV
55+
- name: Check if existing and latest versions match
56+
id: check-version-match
57+
run: |
58+
existing_version=$(grep -oP 'auth-spa-\K[0-9]+\.[0-9]+\.[0-9]+' apps/console/src/public/auth-spa-3.0.1.min.js)
59+
latest_release=$(curl -s https://api.github.com/repos/asgardeo/asgardeo-auth-spa-sdk/releases/latest | jq -r '.tag_name')
60+
61+
# if [ "$existing_version" == "$latest_release" ]; then
62+
# echo "Versions match. Aborting further steps."
63+
# exit 0
64+
# fi
65+
66+
echo "EXISTING_ASGARDEO_AUTH_VERSION=${existing_version}" >> $GITHUB_ENV
67+
echo "LATEST_ASGARDEO_AUTH_VERSION=${latest_release}" >> $GITHUB_ENV
68+
69+
echo "Existing version: $existing_version"
70+
echo "Latest release: $latest_release"
71+
# - name: 🎉 Create pull request
72+
# id: create-pr
73+
# run: |
74+
# echo "VERSION_BUMP_BRANCH: $VERSION_BUMP_BRANCH"
75+
# echo "Creating pull request from $base_branch to $VERSION_BUMP_BRANCH"
76+
# gh pr create --base $base_branch --head $VERSION_BUMP_BRANCH --title "[Nightly Version Bump] [GitHub Action] Update package versions" --body "Bump versions"

0 commit comments

Comments
 (0)