Skip to content

Commit

Permalink
testing Araxeus/vendorfiles-action@v1
Browse files Browse the repository at this point in the history
  • Loading branch information
Araxeus committed Apr 1, 2023
1 parent 55a0628 commit 5740560
Showing 1 changed file with 4 additions and 31 deletions.
35 changes: 4 additions & 31 deletions .github/workflows/dependency-updater.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
# every day at 07:33
- cron: '33 7 * * *'
workflow_dispatch: null # allow manual trigger
pull_request: null # for testing only ~!

jobs:
update-vendors:
Expand All @@ -14,35 +15,7 @@ jobs:
uses: Araxeus/setup-yarn-pnp-action@v1

- name: Run vendor update
id: vendor
run: |
echo "PR_BODY<<EOF" >> $GITHUB_OUTPUT
echo "$(yarn vendor update --pr)" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Show PR body
run: echo '${{ steps.vendor.outputs.PR_BODY}}\n\n>This PR was generated using [vendorfiles](https://www.github.com/Araxeus/vendorfiles)'

- name: Show git status
run: git status

- name: Check if PR body starts with "ERROR"
if: startsWith(steps.vendor.outputs.PR_BODY, 'ERROR:')
run: exit 1

- name: Create Pull Request
if: steps.vendor.outputs.PR_BODY != 0
uses: peter-evans/create-pull-request@v4
uses: Araxeus/vendorfiles-action@v1
with:
commit-message: '[vendorfiles] Bump vendors'
committer: 'vendorfiles[bot]'
author: 'vendorfiles[bot]'
branch: bump-vendors
title: '[vendorfiles] Bump vendors'
body: '${{ steps.vendor.outputs.PR_BODY}}\n\n>This PR was generated using [vendorfiles](https://www.github.com/Araxeus/vendorfiles)'
delete-branch: true
labels: dependencies
reviewers: ${{ github.repository_owner }}
assignees: ${{ github.repository_owner }}
token: ${{ secrets.GITHUB_TOKEN }}
package-manager: yarn

0 comments on commit 5740560

Please sign in to comment.