Skip to content

Commit 26666bd

Browse files
authored
Merge pull request #6 from Msameim181/refactor/update_github_action
Refactor/update GitHub action
2 parents 0e45d0e + 0ca0b03 commit 26666bd

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,15 @@ jobs:
4848

4949
steps:
5050
- uses: actions/checkout@v3
51+
with:
52+
token: ${{ secrets.GITHUB_TOKEN }}
53+
fetch-depth: 0
54+
55+
- name: Install dependencies
56+
run: |
57+
python -m pip install --upgrade pip
58+
pip install build toml
59+
5160
5261
- name: Install dependencies
5362
run: |
@@ -61,11 +70,13 @@ jobs:
6170
echo "version=$version" >> $GITHUB_OUTPUT
6271
6372
- name: Create and push tag
73+
env:
74+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6475
run: |
6576
git config --local user.email "[email protected]"
6677
git config --local user.name "GitHub Action"
6778
git tag -a "v${{ steps.get_version.outputs.version }}" -m "Release v${{ steps.get_version.outputs.version }}"
68-
git push origin "v${{ steps.get_version.outputs.version }}"
79+
git push -f https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git "v${{ steps.get_version.outputs.version }}"
6980
7081
publish:
7182
needs: test

0 commit comments

Comments
 (0)