0
0
mirror of https://github.com/TrianguloY/UrlChecker.git synced 2024-09-19 20:02:16 +02:00

fix permission from fork

This commit is contained in:
TrianguloY 2024-08-21 16:40:46 +02:00
parent b6d599e5ce
commit 2e522da87b

View File

@ -1,12 +1,12 @@
# This actions validates the gradle files and runs a build test to ensure the app is not corrupted # This actions validates the gradle files and runs a build test to ensure the app is not corrupted
# if succeeded and the source is a pull request, builds an evaluation apk # if succeeded, and the source is a pull request, builds an evaluation apk and posts a comment to download it
name: Validate gradle build test name: Validate gradle build test
on: on:
push: push:
branches: branches:
- master - master
pull_request: pull_request_target:
branches: branches:
- master - master
@ -50,7 +50,7 @@ jobs:
# the following steps will only run for PRs # the following steps will only run for PRs
- name: Generate apk - name: "[PR] Generate apk"
if: ${{ github.event_name == 'pull_request' }} if: ${{ github.event_name == 'pull_request' }}
uses: gradle/gradle-build-action@v3 uses: gradle/gradle-build-action@v3
with: with:
@ -77,7 +77,7 @@ jobs:
pull-requests: write # need to write the comment pull-requests: write # need to write the comment
steps: steps:
- name: Create comment - name: "[PR] Comment url to artifact"
env: env:
GH_TOKEN: ${{ github.token }} GH_TOKEN: ${{ github.token }}
run: | run: |
@ -92,11 +92,11 @@ jobs:
You must be logged in for the link to work. You must be logged in for the link to work.
The link will expire at $(date -d "+$RETENTION_DAYS days"). The link will expire in $RETENTION_DAYS days, at $(date -d "+$RETENTION_DAYS days").
<hr> <hr>
<sub>This is an automatic comment created by a [Github Action](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})</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