-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updating action and script to include specific label, replace third-p…
…arty action with gh cli to automerge contributions
- Loading branch information
1 parent
ecf3c20
commit 2d64818
Showing
2 changed files
with
10 additions
and
8 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 |
---|---|---|
|
@@ -18,10 +18,12 @@ jobs: | |
run: | | ||
docker build -q -t vocdoni/zk-voceremony --target zk-voceremony . | ||
docker run --rm -qt --env-file ./ceremony.env vocdoni/zk-voceremony verify | ||
merge-contribution: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Auto merge contribution PR | ||
uses: "pascalgn/[email protected]" | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
- name: Merge PR branch | ||
if: success() && contains(github.event.pull_request.labels.*.name, 'automerge') | ||
run: | | ||
git config --global user.name "${{ github.actor }}" | ||
git config --global user.email "${{ github.actor }}@users.noreply.github.com" | ||
git fetch origin ${{ github.base_ref }} | ||
git checkout ${{ github.base_ref }} | ||
git merge --no-ff ${{ github.head_ref }} -m "Automatically merging new contribution" | ||
git push origin ${{ github.base_ref }} |
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