forked from meshery/meshery
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request meshery#9771 from Yashsharma1911/yash/seedKeysForL…
…ocalProvider [Server] Seed keys for local provider
- Loading branch information
Showing
12 changed files
with
1,081 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Import Keys | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
spreadsheet_uri: | ||
description: Link of the spreadsheet containing keys. | ||
type: string | ||
jobs: | ||
fetch-keys: | ||
name: Fetch Keys | ||
if: github.repository == 'meshery/meshery' | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.GH_ACCESS_TOKEN }} | ||
fetch-depth: 1 | ||
- name: Set spreadsheet_uri as environment variable | ||
run: echo "spreadsheet_uri=" >> $GITHUB_ENV | ||
if: inputs.spreadshet_uri != '' | ||
echo "spreadsheet_uri=${{ inputs.spreadsheet_uri }}" >> $GITHUB_ENV | ||
|
||
- name: Dump keys from the spreadsheet | ||
run: | | ||
curl -L "${{ env.spreadsheet_uri }}" -o "./keys.csv"; | ||
- name: Create permissions folder | ||
run: | | ||
[ ! -d "./permissions" ] && mkdir -p "./permissions"; | ||
mv keys.csv permissions/keys.csv; | ||
- name: Commit changes | ||
uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: Added permissions keys. | ||
branch: master | ||
commit_options: '--signoff' | ||
commit_user_name: l5io | ||
commit_user_email: [email protected] | ||
commit_author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>author of the commit that triggered the run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.