Skip to content

upgrade test workflow permissions #7

upgrade test workflow permissions

upgrade test workflow permissions #7

Workflow file for this run

name: Test Action
on:
push:
branches-ignore:
- 'main'
jobs:
test-action:
name: Test create PR on ${{ matrix.os }}
permissions: write-all
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- name: Checkout the repo
uses: actions/[email protected]
- name: Create Pull Request
id: create_pr
uses: ./
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
title: 'Automated Pull Request'
sourceBranch: ${{ github.ref_name }}
targetBranch: 'main'
body: 'This is an automated pull request.'
labels: 'invalid,wontfix'
assignees: ${{ github.actor }}
- name: Output PR URL
run: echo "The PR URL is ${{ steps.create_pr.outputs.PRURL }}"