-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 dependabot/bundler/ios/bundler-4415e84133
- Loading branch information
Showing
592 changed files
with
26,450 additions
and
12,925 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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,15 +9,18 @@ on: | |
semver-version: | ||
description: 'A semantic version. eg: x.x.x' | ||
required: true | ||
version-number: | ||
description: 'A natural version number. eg: 862' | ||
required: true | ||
previous-version-tag: | ||
description: 'Previous release version tag. eg: v7.7.0' | ||
required: true | ||
jobs: | ||
generate-build-version: | ||
uses: MetaMask/metamask-mobile-build-version/.github/workflows/[email protected] | ||
permissions: | ||
id-token: write | ||
|
||
create-release-pr: | ||
runs-on: ubuntu-latest | ||
needs: generate-build-version | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
@@ -36,6 +39,7 @@ jobs: | |
# The workaround is to use a personal access token (BUG_REPORT_TOKEN) instead of | ||
# the default GITHUB_TOKEN for the checkout action. | ||
token: ${{ secrets.BUG_REPORT_TOKEN }} | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
|
@@ -48,5 +52,6 @@ jobs: | |
shell: bash | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
BASE_BRANCH: ${{ github.event.inputs.base-branch }} | ||
run: | | ||
./scripts/create-release-pr.sh ${{ github.event.inputs.previous-version-tag }} ${{ github.event.inputs.semver-version }} ${{ github.event.inputs.version-number }} | ||
./scripts/create-release-pr.sh ${{ github.event.inputs.previous-version-tag }} ${{ github.event.inputs.semver-version }} ${{ needs.generate-build-version.outputs.build-version }} |
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,51 @@ | ||
############################################################################################## | ||
# | ||
# This Workflow is responsible for updating the latest build version of the project. | ||
# You can provide your own base branch, tag, or SHA for git operations and the pull request. | ||
# and it will generate the latest build version & update the neccessary files for you. | ||
# | ||
############################################################################################## | ||
name: Update Latest Build Version | ||
|
||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
base-branch: | ||
description: 'The base branch, tag, or SHA for git operations and the pull request.' | ||
required: true | ||
jobs: | ||
generate-build-version: | ||
uses: MetaMask/metamask-mobile-build-version/.github/workflows/[email protected] | ||
permissions: | ||
id-token: write | ||
|
||
bump-version: | ||
runs-on: ubuntu-latest | ||
needs: generate-build-version | ||
permissions: | ||
contents: write | ||
id-token: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ inputs.base-branch }} | ||
token: ${{ secrets.PR_TOKEN }} | ||
|
||
- name: Bump script | ||
env: | ||
HEAD_REF: ${{ inputs.base-branch }} | ||
run: | | ||
./scripts/set-build-version.sh ${{ needs.generate-build-version.outputs.build-version }} | ||
git diff | ||
git config user.name metamaskbot | ||
git config user.email [email protected] | ||
git add bitrise.yml | ||
git add package.json | ||
git add ios/MetaMask.xcodeproj/project.pbxproj | ||
git add android/app/build.gradle | ||
git commit -m "Bump version number to ${{ needs.generate-build-version.outputs.build-version }}" | ||
git push origin HEAD:"$HEAD_REF" --force | ||
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 |
---|---|---|
@@ -1 +1 @@ | ||
20.14.0 | ||
20.17.0 |
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.