Skip to content

Commit

Permalink
Persist credentials in version bump actions
Browse files Browse the repository at this point in the history
  • Loading branch information
miklschmidt committed Jul 27, 2024
1 parent c195407 commit 8667a33
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}
persist-credentials: true
ref: "v2.1.x"

- name: "RatOS: Get current version"
Expand All @@ -28,7 +29,7 @@ jobs:
version=$(cat ./src/version)
echo "version=${version}" >> $GITHUB_OUTPUT
- name: "RatOS: Push version number"
- name: "RatOS: Add version file"
if: steps.current-version.outputs.version != github.event.inputs.version
shell: bash
run: |
Expand All @@ -41,7 +42,8 @@ jobs:
default_author: github_actions
message: "Bump version to v${{ github.event.inputs.version }}"
github_token: ${{ secrets.PAT }}
tag: "v${{ github.event.inputs.version }}"
tag: "v${{ github.event.inputs.version }} --force"
tag_push: "--force"
push: true

configurator-push-version-number:
Expand All @@ -55,6 +57,7 @@ jobs:
with:
token: ${{ secrets.PAT }}
repository: Rat-OS/RatOS-configurator
persist-credentials: true
ref: "v2.1.x-deployment"

- name: "RatOS Configurator: git add & commit & tag & push"
Expand All @@ -78,6 +81,7 @@ jobs:
with:
token: ${{ secrets.PAT }}
repository: Rat-OS/RatOS-configuration
persist-credentials: true
ref: "v2.1.x"

- name: "RatOS-configuration: git add & commit & tag & push"
Expand All @@ -101,6 +105,7 @@ jobs:
with:
token: ${{ secrets.PAT }}
repository: Rat-OS/RatOS-theme
persist-credentials: true
ref: "v2.1.x"

- name: "RatOS-theme: git add & commit & tag & push"
Expand Down

0 comments on commit 8667a33

Please sign in to comment.