Skip to content

Commit

Permalink
Merge to master publish linux packages (#80)
Browse files Browse the repository at this point in the history
* Separate jobs
  • Loading branch information
luckslovez authored Nov 23, 2023
1 parent 5647547 commit bcc96a5
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions .github/workflows/merge-to-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,35 @@ on:
- test_main

jobs:
publishing-to-s3:
get-release-tag:
name: Publish linux artifacts into s3 bucket
runs-on: ubuntu-latest

outputs:
tag: "tmp-pr-${{ steps.get_pr_number.outputs.result }}"
steps:
- name: Get PR number
uses: actions/github-script@v6
id: get_pr_number
with:
script: |
return (
await github.rest.repos.listPullRequestsAssociatedWithCommit({
commit_sha: context.sha,
owner: context.repo.owner,
repo: context.repo.repo,
})
).data[0].number;
return (
await github.rest.repos.listPullRequestsAssociatedWithCommit({
commit_sha: context.sha,
owner: context.repo.owner,
repo: context.repo.repo,
})
).data[0].number;
result-encoding: string

- name: Publish packages
publish-linux:
name: Publish linux packages to staging and production buckets
needs: get-release-tag
runs-on: ubuntu-latest
steps:
- name: Publish linux packages to staging
uses: newrelic/[email protected]
env:
TAG: "tmp-pr-${{ steps.get_pr_number.outputs.result }}"
TAG: ${{ needs.get-release-tag.outputs.tag }}"
GPG_MAIL: ${{ secrets.LOGGING_GPG_MAIL }}
GPG_PASSPHRASE: ${{ secrets.OHAI_GPG_PASSPHRASE }}
GPG_PRIVATE_KEY_BASE64: ${{ secrets.OHAI_GPG_PRIVATE_KEY_BASE64 }} # base64 encoded
Expand Down

0 comments on commit bcc96a5

Please sign in to comment.