-
Notifications
You must be signed in to change notification settings - Fork 3
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 #9 from thulasi-ram/main
Release 0.5.0
- Loading branch information
Showing
16 changed files
with
477 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Update Manifest Workflow | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
user_input_version: | ||
description: 'Version /tag to target' | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
generate_updater_json: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: | | ||
# https://dev.to/mrmike/github-action-handling-input-default-value-5f2g | ||
USER_INPUT_VERSION=${{ github.event.inputs.user_input_version }} | ||
echo "user_input_version=${USER_INPUT_VERSION:-"latest"}" >> "$GITHUB_OUTPUT" | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: 'npm' | ||
cache-dependency-path: 'package-lock.json' | ||
- env: | ||
GH_TOKEN: ${{ github.token }} | ||
RELEASE_EVENT: ${{github.event.release}} | ||
RELEASE_TAG: ${{github.event.inputs.user_input_version}} | ||
run: | | ||
cd ./scripts | ||
npm ci | ||
ls -lahtr | ||
node ./updater_template.js | ||
- uses: actions/[email protected] | ||
with: | ||
name: sad_updater.json | ||
path: ./scripts/sad_updater.json | ||
if-no-files-found: error | ||
|
||
upload_updater_json_to_s3: | ||
runs-on: ubuntu-latest | ||
needs: [generate_updater_json] | ||
# These permissions are needed to interact with GitHub's OIDC Token endpoint. | ||
permissions: | ||
id-token: write | ||
contents: read | ||
steps: | ||
- uses: actions/[email protected] | ||
- run: ls -lahtr | ||
- run: pwd | ||
- uses: aws-actions/configure-aws-credentials@v3 | ||
with: | ||
aws-region: us-east-1 | ||
role-to-assume: ${{ secrets.AWS_SAD_UPLOADER_ROLE }} | ||
# use recursive: https://github.com/aws/aws-cli/issues/2929 | ||
- run: aws s3 cp sad_updater.json s3://simple-android-debloater --recursive |
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 |
---|---|---|
|
@@ -11,4 +11,5 @@ vite.config.ts.timestamp-* | |
*.db | ||
*.db-shm | ||
*.db-wal | ||
discussions_dump.json | ||
discussions_dump.json | ||
sad_updater.json |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.