Skip to content

Commit a96e9da

Browse files
committed
feat: calling github actions for pull requests
1 parent 4772a60 commit a96e9da

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Prepare tag
2323
run: |
2424
PREFIX=${{ inputs.is_dataproc == false && 'local-' || '' }}
25-
TAG="${PREFIX}$(echo $TAG | sed 's/^v//')"
25+
TAG="${PREFIX}$(echo $TAG | sed 's/^v//' | sed 's/\//-/g')"
2626
echo "TAG=$TAG" >> $GITHUB_ENV
2727
echo "The tag for this build is $TAG"
2828
- uses: actions/checkout@v4

.github/workflows/pr.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Pull Request
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
ci:
8+
uses: ./.github/workflows/ci.yaml
9+
10+
build:
11+
needs: ci
12+
uses: ./.github/workflows/build.yaml
13+
with:
14+
is_dataproc: true

0 commit comments

Comments
 (0)