This commit is contained in:
nomadics9 2025-01-05 16:26:05 +03:00
parent c5e6c7a028
commit 199583fda7
2 changed files with 25 additions and 48 deletions

View file

@ -179,12 +179,6 @@ jobs:
jq -r '.[] | select(.workflow_id=="main.yml") | .id' | head -n1) jq -r '.[] | select(.workflow_id=="main.yml") | .id' | head -n1)
echo "run_id=$LATEST_RUN" >> "$GITHUB_OUTPUT" echo "run_id=$LATEST_RUN" >> "$GITHUB_OUTPUT"
- name: Test API
env:
MY_TOKEN: ${{ secrets.FORGEJO_TOKEN }}
run: |
curl -v -H "Authorization: token $MY_TOKEN" \
"https://git.askar.tv/api/v1/repos/${{ github.repository }}/actions/runs"
- name: Download Signed AAB - name: Download Signed AAB
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3

View file

@ -1,48 +1,31 @@
name: Publish to Google Play name: Publish AlaskarTV
on: on:
workflow_dispatch: workflow_dispatch:
jobs: jobs:
publish: publish:
runs-on: docker runs-on: ubuntu-latest
container: ghcr.io/catthehacker/ubuntu:act-latest container: ghcr.io/catthehacker/ubuntu:act-latest
permissions:
actions: read
contents: read
steps: steps:
- name: Checkout Repository - name: Get Artifacts from Latest Build
uses: actions/checkout@v4 id: get-artifacts
- name: Get latest successful run ID
id: get-run
run: | run: |
LATEST_RUN=$(curl -s -H "Authorization: token ${FORGEJO_TOKEN}" \ LATEST_RUN=$(gh run list --workflow main.yml --json conclusion,createdAt,displayTitle,headSha --limit 1 | jq -r '.[0].id')
"https://git.askar.tv/api/v1/repos/nomad/alaskartv-app/actions/runs?status=success&event=push&branch=main" | \ echo "run_id=$LATEST_RUN" >> $GITHUB_ENV
jq -r '.[] | select(.workflow_id=="main.yml") | .id' | head -n1)
echo "run_id=$LATEST_RUN" >> "$GITHUB_OUTPUT"
- name: Test API
env:
MY_TOKEN: ${{ secrets.FORGEJO_TOKEN }}
run: |
curl -v -H "Authorization: token $MY_TOKEN" \
"https://git.askar.tv/api/v1/repos/${{ github.repository }}/actions/runs"
- name: Download Signed AAB - name: Download Signed AAB
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: signed-aab name: signed-aab
run-id: ${{ steps.get-run.outputs.run_id }} workflow-run-id: ${{ env.run_id }}
path: ./release path: ./release
- name: Download Debug Symbols - name: Download Debug Symbols
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
workflow: .github/workflows/main.yml
workflow_conclusion: success
name: debug-symbols name: debug-symbols
workflow-run-id: ${{ env.run_id }}
path: ./release/symbols path: ./release/symbols
- name: Use What's New Message - name: Use What's New Message