Skip to content

Commit 38f19bf

Browse files
ci: changes the way main is checked out
1 parent ea82333 commit 38f19bf

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/release.yaml

+2-5
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,12 @@ jobs:
1919

2020
- name: Checkout code
2121
uses: actions/checkout@v4
22-
23-
- name: Configure git to use the token
24-
run: |
25-
git remote set-url origin https://${{ steps.generate-github-token.outputs.token }}@github.com/${{ github.repository }}.git
22+
ref: main
23+
token: ${{ steps.generate-github-token.outputs.token }}
2624

2725
- name: Bump version in plugin.yaml
2826
run: |
2927
VERSION=$(echo ${GITHUB_REF#refs/tags/})
30-
git checkout main
3128
sed -i "s/version:.*/version: $VERSION/" plugin.yaml
3229
git config --global user.name 'github-actions'
3330
git config --global user.email 'github-actions@github.com'

0 commit comments

Comments
 (0)