Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3-pq
Commits
a06433f5
Commit
a06433f5
authored
Jun 01, 2021
by
web3-bot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update .github/workflows/automerge.yml
parent
f99ce924
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
1 deletion
+25
-1
.github/workflows/automerge.yml
.github/workflows/automerge.yml
+25
-1
No files found.
.github/workflows/automerge.yml
View file @
a06433f5
...
@@ -5,11 +5,35 @@
...
@@ -5,11 +5,35 @@
# This reduces the friction associated with updating with our workflows.
# This reduces the friction associated with updating with our workflows.
on
:
[
pull_request
]
on
:
[
pull_request
]
name
:
Automerge
jobs
:
jobs
:
automerge
:
automerge
-check
:
if
:
github.event.pull_request.user.login == 'web3-bot'
if
:
github.event.pull_request.user.login == 'web3-bot'
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
outputs
:
status
:
${{ steps.should-automerge.outputs.status }}
steps
:
-
uses
:
actions/checkout@v2
with
:
fetch-depth
:
0
-
name
:
Check if we should automerge
id
:
should-automerge
run
:
|
for commit in $(git rev-list --first-parent origin/${{ github.event.pull_request.base.ref }}..${{ github.event.pull_request.head.sha }}); do
committer=$(git show --format=$'%ce' -s $commit)
echo "Committer: $committer"
if [[ "$committer" != "web3-bot@users.noreply.github.com" ]]; then
echo "Commit $commit wasn't committed by web3-bot, but by $committer."
echo "::set-output name=status::false"
exit
fi
done
echo "::set-output name=status::true"
automerge
:
needs
:
automerge-check
runs-on
:
ubuntu-latest
if
:
${{ needs.automerge-check.outputs.status == 'true' }}
steps
:
steps
:
-
name
:
Wait on tests
-
name
:
Wait on tests
uses
:
lewagon/wait-on-check-action@bafe56a6863672c681c3cf671f5e10b20abf2eaa
# v0.2
uses
:
lewagon/wait-on-check-action@bafe56a6863672c681c3cf671f5e10b20abf2eaa
# v0.2
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment