Skip to content

Commit

Permalink
Refactor env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
dottxado committed Jan 27, 2025
1 parent c578046 commit b26f162
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/test-playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,20 +98,25 @@ jobs:
.forEach(envVar => core.exportVariable(envVar.name, envVar.value));
- name: Set up SSH
if: ${{ secrets.GITHUB_USER_SSH_KEY != '' }}
env:
GITHUB_USER_SSH_KEY: ${{ secrets.GITHUB_USER_SSH_KEY }}
if: ${{ env.GITHUB_USER_SSH_KEY != '' }}
uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.GITHUB_USER_SSH_KEY }}
ssh-private-key: ${{ env.GITHUB_USER_SSH_KEY }}

- name: Set up Git
if: ${{ secrets.GITHUB_USER_EMAIL != '' && secrets.GITHUB_USER_NAME != '' }}
env:
GITHUB_USER_EMAIL: ${{ secrets.GITHUB_USER_EMAIL }}
GITHUB_USER_NAME: ${{ secrets.GITHUB_USER_NAME }}
if: ${{ env.GITHUB_USER_EMAIL != '' && env.GITHUB_USER_NAME != '' }}
run: |
git config --global user.email "${{ secrets.GITHUB_USER_EMAIL }}"
git config --global user.name "${{ secrets.GITHUB_USER_NAME }}"
git config --global user.email "${{ env.GITHUB_USER_EMAIL }}"
git config --global user.name "${{ env.GITHUB_USER_NAME }}"
- name: Check if PHP installation is needed
run: |
if [ "${{ hashFiles('composer.json') }}" != '' && "${{inputs.PHP_VERSION }}" != '' ]; then
if [ "${{ hashFiles('composer.json') }}" != '' && "${{ inputs.PHP_VERSION }}" != '' ]; then
echo "PHP_CHECK=true" >> $GITHUB_ENV
fi
Expand Down

0 comments on commit b26f162

Please sign in to comment.