Skip to content

Commit

Permalink
Added PAT auth
Browse files Browse the repository at this point in the history
  • Loading branch information
Dani-Koza-AF committed Oct 23, 2024
1 parent e3da9db commit 7b0116e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/create-release-branch-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Login to Github

- name: Setup Git Authentication
env:
COMMIT_AUTHOR: ${{ secrets.CI_COMMIT_AUTHOR }}
COMMIT_EMAIL: ${{ secrets.CI_COMMIT_EMAIL }}
MY_PERSONAL_ACCESS_TOKEN: ${{ secrets.CI_DEV_GITHUB_TOKEN }}
run: |
git config --global user.name $COMMIT_AUTHOR
git config --global user.email $COMMIT_EMAIL
git config --global credential.helper store
git credential approve <<< "url=https://github.com
username=x-access-token
password=$MY_PERSONAL_ACCESS_TOKEN"
- name: Create New Branch
id: createBranch
run: |
Expand All @@ -42,6 +49,7 @@ jobs:
export branchName
echo "BRANCH_NAME=$branchName" >> $GITHUB_ENV
git checkout -b $branchName
- name: Update Codebase
run: |
.github/workflows/scripts/updatePlugin.sh pluginVersion=${{ inputs.versionName }} buildNumber=${{ github.run_number }} iOSVersion=${{ inputs.iosVersion }} androidVersion=${{ inputs.AndroidVersion }}
Expand Down

0 comments on commit 7b0116e

Please sign in to comment.