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:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: 3.x
|
python-version: 3.x
|
||||||
|
|
||||||
@@ -48,7 +50,7 @@ jobs:
|
|||||||
sed -i "s/^appVersion:.*/appVersion: $jellyfin_version/" charts/jellyfin/Chart.yaml
|
sed -i "s/^appVersion:.*/appVersion: $jellyfin_version/" charts/jellyfin/Chart.yaml
|
||||||
|
|
||||||
# Output the new chart version for further use
|
# 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
|
- name: Commit changes
|
||||||
run: |
|
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 }}"
|
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
|
- name: Push changes
|
||||||
run: git push
|
uses: ad-m/github-push-action@master
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.JF_BOT_TOKEN }}
|
||||||
|
|
||||||
- name: Create Git tag
|
- name: Create Git tag
|
||||||
id: create_tag
|
id: create_tag
|
||||||
@@ -66,6 +70,9 @@ jobs:
|
|||||||
new_version="${{ steps.bump_version.outputs.new_version }}"
|
new_version="${{ steps.bump_version.outputs.new_version }}"
|
||||||
git tag "$new_version"
|
git tag "$new_version"
|
||||||
echo "Tag created: $new_version"
|
echo "Tag created: $new_version"
|
||||||
|
|
||||||
- name: Push tag
|
- name: Push changes
|
||||||
run: git push origin "${{ steps.bump_version.outputs.new_version }}"
|
uses: ad-m/github-push-action@master
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.JF_BOT_TOKEN }}
|
||||||
|
tags: true
|
||||||
@@ -24,8 +24,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Configure Git
|
- name: Configure Git
|
||||||
run: |
|
run: |
|
||||||
git config user.name "$GITHUB_ACTOR"
|
git config --global user.name "jellyfin-bot"
|
||||||
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
|
git config --global user.email "team@jellyfin.org"
|
||||||
|
|
||||||
- name: Install Helm
|
- name: Install Helm
|
||||||
uses: azure/setup-helm@v4
|
uses: azure/setup-helm@v4
|
||||||
@@ -37,4 +37,4 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
with:
|
with:
|
||||||
config: .github/cr.yaml
|
config: .github/cr.yaml
|
||||||
Reference in new issue
Block a user