feat: add create branch if not exists #955
Workflow file for this run
This file contains hidden or 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: Continuous Integration | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - 'main' | |
| - 'releases/*' | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: '.nvmrc' | |
| cache: 'npm' | |
| - name: Install Dependencies | |
| run: npm install | |
| - name: Build Action | |
| run: npm run all | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Execute Action | |
| uses: ./ | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| user: ${{ secrets.DEV_PUSH_USER }} | |
| labels: true | |
| comments: true | |
| dependabot: | |
| needs: [build, test] | |
| uses: Staffbase/gha-workflows/.github/workflows/[email protected] | |
| with: | |
| force: true | |
| secrets: | |
| app_id: ${{ vars.STAFFBASE_ACTIONS_APP_ID }} | |
| private_key: ${{ secrets.STAFFBASE_ACTIONS_PRIVATE_KEY }} |