Skip to content

ci: improved tags in pull-request #41

ci: improved tags in pull-request

ci: improved tags in pull-request #41

name: "Test: PR"
on:
workflow_dispatch:
pull_request:
branches:
- main
- 'prerelease/**'
jobs:
pr-tags:
runs-on: ubuntu-latest
outputs:
tags: ${{ steps.pr-tags.outputs.tags }}
steps:
- uses: actions/checkout@v4
- uses: 8BitJonny/gh-get-current-pr@3.0.0
id: PR
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
sha: ${{ github.event.pull_request.head.sha }}
filterOutClosed: true
- name: Parse Tags from PR Body
id: pr-tags
run: bash scripts/pr-tags-parse.sh "${{ env.PR_BODY }}"
env:
PR_BODY: ${{ steps.PR.outputs.pr_body }}
e2e-electron:
name: e2e
uses: ./.github/workflows/test-e2e-linux.yml
needs: pr-tags
with:
grep: ${{ needs.pr-tags.outputs.tags }}
display_name: "electron (linux)"
currents_tags: "pull-request,electron/linux,${{ needs.pr-tags.outputs.tags }}"
secrets: inherit
unit-tests:
name: test
uses: ./.github/workflows/test-unit.yml
secrets: inherit
integration-tests:
name: test
uses: ./.github/workflows/test-integration.yml
secrets: inherit