Skip to content

Create CLI PR

Create CLI PR #18

Workflow file for this run

name: Create CLI PR
on:
workflow_dispatch:
jobs:
create-pr:
runs-on: ubuntu-latest
steps:
- name: Prepare git
run: git config --global core.autocrlf false
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Determine Go version
run: |
sed -En 's/^go[[:space:]]+([[:digit:].]+)$/GO_VERSION=\1/p' go.mod >> $GITHUB_ENV
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.TEAM_IDE_USER_SSH }}
- name: Create PR in CLI to integrate LS
env:
GH_TOKEN: ${{ secrets.HAMMERHEAD_GITHUB_PAT_SNYKLS }}
GITHUB_TOKEN: ${{ secrets.HAMMERHEAD_GITHUB_PAT_SNYKLS }}
PUB_SIGNING_KEY: ${{ secrets.TEAM_IDE_USER_SSH_PUB }}
run: |
.github/create-cli-pr.sh