Skip to content

Commit 95e0872

Browse files
committed
fix: gitlab action
1 parent 245fa11 commit 95e0872

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/workflows/docker.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,6 @@ jobs:
3030
platforms: linux/amd64
3131
context: ./action
3232
file: ./action/Dockerfile
33-
tags: ${{ secrets.DOCKERHUB_LINGODOTDEV_USERNAME }}/ci-action:latest
33+
tags: |
34+
${{ secrets.DOCKERHUB_LINGODOTDEV_USERNAME }}/ci-action:${{ github.sha }}
35+
${{ secrets.DOCKERHUB_LINGODOTDEV_USERNAME }}/ci-action:latest

action/src/platforms/gitlab.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,10 @@ export class GitlabPlatformKit extends PlatformKit {
9191
}
9292

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

103100
buildPullRequestUrl(pullRequestNumber: number): string {

0 commit comments

Comments
 (0)