We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc84107 commit 609563fCopy full SHA for 609563f
.github/workflows/e2e.yml
@@ -141,9 +141,18 @@ jobs:
141
sudo cp modctl/modctl /bin/modctl
142
sudo chmod +x /bin/modctl
143
modctl version
144
- modctl login -u ${{ github.actor }} \
145
- -p ${{ secrets.GITHUB_TOKEN }} \
146
- ${{ env.REGISTRY }}
+
+ if [[ "${{ github.event_name }}" == "pull_request" ]]; then
+ 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
153
+ -p ${{ secrets.GITHUB_TOKEN }} \
154
155
+ fi
156
157
- name: Test modctl E2E
158
run: |
0 commit comments