-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
81 additions
and
25 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,19 @@ | ||
--- | ||
|
||
name: "build and run docker" | ||
|
||
'on': | ||
pull_request: | ||
|
||
jobs: | ||
docker-run: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: run blubber | ||
run: | | ||
curl -s -H 'content-type: application/yaml' --data-binary @".pipeline/blubber.yaml" https://blubberoid.wikimedia.org/v1/quarry-test | docker build --tag blubber-quarry:01 --file - . | ||
- name: run blubber container | ||
run: | | ||
docker run blubber-quarry:01 |
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
|
||
name: "PR Notification" | ||
|
||
'on': | ||
pull_request: | ||
types: [opened, closed] | ||
|
||
jobs: | ||
irc-notification: | ||
runs-on: ubuntu-latest | ||
name: Notify on IRC | ||
steps: | ||
- name: irc notification | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install netcat -y | ||
message="${{ github.actor }} ${{ github.event.action }} ${{ github.event.pull_request._links.html.href }}" | ||
echo -e "USER notefromgithub notefromgithub notefromgithub :notefromgithub\nNICK notefromgithub\nJOIN #wikimedia-cloud-feed\nPRIVMSG #wikimedia-cloud-feed :${message}\nQUIT\n" | nc irc.libera.chat 6667 | ||
phabricator-comment: | ||
runs-on: ubuntu-latest | ||
name: Comment on Phabricator | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: post to phabricator | ||
run: | | ||
message="${{ github.actor }} ${{ github.event.action }} ${{ github.event.pull_request._links.html.href }}" | ||
git fetch | ||
inital_commit=$(git log origin/main..origin/${{ github.head_ref }} --pretty=%H | tail -n1) | ||
task=$(git log -n 1 ${inital_commit} | tail -n1 | grep "^ Bug: T[0-9]*$" | awk '{print $2}') | ||
# if already squashed and merged use the branch name. | ||
if [ -z "${task}" ]; then | ||
task=$(git log -n 1 origin/${{ github.head_ref }} | tail -n1 | grep "^ Bug: T[0-9]*$" | awk '{print $2}') | ||
fi | ||
if [ -n "${task}" ]; then | ||
curl https://phabricator.wikimedia.org/api/maniphest.edit \ | ||
-d api.token=${{ secrets.TOOLFORGE_PHAB_BOT_KEY }} \ | ||
-d transactions[0][type]=comment \ | ||
-d transactions[0][value]="${message}" \ | ||
-d objectIdentifier=${task} | ||
fi |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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