Fix for agent_name regex (#6108) #1
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: Build and Commit Frontend | |
on: | |
push: | |
branches: | |
- master | |
- development | |
- 'ci-test*' # This will match any branch that starts with "ci-test" | |
paths: | |
- 'frontend/**' | |
jobs: | |
build: | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v2 | |
- name: Setup Flutter | |
uses: subosito/flutter-action@v1 | |
with: | |
flutter-version: '3.13.2' | |
- name: Build Flutter Web | |
run: | | |
cd frontend | |
flutter build web --base-href /app/ | |
- name: Set branch name | |
id: vars | |
run: echo "::set-output name=branch::frontend_build_${GITHUB_SHA}" | |
- name: Commit and Push | |
run: | | |
git config --local user.email "action@github.com" | |
git config --local user.name "GitHub Action" | |
git add frontend/build/web | |
git commit -m "Update frontend build" -a | |
git checkout -b ${{ steps.vars.outputs.branch }} | |
echo "Commit hash: ${GITHUB_SHA}" | |
git push origin ${{ steps.vars.outputs.branch }} | |
# - name: Create Pull Request | |
# uses: peter-evans/create-pull-request@v3 | |
# with: | |
# title: "Update frontend build" | |
# body: "This PR updates the frontend build." | |
# branch: ${{ steps.vars.outputs.branch }} | |
# base: "master" |