Skip to content

ci(pull-request): create a build when a pull request gets created … #4

ci(pull-request): create a build when a pull request gets created …

ci(pull-request): create a build when a pull request gets created … #4

name: Pull request bundle
on: pull_request
jobs:
get-repo-information:
runs-on: ubuntu-22.04
steps:
- name: Get repo information
run: |
echo "github.base_ref: ${{ github.base_ref }}"
echo "ref: ${{ github.ref }}"
echo "ref: ${{ github.ref_name }}"
echo "event ref_name: ${{ github.event.ref_name }}"
echo "event ref_name: ${{ github.event.ref }}"
echo "event ref_name: ${{ github.event.pull_request.number }}"
echo "event ref_name: ${{ github.event.before }}"
echo "event ref_name: ${{ github.event.after }}"
bundle:
# Triggers the workflow on events of pull requests with the default branch as the target
if: github.base_ref == github.event.repository.default_branch
name: Bundle version snapshot-pr-#${{ github.event.pull_request.number }}
uses: ./.github/workflows/bundle.yml
with:
version: snapshot-pr-#${{ github.event.pull_request.number }}
retention-days: 8