Skip to content

Commit 72f3612

Browse files
committed
fix: gitlab action
1 parent 5dd7b65 commit 72f3612

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/docker.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
- action/**
88
branches:
99
- main
10+
- gitlab
1011

1112
jobs:
1213
docker:
@@ -30,4 +31,6 @@ jobs:
3031
platforms: linux/amd64
3132
context: ./action
3233
file: ./action/Dockerfile
33-
tags: ${{ secrets.DOCKERHUB_LINGODOTDEV_USERNAME }}/ci-action:latest
34+
tags: |
35+
${{ secrets.DOCKERHUB_LINGODOTDEV_USERNAME }}/ci-action:latest
36+
${{ secrets.DOCKERHUB_LINGODOTDEV_USERNAME }}/ci-action:${{ github.sha }}

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)