-
Notifications
You must be signed in to change notification settings - Fork 6
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 YashasviDevtron-patch-1
- Loading branch information
Showing
732 changed files
with
92,905 additions
and
70,152 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,48 @@ | ||
name: Creating PR using Multi-Gitter | ||
|
||
on: | ||
pull_request: | ||
types: [opened] | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
update-dependencies: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '>=1.17.0' | ||
|
||
- name: Install multi-gitter | ||
run: curl -s https://raw.githubusercontent.com/lindell/multi-gitter/b62a2dfda0ed266502f7c71f7ce79f8fd9c26bf6/install.sh | sh | ||
|
||
- name: Get PR details | ||
env: | ||
HEAD_BRANCH: ${{ github.event.pull_request.head.ref }} | ||
BASE_BRANCH: ${{ github.event.pull_request.base.ref }} | ||
COMMIT_SHA: ${{ github.event.pull_request.head.sha }} | ||
PR_AUTHOR: ${{ github.event.pull_request.user.login }} | ||
PR_AUTHOR_ID: ${{ github.event.pull_request.user.id }} | ||
run: | | ||
echo "HEAD_BRANCH=$HEAD_BRANCH" >> $GITHUB_ENV | ||
echo "BASE_BRANCH=$BASE_BRANCH" >> $GITHUB_ENV | ||
echo "COMMIT_SHA=$COMMIT_SHA" >> $GITHUB_ENV | ||
echo "PR_AUTHOR=$PR_AUTHOR" >> $GITHUB_ENV | ||
echo "PR_AUTHOR_ID=$PR_AUTHOR_ID" >> $GITHUB_ENV | ||
echo "PR_AUTHOR_EMAIL=${PR_AUTHOR_ID}+${PR_AUTHOR}@users.noreply.github.com" >> $GITHUB_ENV | ||
- name: Update script with PR details | ||
run: | | ||
sed -i 's/VERSION=.*/VERSION=${{ env.COMMIT_SHA }}/' .github/scripts/update-version.sh | ||
- name: Run multi-gitter | ||
env: | ||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} | ||
run: | | ||
chmod +x .github/scripts/update-version.sh | ||
multi-gitter run .github/scripts/update-version.sh --token "$GITEA_TOKEN" --base-branch "$BASE_BRANCH" --branch "$HEAD_BRANCH" --author-name "$PR_AUTHOR" --author-email "$PR_AUTHOR_EMAIL" --pr-title "fix: sync with changes from $HEAD_BRANCH of common-lib" --config .github/config/multi-gitter-config |
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.