Skip to content

Commit

Permalink
Updating Github Action workflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
vc-ci committed Sep 17, 2021
1 parent a60750b commit 02a66f1
Showing 1 changed file with 24 additions and 28 deletions.
52 changes: 24 additions & 28 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,34 +156,30 @@ jobs:
- name: Print all environment variables
run: env

# - name: Push Build Info to Jira
# if: ${{ env.CLOUD_INSTANCE_BASE_URL != 0 && env.CLIENT_ID != 0 && env.CLIENT_SECRET != 0 && steps.jira_keys.outputs.jira-keys != '' && always() }}
# id: push_build_info_to_jira
# uses: HighwayThree/jira-upload-build-info@master
# env:
# CLOUD_INSTANCE_BASE_URL: ${{secrets.CLOUD_INSTANCE_BASE_URL}}
# CLIENT_ID: ${{secrets.CLIENT_ID}}
# CLIENT_SECRET: ${{secrets.CLIENT_SECRET}}
# with:
# cloud-id: '${{ secrets.CLOUD_ID }}'
# client-id: '${{ secrets.CLIENT_ID }}'
# client-secret: '${{ secrets.CLIENT_SECRET }}'
# pipeline-id: '${{ github.repository }} ${{ github.workflow }}'
# build-number: ${{ github.run_number }}
# build-display-name: 'Workflow: ${{ github.workflow }} (#${{ github.run_number }})'
# build-state: '${{ env.BUILD_STATE }}'
# build-url: '${{github.event.repository.url}}/actions/runs/${{github.run_id}}'
# update-sequence-number: '${{ github.run_id }}'
# last-updated: '${{github.event.head_commit.timestamp}}'
# issue-keys: '${{ steps.jira_keys.outputs.jira-keys }}'
# commit-id: '${{ github.sha }}'
# repo-url: '${{ github.event.repository.url }}'
# build-ref-url: '${{ github.event.repository.url }}/actions/runs/${{ github.run_id }}'

# - name: Confirm Jira Build Output
# if: success()
# run: |
# echo "Jira Upload Build Info response: ${{ steps.push_build_info_to_jira.outputs.response }}"
- name: Push Build Info to Jira
if: ${{ env.CLOUD_INSTANCE_BASE_URL != 0 && env.CLIENT_ID != 0 && env.CLIENT_SECRET != 0 && steps.jira_keys.outputs.jira-keys != '' && always() }}
id: push_build_info_to_jira
uses: HighwayThree/jira-upload-build-info@master
with:
cloud-instance-base-url: '${{ secrets.CLOUD_INSTANCE_BASE_URL }}'
client-id: '${{ secrets.CLIENT_ID }}'
client-secret: '${{ secrets.CLIENT_SECRET }}'
pipeline-id: '${{ github.repository }} ${{ github.workflow }}'
build-number: ${{ github.run_number }}
build-display-name: 'Workflow: ${{ github.workflow }} (#${{ github.run_number }})'
build-state: '${{ env.BUILD_STATE }}'
build-url: '${{github.event.repository.url}}/actions/runs/${{github.run_id}}'
update-sequence-number: '${{ github.run_id }}'
last-updated: '${{github.event.head_commit.timestamp}}'
issue-keys: '${{ steps.jira_keys.outputs.jira-keys }}'
commit-id: '${{ github.sha }}'
repo-url: '${{ github.event.repository.url }}'
build-ref-url: '${{ github.event.repository.url }}/actions/runs/${{ github.run_id }}'

- name: Confirm Jira Build Output
if: success()
run: |
echo "Jira Upload Build Info response: ${{ steps.push_build_info_to_jira.outputs.response }}"
deploy:
if: ${{ github.ref == 'refs/heads/dev' && github.event_name != 'workflow_dispatch' }}
Expand Down

0 comments on commit 02a66f1

Please sign in to comment.