mirror of
https://github.com/TrianguloY/UrlChecker.git
synced 2024-09-19 20:02:16 +02:00
more fixes to the action
This commit is contained in:
parent
2e522da87b
commit
187641dda3
10
.github/workflows/validate-gradle-build-test.yml
vendored
10
.github/workflows/validate-gradle-build-test.yml
vendored
@ -51,15 +51,15 @@ jobs:
|
|||||||
# the following steps will only run for PRs
|
# the following steps will only run for PRs
|
||||||
|
|
||||||
- name: "[PR] Generate apk"
|
- name: "[PR] Generate apk"
|
||||||
if: ${{ github.event_name == 'pull_request' }}
|
if: ${{ github.event_name == 'pull_request_target' }}
|
||||||
uses: gradle/gradle-build-action@v3
|
uses: gradle/gradle-build-action@v3
|
||||||
with:
|
with:
|
||||||
arguments: >
|
arguments: >
|
||||||
assemble${{ env.VARIANT }}
|
assemble${{ env.VARIANT }}
|
||||||
|
|
||||||
- name: Upload apk as artifact
|
- name: "[PR] Upload apk as artifact"
|
||||||
id: artifact-upload-step
|
id: artifact-upload-step
|
||||||
if: ${{ github.event_name == 'pull_request' }}
|
if: ${{ github.event_name == 'pull_request_target' }}
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: ./app/build/outputs/apk/${{ env.VARIANT }}/app-${{ env.VARIANT }}.apk
|
path: ./app/build/outputs/apk/${{ env.VARIANT }}/app-${{ env.VARIANT }}.apk
|
||||||
@ -70,7 +70,7 @@ jobs:
|
|||||||
artifact-url: ${{ steps.artifact-upload-step.outputs.artifact-url }}
|
artifact-url: ${{ steps.artifact-upload-step.outputs.artifact-url }}
|
||||||
|
|
||||||
comment:
|
comment:
|
||||||
if: ${{ github.event_name == 'pull_request' }}
|
if: ${{ github.event_name == 'pull_request_target' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build
|
needs: build
|
||||||
permissions:
|
permissions:
|
||||||
@ -96,7 +96,7 @@ jobs:
|
|||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
<sub>This is an automatic comment created by a [Github Action](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}?pr=${{ github.event.pull_request.number })</sub>
|
<sub>This is an automatic comment created by a [Github Action](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}?pr=${{ github.event.pull_request.number }})</sub>
|
||||||
"
|
"
|
||||||
|
|
||||||
# use --edit-last-or-create whenever it is ready: https://github.com/cli/cli/issues/6790
|
# use --edit-last-or-create whenever it is ready: https://github.com/cli/cli/issues/6790
|
||||||
|
Loading…
Reference in New Issue
Block a user