Skip to content

Commit

Permalink
Test a multiline workflow expression
Browse files Browse the repository at this point in the history
  • Loading branch information
trodge committed Nov 1, 2023
1 parent 42f1940 commit 0a09efb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/magic-modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ jobs:
git config user.email "magic-modules@google.com"
git fetch origin ${{ github.base_ref }} # Fetch the base branch
git merge --no-ff origin/${{ github.base_ref }} # Merge with the base branch
yamlfiles=$(git diff --name-only origin/${{ github.base_ref }} -- mmv1/products) # Compare with the base branch
yamlfiles=$(git diff --name-only origin/${{
github.base_ref
}} -- mmv1/products) # Compare with the base branch
if [ ! -z "$yamlfiles" ]; then
echo "yamlfiles=repo/${yamlfiles//$'\n'/ repo/}" >> $GITHUB_OUTPUT
fi
Expand Down

0 comments on commit 0a09efb

Please sign in to comment.