Skip to content

Update golang packages #66

Update golang packages

Update golang packages #66

Workflow file for this run

name: create PR by github-actions[bot]
on:
push:
branches-ignore:
- "main"
env:
BASE_BRANCH: main
REVIEWER: RyotaroSeto
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
create_pr:
# if: ${{ !github.event.created }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: check PR
id: check_pr
run: |
echo "count=$(gh pr list -B ${{ env.BASE_BRANCH }} -H ${{ github.ref_name }} --json 'id' -q '.[] | length')" >> $GITHUB_OUTPUT
- name: Create PR
if: ${{ steps.check_pr.outputs.count == 0 }}
run: gh pr create --fill -B ${{ env.BASE_BRANCH }} -r ${{ env.REVIEWER }}