Skip to content

Commit

Permalink
Merge pull request #52587 from Expensify/georgia-testBuildComment
Browse files Browse the repository at this point in the history
[No QA][ADHOC builds] Add a comment when the build begins
  • Loading branch information
grgia authored Nov 15, 2024
2 parents 9685867 + b60b268 commit c13a1da
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/testBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,24 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

postGitHubCommentBuildStarted:
runs-on: ubuntu-latest
needs: [validateActor, getBranchRef]
if: ${{ fromJSON(needs.validateActor.outputs.READY_TO_BUILD) }}
steps:
- name: Add build start comment
uses: actions/github-script@v7
with:
github-token: ${{ github.token }}
script: |
const workflowURL = `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`;
github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: process.env.PULL_REQUEST_NUMBER,
body: `🚧 @${{ github.actor }} has triggered a test build. You can view the [workflow run here](${workflowURL}).`
});
buildAndroid:
name: Build Android app for testing
uses: ./.github/workflows/buildAndroid.yml
Expand Down

0 comments on commit c13a1da

Please sign in to comment.