Skip to content

Add workflow_dispatch trigger to main action wf #32

Add workflow_dispatch trigger to main action wf

Add workflow_dispatch trigger to main action wf #32

Workflow file for this run

name: Mraid
on:
push:
branches: [ main ]
jobs:
buildRelease:
if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
- name: Generate mraid js file
run: npm run buildRelease
- name: Submit a commit with criteo-mraid.js
uses: EndBug/add-and-commit@v9
with:
default_author: 'github_actions'
message: 'Upload a new version of criteo-mraid.js file'
add: 'build/criteo-mraid.js'
push: true
repo-token: ${{ secrets.GITHUB_TOKEN }}