Skip to content

pass token for gh cli #4

pass token for gh cli

pass token for gh cli #4

Workflow file for this run

name: Test Action
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test-action:
name: Test create PR on ${{ matrix.os }}
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: 'automated,pr'
assignees: 'octocat'
- name: Output PR URL
run: echo "The PR URL is ${{ steps.create_pr.outputs.PRURL }}"