Update flutter.yml
This commit is contained in:
19
.github/workflows/flutter.yml
vendored
19
.github/workflows/flutter.yml
vendored
@@ -9,7 +9,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
generate_licenses:
|
generate_licenses:
|
||||||
if: github.event_name == 'push' #&& github.ref == 'refs/heads/develop'
|
if: github.event_name == 'push' && github.ref == 'refs/heads/develop'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@@ -28,16 +28,17 @@ jobs:
|
|||||||
- name: Generate oss_licenses.dart
|
- name: Generate oss_licenses.dart
|
||||||
run: flutter pub run flutter_oss_licenses:generate -o lib/presentation/views/about/licenses/oss_licenses.dart
|
run: flutter pub run flutter_oss_licenses:generate -o lib/presentation/views/about/licenses/oss_licenses.dart
|
||||||
|
|
||||||
#- name: Check for changes
|
- name: Check for changes
|
||||||
# id: check_changes
|
id: check_changes
|
||||||
# run: |
|
run: |
|
||||||
# if [[ $(git status --porcelain) ]]; then
|
if [[ $(git status --porcelain) ]]; then
|
||||||
# echo "changes_detected=true" >> $GITHUB_OUTPUT
|
echo "changes_detected=true" >> $GITHUB_OUTPUT
|
||||||
# else
|
else
|
||||||
# echo "changes_detected=false" >> $GITHUB_OUTPUT
|
echo "changes_detected=false" >> $GITHUB_OUTPUT
|
||||||
# fi
|
fi
|
||||||
|
|
||||||
- name: Commit Changes
|
- name: Commit Changes
|
||||||
|
if: steps.check_changes.outputs.changes_detected == 'true'
|
||||||
run: |
|
run: |
|
||||||
git config --global user.name "GitHub Actions"
|
git config --global user.name "GitHub Actions"
|
||||||
git config --global user.email "actions@github.com"
|
git config --global user.email "actions@github.com"
|
||||||
|
|||||||
Reference in New Issue
Block a user