-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix/54172-add-in-filter-back
- Loading branch information
Showing
503 changed files
with
11,716 additions
and
5,611 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,20 +2,25 @@ name: 'Setup Git for OSBotify' | |
description: 'Setup Git for OSBotify' | ||
|
||
inputs: | ||
GPG_PASSPHRASE: | ||
description: 'Passphrase used to decrypt GPG key' | ||
OP_SERVICE_ACCOUNT_TOKEN: | ||
description: "1Password service account token" | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Decrypt OSBotify GPG key | ||
run: cd .github/workflows && gpg --quiet --batch --yes --decrypt --passphrase=${{ inputs.GPG_PASSPHRASE }} --output OSBotify-private-key.asc OSBotify-private-key.asc.gpg | ||
- name: Install 1Password CLI | ||
uses: 1password/install-cli-action@v1 | ||
|
||
- name: Load files from 1Password | ||
shell: bash | ||
env: | ||
OP_SERVICE_ACCOUNT_TOKEN: ${{ inputs.OP_SERVICE_ACCOUNT_TOKEN }} | ||
run: op read "op://Mobile-Deploy-CI/OSBotify-private-key.asc/OSBotify-private-key.asc" --force --out-file ./OSBotify-private-key.asc | ||
|
||
- name: Import OSBotify GPG Key | ||
shell: bash | ||
run: cd .github/workflows && gpg --import OSBotify-private-key.asc | ||
run: gpg --import OSBotify-private-key.asc | ||
|
||
- name: Set up git for OSBotify | ||
shell: bash | ||
|
@@ -24,8 +29,3 @@ runs: | |
git config --global commit.gpgsign true | ||
git config --global user.name OSBotify | ||
git config --global user.email [email protected] | ||
- name: Enable debug logs for git | ||
shell: bash | ||
if: runner.debug == '1' | ||
run: echo "GIT_TRACE=true" >> "$GITHUB_ENV" |
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 |
---|---|---|
|
@@ -5,8 +5,8 @@ name: "Setup Git for OSBotify" | |
description: "Setup Git for OSBotify" | ||
|
||
inputs: | ||
GPG_PASSPHRASE: | ||
description: "Passphrase used to decrypt GPG key" | ||
OP_SERVICE_ACCOUNT_TOKEN: | ||
description: "1Password service account token" | ||
required: true | ||
OS_BOTIFY_APP_ID: | ||
description: "Application ID for OS Botify" | ||
|
@@ -24,28 +24,18 @@ outputs: | |
runs: | ||
using: composite | ||
steps: | ||
- name: Check if gpg encrypted private key is present | ||
id: key_check | ||
shell: bash | ||
run: | | ||
if [[ -f .github/workflows/OSBotify-private-key.asc.gpg ]]; then | ||
echo "key_exists=true" >> "$GITHUB_OUTPUT" | ||
fi | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
if: steps.key_check.outputs.key_exists != 'true' | ||
with: | ||
sparse-checkout: | | ||
.github | ||
- name: Install 1Password CLI | ||
uses: 1password/install-cli-action@v1 | ||
|
||
- name: Decrypt OSBotify GPG key | ||
run: cd .github/workflows && gpg --quiet --batch --yes --decrypt --passphrase=${{ inputs.GPG_PASSPHRASE }} --output OSBotify-private-key.asc OSBotify-private-key.asc.gpg | ||
- name: Load files from 1Password | ||
shell: bash | ||
env: | ||
OP_SERVICE_ACCOUNT_TOKEN: ${{ inputs.OP_SERVICE_ACCOUNT_TOKEN }} | ||
run: op read "op://Mobile-Deploy-CI/OSBotify-private-key.asc/OSBotify-private-key.asc" --force --out-file ./OSBotify-private-key.asc | ||
|
||
- name: Import OSBotify GPG Key | ||
shell: bash | ||
run: cd .github/workflows && gpg --import OSBotify-private-key.asc | ||
run: gpg --import OSBotify-private-key.asc | ||
|
||
- name: Set up git for OSBotify | ||
shell: bash | ||
|
@@ -55,11 +45,6 @@ runs: | |
git config user.name OSBotify | ||
git config user.email [email protected] | ||
- name: Enable debug logs for git | ||
shell: bash | ||
if: runner.debug == '1' | ||
run: echo "GIT_TRACE=true" >> "$GITHUB_ENV" | ||
|
||
- name: Sync clock | ||
shell: bash | ||
run: sudo sntp -sS time.windows.com | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
ROOT_DIR=$(dirname "$(dirname "$(dirname "${BASH_SOURCE[0]}")")") | ||
cd "$ROOT_DIR" || exit 1 | ||
|
||
autocomplete_parser_backup="src/libs/SearchParser/autocompleteParser.js.bak" | ||
search_parser_backup="src/libs/SearchParser/searchParser.js.bak" | ||
|
||
#Copying the current .js parser files | ||
cp src/libs/SearchParser/autocompleteParser.js "$autocomplete_parser_backup" 2>/dev/null | ||
cp src/libs/SearchParser/searchParser.js "$search_parser_backup" 2>/dev/null | ||
|
||
#Running the scripts that generate the .js parser files | ||
npm run generate-search-parser | ||
npm run generate-autocomplete-parser | ||
|
||
#Checking if the saved files differ from the newly generated | ||
if ! diff -q "$autocomplete_parser_backup" src/libs/SearchParser/autocompleteParser.js >/dev/null || | ||
! diff -q "$search_parser_backup" src/libs/SearchParser/searchParser.js >/dev/null; then | ||
echo "The files generated from the .peggy files using the commands: generate-search-parser and generate-autocomplete-parser are not identical to those currently on this branch." | ||
echo "The parser .js files should never be edited manually. Make sure you’ve run locally: npm run generate-search-parser and npm run generate-autocomplete-parser, and committed the changes." | ||
exit 1 | ||
else | ||
echo "The files generated from the .peggy files using the commands: generate-search-parser and generate-autocomplete-parser are identical to those currently on this branch." | ||
exit 0 | ||
fi |
Binary file not shown.
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.