Skip to content

Commit df24faa

Browse files
authored
ci(e2e): remove PR event and unify registry login (#284)
Signed-off-by: chlins <[email protected]>
1 parent 9ddcacb commit df24faa

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

.github/workflows/e2e.yml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ on:
44
push:
55
branches: [main, release-*]
66
paths-ignore: ["**.md", "**.png", "**.jpg", "**.svg", "**/docs/**"]
7-
pull_request:
8-
branches: [main, release-*]
9-
paths-ignore: ["**.md", "**.png", "**.jpg", "**.svg", "**/docs/**"]
107
schedule:
118
- cron: "0 1 * * *"
129
workflow_dispatch:
@@ -141,18 +138,9 @@ jobs:
141138
sudo cp modctl/modctl /bin/modctl
142139
sudo chmod +x /bin/modctl
143140
modctl version
144-
145-
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
146-
echo "Login using PAT for Pull Request"
147-
modctl login -u ${{ github.actor }} \
148-
-p ${{ secrets.CR_PAT }} \
149-
${{ env.REGISTRY }}
150-
else
151-
echo "Login using GITHUB_TOKEN"
152-
modctl login -u ${{ github.actor }} \
153-
-p ${{ secrets.GITHUB_TOKEN }} \
154-
${{ env.REGISTRY }}
155-
fi
141+
modctl login -u ${{ github.actor }} \
142+
-p ${{ secrets.GITHUB_TOKEN }} \
143+
${{ env.REGISTRY }}
156144
157145
- name: Test modctl E2E
158146
run: |

0 commit comments

Comments
 (0)