Skip to content

Commit

Permalink
🔧 More tweaking stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
himynameisdave committed Sep 23, 2023
1 parent 3c8aaba commit 8af4b5e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/find-rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ jobs:
- name: Upgrade outdated dependencies
if: env.OUTDATED_PACKAGES == 'true'
run: |
while read package; do
yarn add "$package"
done < outdated-packages.txt
packages=$(cat outdated-packages.txt | tr '\n' ' ')
yarn add $packages
- name: Run find-rules
if: env.OUTDATED_PACKAGES == 'true'
Expand All @@ -54,6 +53,8 @@ jobs:
- name: Commit and Open PR
if: env.OUTDATED_PACKAGES == 'true'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Configure GitHub
git config user.name "GitHub Action Bot"
Expand All @@ -77,7 +78,7 @@ jobs:
# Checkout, commit and push
branch_name="${prefix}-$(date +'%Y%m%d')"
git checkout -b $branch_name
git add .
git add package.json yarn.lock
git commit -m "$commit_message"
git push origin $branch_name
Expand Down

0 comments on commit 8af4b5e

Please sign in to comment.