Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions .github/workflows/artifact-links.yml

This file was deleted.

24 changes: 19 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ jobs:
name: dist-files
path: src/dist

- name: Download APK artifact
uses: actions/download-artifact@v5
with:
name: betaflight-configurator-apk
path: apk/

- name: Set short git commit SHA
id: vars
run: |
Expand Down Expand Up @@ -133,9 +139,17 @@ jobs:

- name: Add deployment comment
if: github.event_name == 'pull_request_target' || github.event_name == 'pull_request'
uses: thollander/actions-comment-pull-request@v3
uses: actions/github-script@v7
with:
message: |
Preview URL: ${{ steps.deploy.outputs.pages-deployment-alias-url }}
comment-tag: 'Preview URL'
mode: recreate
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const previewUrl = '${{ steps.deploy.outputs.pages-deployment-alias-url }}';
const apkUrl = '${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}';
const message = `Preview URL: ${previewUrl}\nAndroid APK: [Download from artifacts](${apkUrl})`;

github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: message
});
3 changes: 1 addition & 2 deletions .github/workflows/hide-artifact-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ jobs:
uses: int128/hide-comment-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
starts-with: "Do you want to test this code? Here you have an automated build:"
ends-with: "WARNING: It may be unstable and result in corrupted configurations or data loss. Use only for testing!"
starts-with: "Preview URL:"