Skip to content

ci: add codeql analysis #30

ci: add codeql analysis

ci: add codeql analysis #30

Workflow file for this run

# For Flutter publish, a tag must be created first so we create a Github Release
# Then this should trigger the publish to Pub.dev workflow
name: Publish to Github
on:
workflow_dispatch:
pull_request:
types:
- closed
branches:
- main
- rel/**
jobs:
publish:
if: |
github.event_name == 'workflow_dispatch' ||
(github.event.pull_request.merged == true &&
contains(github.event.pull_request.title, 'chore: Release'))
runs-on: ubuntu-latest
outputs:
version: ${{ steps.version.outputs.version }}
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Get version from pubspec.yaml
id: version
run: |
VERSION=$(grep "^version:" pubspec.yaml | sed 's/version: //' | tr -d ' ')
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "Version: $VERSION"
create-release:
needs: publish
uses: OneSignal/sdk-actions/.github/workflows/github-release.yml@main
with:
version: ${{ needs.publish.outputs.version }}