fix(ci): 🐛 use PAT to push (#24)
This commit is contained in:
1 parent
62c6091fc8
commit
e7b5c55a0e
2 files changed
+17
-10
No files matched your search
@@ -17,10 +17,12 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: 3.x
|
||||
|
||||
@@ -48,7 +50,7 @@ jobs:
|
||||
sed -i "s/^appVersion:.*/appVersion: $jellyfin_version/" charts/jellyfin/Chart.yaml
|
||||
|
||||
# Output the new chart version for further use
|
||||
echo "::set-output name=new_version::$new_version"
|
||||
echo "new_version=$new_version" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Commit changes
|
||||
run: |
|
||||
@@ -58,7 +60,9 @@ jobs:
|
||||
git commit -m "chore(jellyfin): Bump chart version to ${{ steps.bump_version.outputs.new_version }} and set appVersion to ${{ github.event.inputs.jellyfin_version }}"
|
||||
|
||||
- name: Push changes
|
||||
run: git push
|
||||
uses: ad-m/github-push-action@master
|
||||
with:
|
||||
github_token: ${{ secrets.JF_BOT_TOKEN }}
|
||||
|
||||
- name: Create Git tag
|
||||
id: create_tag
|
||||
@@ -66,6 +70,9 @@ jobs:
|
||||
new_version="${{ steps.bump_version.outputs.new_version }}"
|
||||
git tag "$new_version"
|
||||
echo "Tag created: $new_version"
|
||||
|
||||
- name: Push tag
|
||||
run: git push origin "${{ steps.bump_version.outputs.new_version }}"
|
||||
|
||||
- name: Push changes
|
||||
uses: ad-m/github-push-action@master
|
||||
with:
|
||||
github_token: ${{ secrets.JF_BOT_TOKEN }}
|
||||
tags: true
|
||||
@@ -24,8 +24,8 @@ jobs:
|
||||
|
||||
- name: Configure Git
|
||||
run: |
|
||||
git config user.name "$GITHUB_ACTOR"
|
||||
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
|
||||
git config --global user.name "jellyfin-bot"
|
||||
git config --global user.email "team@jellyfin.org"
|
||||
|
||||
- name: Install Helm
|
||||
uses: azure/setup-helm@v4
|
||||
@@ -37,4 +37,4 @@ jobs:
|
||||
env:
|
||||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
with:
|
||||
config: .github/cr.yaml
|
||||
config: .github/cr.yaml
|
||||
Reference in new issue
Block a user