Skip to content

test action

test action #80

name: "GitHub Action integration test"
permissions:
contents: write
pull-requests: write
on:
pull_request:
branches:
- main
workflow_dispatch:
jobs:
integration-test:
name: "Run GitHub Action integration test"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run in report only mode
uses: ./
with:
report_only: true
- name: Run in update mode
uses: ./
with:
report_only: false
- name: Delete PR and target_branch
shell: bash
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh pr close ${{ steps.create_branch.outputs.pr_number }}
gh branch delete ${{ steps.branch.outputs.target_branch }} --force