Merge pull request #945 from 0x1-company/invite-friends #175
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Dgraph | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- '**/*/Package.swift' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
dgraph: | |
runs-on: macos-13 | |
steps: | |
- uses: actions/checkout@v4 | |
- run: sudo xcode-select -s /Applications/Xcode_15.0.1.app | |
- uses: actions/cache@v3 | |
with: | |
path: BuildTools/DependenciesGraph/.build | |
key: ${{ runner.os }}-DependenciesGraph-${{ hashFiles('BuildTools/DependenciesGraph/Package.resolved') }} | |
- run: swift build -c release --package-path ./BuildTools/DependenciesGraph --product dgraph | |
- run: ./BuildTools/DependenciesGraph/.build/release/dgraph --add-to-readme ./Packages/CupertinoPackage | |
- run: ./BuildTools/DependenciesGraph/.build/release/dgraph --add-to-readme ./Packages/DependencyPackage | |
- run: ./BuildTools/DependenciesGraph/.build/release/dgraph --add-to-readme ./Packages/GodPackage | |
- run: ./BuildTools/DependenciesGraph/.build/release/dgraph --include-product ./Packages/GodPackage | |
- run: ./BuildTools/DependenciesGraph/.build/release/dgraph --add-to-readme ./Packages/UIComponentPackage | |
- continue-on-error: true | |
uses: peter-evans/create-pull-request@v5 | |
id: create-pr | |
with: | |
delete-branch: true | |
author: github-actions[bot] <github-actions[bot]@users.noreply.github.com> | |
committer: github-actions[bot] <github-actions[bot]@users.noreply.github.com> | |
branch-suffix: short-commit-hash | |
commit-message: "chore: 🤖 dgraph" | |
title: Run dgraph | |
- continue-on-error: true | |
run: gh pr merge --auto --merge "$PR_URL" | |
env: | |
PR_URL: ${{ steps.create-pr.outputs.pull-request-url }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- continue-on-error: true | |
run: gh pr review --approve "$PR_URL" | |
env: | |
PR_URL: ${{ steps.create-pr.outputs.pull-request-url }} | |
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }} |