Report Generation #234
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: Report Generation | |
on: | |
schedule: | |
- cron: '30 2 * * *' | |
jobs: | |
post-merge-tasks: | |
runs-on: ubuntu-latest | |
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/stage' | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.CUSTOM_GITHUB_TOKEN }} | |
- name: Install dependencies | |
run: yarn install | |
- name: Install Docker Compose | |
run: | | |
curl -L "https://github.com/docker/compose/releases/download/v2.29.7/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
chmod +x /usr/local/bin/docker-compose | |
docker-compose --version | |
- name: Run E2E tests | |
run: yarn test:e2e | |
- name: Process README.md and Commit | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Azion Bundler Reports" | |
git add README.md | |
git commit -m "chore: update reports" --no-verify || echo "No changes to commit." | |
git push --force | |
env: | |
GH_TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN }} |