Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rez1dent3 committed Feb 2, 2024
1 parent 7120f5e commit 971df2d
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 35 deletions.
68 changes: 34 additions & 34 deletions .github/workflows/phpstan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,37 +40,37 @@ jobs:
- name: Run phpstan
run: composer phpstan-baseline

- name: "Check if build has changed"
if: success()
id: has-changes
run: |
echo "stdout<<EOF" >> $GITHUB_OUTPUT
echo "$(git diff --stat)" >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT
- name: Import GPG key
if: ${{ steps.has-changes.outputs.stdout }}
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_BOT }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
fingerprint: ${{ secrets.GPG_FINGERPRINT }}
git_config_global: true
git_user_signingkey: true
git_commit_gpgsign: true
git_committer_name: Github bot
git_committer_email: [email protected]

- name: "Commit files"
if: ${{ steps.has-changes.outputs.stdout }}
env:
GH_TOKEN: ${{ secrets.BOT_TOKEN }}
run: |
gh pr checkout ${{ github.event.pull_request.number }}
git commit -S -m "build action" -a
- name: "Push changes"
if: ${{ steps.has-changes.outputs.stdout }}
env:
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
run: git push -u origin HEAD
# - name: "Check if build has changed"
# if: success()
# id: has-changes
# run: |
# echo "stdout<<EOF" >> $GITHUB_OUTPUT
# echo "$(git diff --stat)" >> $GITHUB_OUTPUT
# echo 'EOF' >> $GITHUB_OUTPUT
#
# - name: Import GPG key
# if: ${{ steps.has-changes.outputs.stdout }}
# uses: crazy-max/ghaction-import-gpg@v6
# with:
# gpg_private_key: ${{ secrets.GPG_BOT }}
# passphrase: ${{ secrets.GPG_PASSPHRASE }}
# fingerprint: ${{ secrets.GPG_FINGERPRINT }}
# git_config_global: true
# git_user_signingkey: true
# git_commit_gpgsign: true
# git_committer_name: Github bot
# git_committer_email: [email protected]
#
# - name: "Commit files"
# if: ${{ steps.has-changes.outputs.stdout }}
# env:
# GH_TOKEN: ${{ secrets.BOT_TOKEN }}
# run: |
# gh pr checkout ${{ github.event.pull_request.number }}
# git commit -S -m "build action" -a
#
# - name: "Push changes"
# if: ${{ steps.has-changes.outputs.stdout }}
# env:
# GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
# run: git push -u origin HEAD
2 changes: 1 addition & 1 deletion .github/workflows/phpunits.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
- 3306:3306

mariadb:
image: mariadb:10.6
image: mariadb:10.5
env:
MYSQL_ROOT_PASSWORD: wallet
MYSQL_DATABASE: wallet
Expand Down

0 comments on commit 971df2d

Please sign in to comment.