Skip to content

Commit 3c75342

Browse files
Merge branch 'master' into card-sistent-component
Signed-off-by: Anand-Theertha <[email protected]>
2 parents dd5e51d + 9fc357f commit 3c75342

File tree

144 files changed

+4204
-468
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

144 files changed

+4204
-468
lines changed

.github/ISSUE_TEMPLATE/community_member_profile.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Let's recognize <@github-username> as a contributor and community member by crea
1616
- GitHub: <!-- username only -->
1717
- Twitter: <!-- handle only -->
1818
- LinkedIn: <!-- <profilename> only https://www.linkedin.com/in/<profilename> -->
19-
- Layer5 Cloud: <!-- <user ID> only UUID https://meshery.layer5.io/user/<uuid> -->
19+
- Layer5 Cloud: <!-- <user ID> only UUID https://cloud.layer5.io/user/<uuid> -->
2020
- Link to profile picture:
2121

2222
A detailed explanation on how to set up a community member profile can be found in the [CONTRIBUTING.md](https://github.com/layer5io/layer5/blob/master/CONTRIBUTING.md)

.github/workflows/feature-list.yml

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
name: Feature List
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
spreadsheet_uri:
7+
description: 'Link of the spreadsheet containing subscription details.'
8+
type: string
9+
required: true
10+
schedule:
11+
- cron: '0 0 * * *'
12+
13+
permissions:
14+
contents: write
15+
actions: read
16+
17+
jobs:
18+
trigger-feature-list:
19+
runs-on: ubuntu-latest
20+
env:
21+
FEATURES_FILE: 'feature_data.json'
22+
23+
steps:
24+
- name: Checkout current repository
25+
uses: actions/checkout@v4
26+
27+
- name: Restore cache
28+
id: cache-sha
29+
uses: actions/cache@v3
30+
with:
31+
path: .sha-cache
32+
key: feature-data-sha
33+
restore-keys: |
34+
feature-data-sha
35+
36+
- name: Check for updates in source repository
37+
id: check-updates
38+
uses: actions/github-script@v7
39+
with:
40+
script: |
41+
const { data: sourceFile } = await github.rest.repos.getContent({
42+
owner: 'layer5labs',
43+
repo: 'meshery-extensions-packages',
44+
path: 'feature_data.json',
45+
ref: 'master'
46+
});
47+
48+
// Store the latest commit SHA
49+
const latestSHA = sourceFile.sha;
50+
51+
const fs = require('fs');
52+
53+
// Check if we have a previous SHA
54+
let hasUpdates = true;
55+
const shaCachePath = '.sha-cache/latest-sha';
56+
if (fs.existsSync(shaCachePath)) {
57+
const lastSHA = fs.readFileSync(shaCachePath, 'utf8');
58+
hasUpdates = lastSHA !== latestSHA;
59+
}
60+
61+
if (hasUpdates) {
62+
// Save the new SHA
63+
fs.mkdirSync('.sha-cache', { recursive: true });
64+
fs.writeFileSync(shaCachePath, latestSHA);
65+
66+
// Decode and save the content
67+
const content = Buffer.from(sourceFile.content, 'base64').toString('utf8');
68+
69+
// Write the new content
70+
fs.writeFileSync(process.env.FEATURES_FILE, content);
71+
72+
core.setOutput('has-updates', 'true');
73+
} else {
74+
core.setOutput('has-updates', 'false');
75+
}
76+
77+
- name: Commit changes
78+
if: steps.check-updates.outputs.has-updates == 'true'
79+
uses: stefanzweifel/git-auto-commit-action@v5
80+
with:
81+
commit_message: "Updated feature data from source repository"
82+
file_pattern: ${{ env.FEATURES_FILE }}
83+
branch: master
84+
commit_options: "--signoff"
85+
commit_user_name: l5io
86+
commit_user_email: [email protected]
87+
commit_author: 'l5io <[email protected]>'

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ alt="Nighthawk" align="left" />
147147

148148

149149
<p style="clear:both;">
150-
<h2><a href="https://meshery.layer5.io/catalog">Meshery Catalog</a></h2>
150+
<h2><a href="https://cloud.layer5.io/catalog">Meshery Catalog</a></h2>
151151
<a href="">
152152
<img src=".github/assets/images/catalog/catalog.svg"
153153
style="float:left;margin:10px;" width="125px"

0 commit comments

Comments
 (0)