Skip to content

Commit

Permalink
fix: env variable issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ElusAegis committed Dec 10, 2024
1 parent ac14739 commit 15b4059
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/update-ios-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ jobs:
git config user.name "GitHub Action"
git config user.email "[email protected]"
git remote set-url origin https://ElusAegis:${EZKL_SWIFT_PACKAGE_REPO_TOKEN}@${{ env.EZKL_SWIFT_PACKAGE_REPO }}
env:
EZKL_SWIFT_PACKAGE_REPO_TOKEN: ${{ secrets.EZKL_PORTER_TOKEN }}

- name: Commit and Push Changes
if: steps.check_changes.outputs.no_changes == 'false'
Expand All @@ -100,8 +102,6 @@ jobs:
echo "::error::Failed to push changes to ${{ env.EZKL_SWIFT_PACKAGE_REPO }}. Please ensure that EZKL_PORTER_TOKEN has the correct permissions."
exit 1
fi
env:
EZKL_SWIFT_PACKAGE_REPO_TOKEN: ${{ secrets.EZKL_PORTER_TOKEN }}
- name: Tag the latest commit
run: |
Expand All @@ -111,6 +111,4 @@ jobs:
if ! git push origin ${{ github.event.inputs.tag }}; then
echo "::error::Failed to push tag '${{ github.event.inputs.tag }}' to ${{ env.EZKL_SWIFT_PACKAGE_REPO }}. Please ensure EZKL_PORTER_TOKEN has correct permissions."
exit 1
fi
env:
EZKL_SWIFT_PACKAGE_REPO_TOKEN: ${{ secrets.EZKL_PORTER_TOKEN }}
fi

0 comments on commit 15b4059

Please sign in to comment.