Skip to content

Commit d359f18

Browse files
SK-1786 test common workflow
1 parent 525bbb8 commit d359f18

3 files changed

Lines changed: 42 additions & 40 deletions

File tree

.github/workflows/internal-release.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
- "*.md"
88
branches:
99
- release/*
10+
pull_request:
11+
branches: [ release/* ]
1012

1113
jobs:
1214
build-and-deploy:
@@ -15,8 +17,9 @@ jobs:
1517
ref: ${{ github.ref_name }}
1618
is-internal: true
1719
server-id: central
18-
server-username: ${{ secrets.ARTIFACTORY_USERNAME }}
19-
server-password: ${{ secrets.ARTIFACTORY_PASSWORD }}
20-
gpg-key: ${{ secrets.JFROG_GPG_KEY }}
21-
gpg-passphrase: ${{ secrets.JFROG_GPG_PASSPHRASE }}
2220
profile: jfrog
21+
env:
22+
SERVER_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
23+
SERVER_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
24+
GPG_KEY: ${{ secrets.JFROG_GPG_KEY }}
25+
GPG_PASSPHRASE: ${{ secrets.JFROG_GPG_PASSPHRASE }}

.github/workflows/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: PR CI Checks
22

3-
on: [pull_request]
3+
# on: [pull_request]
44

55
jobs:
66
check-commit-message:

.github/workflows/shared-build-and-deploy.yml

Lines changed: 34 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,25 @@ on:
1717
required: true
1818
type: string
1919

20-
server-username:
21-
description: 'Username of the repository'
22-
required: true
23-
type: string
20+
# server-username:
21+
# description: 'Username of the repository'
22+
# required: true
23+
# type: string
2424

25-
server-password:
26-
description: 'Password of the repository'
27-
required: true
28-
type: string
25+
# server-password:
26+
# description: 'Password of the repository'
27+
# required: true
28+
# type: string
2929

30-
gpg-key:
31-
description: 'GPG key to access the repository'
32-
required: true
33-
type: string
30+
# gpg-key:
31+
# description: 'GPG key to access the repository'
32+
# required: true
33+
# type: string
3434

35-
gpg-passphrase:
36-
description: 'GPG passphrase to access the repository'
37-
required: true
38-
type: string
35+
# gpg-passphrase:
36+
# description: 'GPG passphrase to access the repository'
37+
# required: true
38+
# type: string
3939

4040
profile:
4141
description: 'Profile to pick from pom.xml'
@@ -59,7 +59,7 @@ jobs:
5959
server-id: ${{ inputs.server-id }}
6060
server-username: SERVER_USERNAME
6161
server-password: SERVER_PASSWORD
62-
gpg-private-key: ${{ inputs.gpg-key }} # Value of the GPG private key to import
62+
gpg-private-key: ${{ env.gpg-key }} # Value of the GPG private key to import
6363
gpg-passphrase: GPG_PASSPHRASE # env variable for GPG private key passphrase
6464

6565
- name: Get Previous tag
@@ -77,17 +77,17 @@ jobs:
7777
./ci-scripts/bump_version.sh "${{ steps.previoustag.outputs.tag }}"
7878
fi
7979
80-
- name: Commit changes
81-
run: |
82-
git config user.name ${{ github.actor }}
83-
git config user.email ${{ github.actor }}@users.noreply.github.com
84-
git add pom.xml
85-
if ${{ inputs.is-internal }}; then
86-
git commit -m "[AUTOMATED] Private Release ${{ steps.previoustag.outputs.tag }}-dev-$(git rev-parse --short $GITHUB_SHA)"
87-
git push origin ${{ github.ref_name }} -f
88-
else
89-
git commit -m "[AUTOMATED] Public Release - ${{ steps.previoustag.outputs.tag }}"
90-
git push origin
80+
# - name: Commit changes
81+
# run: |
82+
# git config user.name ${{ github.actor }}
83+
# git config user.email ${{ github.actor }}@users.noreply.github.com
84+
# git add pom.xml
85+
# if ${{ inputs.is-internal }}; then
86+
# git commit -m "[AUTOMATED] Private Release ${{ steps.previoustag.outputs.tag }}-dev-$(git rev-parse --short $GITHUB_SHA)"
87+
# git push origin ${{ github.ref_name }} -f
88+
# else
89+
# git commit -m "[AUTOMATED] Public Release - ${{ steps.previoustag.outputs.tag }}"
90+
# git push origin
9191

9292
- name: Create env
9393
if: ${{ inputs.is-internal }}
@@ -104,10 +104,9 @@ jobs:
104104
name: "credentials.json"
105105
json: ${{ secrets.TEST_CREDENTIALS_FILE_STRING }}
106106

107-
- name: Publish package
108-
run: mvn clean deploy -P ${{ inputs.profile }}
109-
env:
110-
SERVER_USERNAME: ${{ inputs.server-username }}
111-
SERVER_PASSWORD: ${{ inputs.server-password }}
112-
GPG_PASSPHRASE: ${{ inputs.gpg-passphrase }}
113-
107+
# - name: Publish package
108+
# run: mvn clean deploy -P ${{ inputs.profile }}
109+
# env:
110+
# SERVER_USERNAME: ${{ env.SERVER_USERNAME }}
111+
# SERVER_PASSWORD: ${{ env.SERVER_PASSWORD }}
112+
# GPG_PASSPHRASE: ${{ env.GPG_PASSPHRASE }}

0 commit comments

Comments
 (0)