fix: Fixed issue github workflow #14
Workflow file for this run
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 | |
on: | |
pull_request_target: | |
branches: | |
- main | |
types: | |
- opened | |
- reopened | |
- edited | |
- synchronize | |
jobs: | |
build-on-pr: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
ref: ${{ github.event.pull_request.head.ref }} | |
fetch-depth: ${{ github.event.pull_request.commits }} | |
dry-run: | |
runs-on: ubuntu-latest | |
name: Flutter Pub Publish --dry-run | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
with: | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
ref: ${{ github.event.pull_request.head.ref }} | |
fetch-depth: ${{ github.event.pull_request.commits }} | |
- name: Set up Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.13.0' | |
- name: Install dependencies | |
run: flutter pub get | |
- name: Run flutter pub publish --dry-run | |
run: flutter pub publish --dry-run |