-
Notifications
You must be signed in to change notification settings - Fork 19
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 #817 from secretkeylabs/chore/merge-main-to-public…
…-1712732445 merge-main-to-public
- Loading branch information
Showing
25 changed files
with
907 additions
and
273 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
Validating CODEOWNERS rules …
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 @@ | ||
* @secretkeylabs/reviewers-web-extension |
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,34 @@ | ||
name: Merge branch to remote | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
branch: | ||
description: 'Merge branch' | ||
required: true | ||
default: develop | ||
type: choice | ||
options: | ||
- develop | ||
- main | ||
|
||
jobs: | ||
merge-branch-to-remote: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: write | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- id: run-merge-script | ||
env: | ||
ORIGIN_BRANCH: ${{ inputs.branch }} | ||
REMOTE_REPO: ${{ secrets.REMOTE_REPO }} | ||
GH_TOKEN: ${{ secrets.GH_REPOS_RW_PAT }} | ||
run: | | ||
# git config | ||
git config user.name "GitHub Actions Bot" | ||
git config user.email "<>" | ||
# run shell script | ||
cd scripts | ||
ORIGIN_BRANCH=$ORIGIN_BRANCH REMOTE_REPO=$REMOTE_REPO ./merge-to-remote.sh |
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,33 @@ | ||
name: Merge release to develop | ||
## | ||
# This workflow triggers on merge of release branch back to develop | ||
# | ||
# It should push to public repo | ||
# | ||
on: | ||
pull_request: | ||
branches: | ||
- develop | ||
types: | ||
- closed | ||
jobs: | ||
publish-latest: | ||
if: ${{ github.event.pull_request.merged == true && startsWith(github.head_ref, 'release/')}} | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- id: push-to-public | ||
name: Push to public remote | ||
if: ${{ contains(github.repositoryUrl, 'private') }} | ||
run: | | ||
# git config | ||
git config user.name "GitHub Actions Bot" | ||
git config user.email "<>" | ||
# run shell script | ||
cd scripts | ||
ORIGIN_BRANCH=develop REMOTE_REPO=xverse-web-extension ./merge-to-remote.sh |
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.