-
Notifications
You must be signed in to change notification settings - Fork 2
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
1 parent
95b6e9d
commit afb1913
Showing
21 changed files
with
195 additions
and
59 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 |
---|---|---|
|
@@ -77,6 +77,15 @@ jobs: | |
ref: ${{ inputs.branch }} | ||
ssh-key: ${{ secrets.GH_PAT }} | ||
|
||
- name: Import GPG Key | ||
if: ${{ inputs.update_version }} | ||
env: | ||
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} | ||
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }} | ||
run: | | ||
echo "$GPG_PRIVATE_KEY" | gpg --import | ||
git config --global user.signingkey $GPG_KEY_ID | ||
- name: Set Repo Name | ||
run: | | ||
repo_name=$(basename ${{ github.repository }}) | ||
|
@@ -211,6 +220,15 @@ jobs: | |
ref: ${{ inputs.branch }} | ||
ssh-key: ${{ secrets.GH_PAT }} | ||
|
||
- name: Import GPG Key | ||
if: ${{ inputs.update_version }} | ||
env: | ||
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} | ||
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }} | ||
run: | | ||
echo "$GPG_PRIVATE_KEY" | gpg --import | ||
git config --global user.signingkey $GPG_KEY_ID | ||
- name: Authenticate to Google Cloud | ||
if: ${{ !inputs.skip_deploy && inputs.gcp_project_id != '' && inputs.token_secret_name != '' }} | ||
uses: google-github-actions/[email protected] # Use the latest version available | ||
|
@@ -231,6 +249,10 @@ jobs: | |
# set the secret value as an environment variable | ||
echo "TOKEN=$SECRET_VALUE" >> $GITHUB_ENV | ||
- name: Install jq | ||
if: ${{ inputs.update_version }} | ||
run: sudo apt-get update && sudo apt-get install -y jq | ||
|
||
- name: Set Repo Name | ||
run: | | ||
repo_name=$(basename ${{ github.repository }}) | ||
|
@@ -325,6 +347,10 @@ jobs: | |
- name: Install yq | ||
run: sudo snap install yq | ||
|
||
- name: install semver globally | ||
if: ${{ inputs.update_version }} | ||
run: npm install -g semver | ||
|
||
- name: Update Version | ||
if: ${{ inputs.update_version }} | ||
run: ${{ inputs.update_version_command }} | ||
|
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 |
---|---|---|
|
@@ -77,6 +77,15 @@ jobs: | |
ref: ${{ inputs.branch }} | ||
ssh-key: ${{ secrets.GH_PAT }} | ||
|
||
- name: Import GPG Key | ||
if: ${{ inputs.update_version }} | ||
env: | ||
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} | ||
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }} | ||
run: | | ||
echo "$GPG_PRIVATE_KEY" | gpg --import | ||
git config --global user.signingkey $GPG_KEY_ID | ||
- name: Set Repo Name | ||
run: | | ||
repo_name=$(basename ${{ github.repository }}) | ||
|
@@ -211,6 +220,15 @@ jobs: | |
ref: ${{ inputs.branch }} | ||
ssh-key: ${{ secrets.GH_PAT }} | ||
|
||
- name: Import GPG Key | ||
if: ${{ inputs.update_version }} | ||
env: | ||
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} | ||
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }} | ||
run: | | ||
echo "$GPG_PRIVATE_KEY" | gpg --import | ||
git config --global user.signingkey $GPG_KEY_ID | ||
- name: Authenticate to Google Cloud | ||
if: ${{ !inputs.skip_deploy && inputs.gcp_project_id != '' && inputs.token_secret_name != '' }} | ||
uses: google-github-actions/[email protected] # Use the latest version available | ||
|
@@ -231,6 +249,10 @@ jobs: | |
# set the secret value as an environment variable | ||
echo "TOKEN=$SECRET_VALUE" >> $GITHUB_ENV | ||
- name: Install jq | ||
if: ${{ inputs.update_version }} | ||
run: sudo apt-get update && sudo apt-get install -y jq | ||
|
||
- name: Set Repo Name | ||
run: | | ||
repo_name=$(basename ${{ github.repository }}) | ||
|
@@ -325,6 +347,10 @@ jobs: | |
- name: Install yq | ||
run: sudo snap install yq | ||
|
||
- name: install semver globally | ||
if: ${{ inputs.update_version }} | ||
run: npm install -g semver | ||
|
||
- name: Update Version | ||
if: ${{ inputs.update_version }} | ||
run: ${{ inputs.update_version_command }} | ||
|
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
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
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
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
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
Oops, something went wrong.