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

Commit 27e544a

Browse files
authored
Create workflow to label prs (#33)
1 parent 77bfdd0 commit 27e544a

File tree

5 files changed

+35
-10
lines changed

5 files changed

+35
-10
lines changed

.github/label-regex.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
'type: bug':
2+
- '\bFix\b'

.github/labeler.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
'type: docs':
2+
- '**/*.md'

.github/workflows/auto-labeler.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: "Label this pull request"
2+
3+
on:
4+
pull_request:
5+
types: [opened, edited]
6+
7+
jobs:
8+
build-docker-base-package:
9+
runs-on: ubuntu-latest
10+
#
11+
# do not run on forks
12+
#
13+
if: github.repository_owner == 'wanjohiryan'
14+
steps:
15+
-
16+
name: Checkout
17+
uses: actions/checkout@v3
18+
- uses: github/issue-labeler@v2.6 #Label based on regex
19+
with:
20+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
21+
configuration-path: .github/label-regex.yml
22+
not-before: 2023-01-30T02:54:32Z
23+
enable-versioned-regex: 0
24+
- uses: actions/labeler@v4
25+
with:
26+
repo-token: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/dockerhub.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,14 @@ name: "Push image to Docker Hub"
33
on:
44
push:
55
branches: [ main ]
6-
#
7-
# Run this action periodically to keep docker up-to-date
8-
# even if there is no activity in this repo.
9-
#
10-
schedule:
11-
- cron: "5 0 * * THU" #every thursday
12-
# run it during pull request
6+
tags:
7+
- v*.*.*
138

149
env:
1510
REGISTRY: ghcr.io
1611
IMAGE_NAME: wanjohiryan/warp
17-
BASE_TAG_PREFIX: x264
18-
CHROME_TAG_PREFIX: chrome-x264
12+
BASE_TAG_PREFIX: x264.
13+
CHROME_TAG_PREFIX: chrome-x264.
1914

2015
jobs:
2116
build-docker-base-package:

.github/workflows/pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
pull_request:
66

77
jobs:
8-
build-docker-base:
8+
auto-label-prs:
99
name: Build docker image for testing
1010
runs-on: ubuntu-latest
1111

0 commit comments

Comments
 (0)