Skip to content

Commit

Permalink
fix: try to push using ssh
Browse files Browse the repository at this point in the history
  • Loading branch information
bastiandoetsch committed Jun 19, 2024
1 parent 2d24a06 commit 910765a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/create-cli-pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
set -ex

CLI_DIR=$(mktemp -d)
gh repo clone snyk/cli $CLI_DIR
gh repo clone [email protected]:snyk/cli.git $CLI_DIR -- --depth=1
pushd $CLI_DIR
UPGRADE=$(go run scripts/upgrade-snyk-go-dependencies.go --name=snyk-ls)
LS_VERSION=$(echo $UPGRADE | sed 's/.*Sha: \(.*\) URL.*/\1/')
BRANCH=feat/automatic-upgrade-of-ls-to-$LS_VERSION
git checkout -b $BRANCH

git config --global user.email "team-ide-user@snyk.io"
git config --global user.name "Snyk Team IDE User"
git config --global user.email "[email protected]"
git config --global user.name "Snyk Team IDE"

git commit -am "feat: automatic integration of language server $LS_VERSION"
git push --set-upstream origin $BRANCH
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/create-cli-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,14 @@ jobs:
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 }}
GITHUB_TOKEN: ${{ secrets.HAMMERHEAD_GITHUB_PAT_SNYKLS }}TEAM_IDE_USER_SSH

run: |
.github/create-cli-pr.sh
4 changes: 4 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ jobs:
run: |
.github/upload-to-s3.sh
- 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 }}
Expand Down

0 comments on commit 910765a

Please sign in to comment.