Skip to content

Commit

Permalink
devops: added .txt to list of files
Browse files Browse the repository at this point in the history
  • Loading branch information
dg1223 committed Jul 26, 2023
1 parent c4f66c1 commit 73827a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/alpha-cd.txt
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,6 @@ jobs:
name: Signed App Bundle
path: ${{steps.sign_app.outputs.signedReleaseFile}}

- name: Check directory (debug)
run: |
pwd
ls -a android/app/build/outputs/bundle/release

- name: Deploy to Play Store (Internal testing)
uses: r0adkll/upload-google-play@v1
with:
Expand All @@ -151,4 +146,4 @@ jobs:
status: draft
# userFraction: 0.5
whatsNewDirectory: android/release-notes/
releaseName: v1.0.2
releaseName: v1.0.4
8 changes: 4 additions & 4 deletions .github/workflows/ci-cd-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@ jobs:
with:
fetch-depth: 0

- name: Check for README changes
- name: Check for README, yml or txt changes
id: set_output
run: |
# Get the list of changed files between the base and head branches
CHANGED_FILES=$(git diff --name-only ${{ github.event.before }} ${{ github.event.after }})
# Check if 'README.md' or '.yml' files are the only files changed
if [[ ${CHANGED_FILES} =~ ^(README\.md|.*\.yml)$ && ! ${CHANGED_FILES} =~ ^(?!.*(README\.md|.*\.yml)).*$ ]]; then
echo "Only README.md or .yml files have been updated. Skipping the CI/CD workflow."
if [[ ${CHANGED_FILES} =~ ^(README\.md|.*\.yml|.*\.txt)$ && ! ${CHANGED_FILES} =~ ^(?!.*(README\.md|.*\.yml|.*\.txt)).*$ ]]; then
echo "Only README.md or .yml or .txt files have been updated. Skipping the CI/CD workflow."
# GITHUB_OUTPUT is a default GitHub env. variable
echo "run_jobs=false" >> ${GITHUB_OUTPUT}
else
echo "Changes to files other than README.md or *.yml detected. Proceeding with the CI/CD workflow."
echo "Changes to files other than README.md or *.yml or .txt detected. Proceeding with the CI/CD workflow."
echo "run_jobs=true" >> ${GITHUB_OUTPUT}
fi
Expand Down

0 comments on commit 73827a5

Please sign in to comment.