Skip to content
This repository has been archived by the owner on May 19, 2024. It is now read-only.

Commit

Permalink
Create workflow to label prs (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
wanjohiryan authored Jan 30, 2023
1 parent 77bfdd0 commit 27e544a
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .github/label-regex.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
'type: bug':
- '\bFix\b'
2 changes: 2 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
'type: docs':
- '**/*.md'
26 changes: 26 additions & 0 deletions .github/workflows/auto-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: "Label this pull request"

on:
pull_request:
types: [opened, edited]

jobs:
build-docker-base-package:
runs-on: ubuntu-latest
#
# do not run on forks
#
if: github.repository_owner == 'wanjohiryan'
steps:
-
name: Checkout
uses: actions/checkout@v3
- uses: github/[email protected] #Label based on regex
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/label-regex.yml
not-before: 2023-01-30T02:54:32Z
enable-versioned-regex: 0
- uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
13 changes: 4 additions & 9 deletions .github/workflows/dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,14 @@ name: "Push image to Docker Hub"
on:
push:
branches: [ main ]
#
# Run this action periodically to keep docker up-to-date
# even if there is no activity in this repo.
#
schedule:
- cron: "5 0 * * THU" #every thursday
# run it during pull request
tags:
- v*.*.*

env:
REGISTRY: ghcr.io
IMAGE_NAME: wanjohiryan/warp
BASE_TAG_PREFIX: x264
CHROME_TAG_PREFIX: chrome-x264
BASE_TAG_PREFIX: x264.
CHROME_TAG_PREFIX: chrome-x264.

jobs:
build-docker-base-package:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
pull_request:

jobs:
build-docker-base:
auto-label-prs:
name: Build docker image for testing
runs-on: ubuntu-latest

Expand Down

0 comments on commit 27e544a

Please sign in to comment.