Skip to content

Commit

Permalink
fix: gitlab action
Browse files Browse the repository at this point in the history
  • Loading branch information
mathio committed Jan 28, 2025
1 parent 5dd7b65 commit 6113424
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
- action/**
branches:
- main
- gitlab

jobs:
docker:
Expand All @@ -30,4 +31,4 @@ jobs:
platforms: linux/amd64
context: ./action
file: ./action/Dockerfile
tags: ${{ secrets.DOCKERHUB_LINGODOTDEV_USERNAME }}/ci-action:latest
tags: ${{ secrets.DOCKERHUB_LINGODOTDEV_USERNAME }}/ci-action:gitlab
8 changes: 4 additions & 4 deletions action/src/platforms/gitlab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,13 @@ export class GitlabPlatformKit extends PlatformKit {
}

gitConfig(): Promise<void> | void {
const url = `https://gitlab-ci-token:${this.platformConfig.glToken}@gitlab.com/${this.platformConfig.repositoryOwner}/${this.platformConfig.repositoryName}.git`;
const url = `https://oauth2:${this.platformConfig.glToken}@gitlab.com/${this.platformConfig.repositoryOwner}/${this.platformConfig.repositoryName}.git`;
execSync(`git remote set-url origin ${url}`, {
stdio: "inherit",
});
execSync(`git checkout -b ${this.platformConfig.baseBranchName}`, {
stdio: "inherit",
});
// execSync(`git checkout -b ${this.platformConfig.baseBranchName}`, {
// stdio: "inherit",
// });
}

buildPullRequestUrl(pullRequestNumber: number): string {
Expand Down

0 comments on commit 6113424

Please sign in to comment.