Skip to content

Commit

Permalink
Merge pull request #11 from matbcvo/master
Browse files Browse the repository at this point in the history
Modify workflow to maintain repository activity
  • Loading branch information
escopecz authored Jul 15, 2024
2 parents 12eea21 + c9af539 commit d914f29
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/package-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,38 @@ jobs:
container:
image: php:8.1
steps:
- name: Install git
run: apt update && apt install -y git

- name: Install PHP zip extension
run: apt-get update && apt-get install -y libzip-dev && docker-php-ext-install zip

- name: Set GitHub workspace as safe directory
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"

- name: Checkout code
uses: actions/checkout@v3

- name: Install composer
run: |
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
run: curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

- name: Install dependencies
run: |
apt-get update && apt-get install -y git jq ssh unzip zip
mkdir -p ~/.ssh && ssh-keyscan github.com >> ~/.ssh/known_hosts
composer install
- name: Build packages
- name: Build language packages
run: bin/console mautic:language:packer --skip-languages=en

- name: Update build timestamp in last_build file
run: |
bin/console mautic:language:packer --skip-languages=en
echo "Last language packages build: $(date)" > last_build
git config user.name "Automated build"
git config user.email "action@github.com"
git add -f last_build
git commit -m "update build timestamp in last_build file"
git push origin HEAD:master
- name: Checkout language-packs to PACKS dir
uses: actions/checkout@v3
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
/bin/*
!/bin/console

last_build

###> symfony/framework-bundle ###
/.env.local
/.env.local.php
Expand Down

0 comments on commit d914f29

Please sign in to comment.