CI #1320
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
composer: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get current date | |
id: version | |
run: | | |
echo "builddate=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT | |
- uses: actions/checkout@v1 | |
- uses: nanasess/setup-php@master | |
with: | |
php-version: '8.0' | |
- run: php ./run.php ${{ secrets.GOOGLE_API_KEY }} | |
env: | |
GOOGLE_TOKEN: ${{secrets.GOOGLE_API_KEY}} | |
- run: git config --global user.email "[email protected]" && git config --global user.name "Redux Framework" | |
- run: git add -f -A | |
- run: git commit -m "Google Fonts Update: ${{ steps.version.outputs.builddate }} (Build $GITHUB_RUN_NUMBER)" | |
- run: git push "https://x-access-token:[email protected]/$GITHUB_REPOSITORY" HEAD:master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_SECRET }} |