fix: ci remove pr review trigger (#5105)
* fix: remove pull_request_review trigger to avoid redundant builds * chore: comment out pr-build-url job in nightly workflow
This commit is contained in:
parent
71bb7ce1e9
commit
2744e787d1
50
.github/workflows/jan-electron-build-nightly.yml
vendored
50
.github/workflows/jan-electron-build-nightly.yml
vendored
@ -12,8 +12,6 @@ on:
|
|||||||
- none
|
- none
|
||||||
- aws-s3
|
- aws-s3
|
||||||
default: none
|
default: none
|
||||||
pull_request_review:
|
|
||||||
types: [submitted]
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- release/**
|
- release/**
|
||||||
@ -190,28 +188,28 @@ jobs:
|
|||||||
new_version: ${{ needs.get-update-version.outputs.new_version }}
|
new_version: ${{ needs.get-update-version.outputs.new_version }}
|
||||||
|
|
||||||
|
|
||||||
comment-pr-build-url:
|
# comment-pr-build-url:
|
||||||
needs: [
|
# needs: [
|
||||||
build-tauri-macos,
|
# build-tauri-macos,
|
||||||
build-tauri-windows-x64,
|
# build-tauri-windows-x64,
|
||||||
build-tauri-linux-x64,
|
# build-tauri-linux-x64,
|
||||||
get-update-version,
|
# get-update-version,
|
||||||
set-public-provider,
|
# set-public-provider,
|
||||||
sync-temp-to-latest
|
# sync-temp-to-latest
|
||||||
]
|
# ]
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
if: github.event_name == 'pull_request_review'
|
# if: github.event_name == 'pull_request_review'
|
||||||
steps:
|
# steps:
|
||||||
- name: Set up GitHub CLI
|
# - name: Set up GitHub CLI
|
||||||
run: |
|
# run: |
|
||||||
curl -sSL https://github.com/cli/cli/releases/download/v2.33.0/gh_2.33.0_linux_amd64.tar.gz | tar xz
|
# curl -sSL https://github.com/cli/cli/releases/download/v2.33.0/gh_2.33.0_linux_amd64.tar.gz | tar xz
|
||||||
sudo cp gh_2.33.0_linux_amd64/bin/gh /usr/local/bin/
|
# sudo cp gh_2.33.0_linux_amd64/bin/gh /usr/local/bin/
|
||||||
|
|
||||||
- name: Comment build URL on PR
|
# - name: Comment build URL on PR
|
||||||
env:
|
# env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
# run: |
|
||||||
PR_URL=${{ github.event.pull_request.html_url }}
|
# PR_URL=${{ github.event.pull_request.html_url }}
|
||||||
RUN_ID=${{ github.run_id }}
|
# RUN_ID=${{ github.run_id }}
|
||||||
COMMENT="This is the build for this pull request. You can download it from the Artifacts section here: [Build URL](https://github.com/${{ github.repository }}/actions/runs/${RUN_ID})."
|
# COMMENT="This is the build for this pull request. You can download it from the Artifacts section here: [Build URL](https://github.com/${{ github.repository }}/actions/runs/${RUN_ID})."
|
||||||
gh pr comment $PR_URL --body "$COMMENT"
|
# gh pr comment $PR_URL --body "$COMMENT"
|
||||||
Loading…
x
Reference in New Issue
Block a user