Skip to content

Commit

Permalink
fix(ci): 🐛 use PAT to push (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
Supporterino authored Sep 10, 2024
1 parent 62c6091 commit e7b5c55
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/app_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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: |
Expand All @@ -58,14 +60,19 @@ 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
run: |
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
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:

- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
git config --global user.name "jellyfin-bot"
git config --global user.email "[email protected]"
- name: Install Helm
uses: azure/setup-helm@v4
Expand All @@ -37,4 +37,4 @@ jobs:
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
config: .github/cr.yaml
config: .github/cr.yaml

0 comments on commit e7b5c55

Please sign in to comment.