-
Notifications
You must be signed in to change notification settings - Fork 24
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
Showing
1 changed file
with
1 addition
and
18 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 |
---|---|---|
|
@@ -31,18 +31,9 @@ jobs: | |
- uses: actions/checkout@v3 | ||
with: | ||
# ref: ${{ github.event.pull_request.head.sha }} | ||
fetch-depth: 0 | ||
fetch-tags: true | ||
|
||
# - name: Rebase | ||
# if: github.event_name == 'pull_request' | ||
# run: | | ||
# git config user.email '[email protected]' | ||
# git config user.name 'hpccsystems development' | ||
# git rebase origin/${{ github.event.pull_request.base.ref }} | ||
# git log --pretty=one -n 15 | ||
|
||
- name: Extract Latest Tagged Version | ||
id: extract_version | ||
env: | ||
|
@@ -75,15 +66,6 @@ jobs: | |
def getTagVersionForCmd(cmd): | ||
versionPattern = re.compile(r'.*([0-9]+\.[0-9]+\.[0-9]+).*') | ||
# Echo git tag command | ||
print('Running: ' + cmd) | ||
# Print current directory | ||
print('Current directory: ' + os.getcwd()) | ||
# List files in current directory | ||
print('Files in current directory: ' + str(os.listdir())) | ||
# Get latest release version | ||
gitTagProcess = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True) | ||
(output, err) = gitTagProcess.communicate() | ||
|
@@ -124,6 +106,7 @@ jobs: | |
return getTagVersionForCmd(findLatestBranchVer) | ||
branch_name = os.environ['BRANCH_NAME'] | ||
print("Branch Name: " + branch_name) | ||
latestVersion = getLatestBranchVersion(branch_name) | ||
latestVersionURL = 'https://cdn.hpccsystems.com/releases/CE-Candidate-' + latestVersion + '/bin/platform/hpccsystems-platform-community_' + latestVersion + '-1jammy_amd64_withsymbols.deb' | ||
|