diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 647f670..6576baa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,28 +10,38 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2.3.4 + uses: actions/checkout@v4.1.1 with: path: tachimawari - name: Checkout Tachimawari Interfaces - uses: actions/checkout@v2.3.4 + uses: actions/checkout@v4.1.1 with: repository: ichiro-its/tachimawari_interfaces path: tachimawari_interfaces - name: Checkout Kansei Interfaces - uses: actions/checkout@v2.3.4 + uses: actions/checkout@v4.1.1 with: repository: ichiro-its/kansei_interfaces path: kansei_interfaces - name: Checkout Keisan - uses: actions/checkout@v2.3.4 + uses: actions/checkout@v4.1.1 with: repository: ichiro-its/keisan path: keisan + - name: Checkout Jitsuyo + uses: actions/checkout@v4.1.1 + with: + repository: ichiro-its/jitsuyo + path: jitsuyo + token: ${{ secrets.GH_TOKEN }} + + - name: Install nlohmann/json + run: sudo apt install -y nlohmann-json3-dev + - name: Setup workspace uses: ichiro-its/ros2-ws-action/setup@v1.0.1 diff --git a/.github/workflows/dispatch-discord-pr-bot.yml b/.github/workflows/dispatch-discord-pr-bot.yml new file mode 100644 index 0000000..01201ce --- /dev/null +++ b/.github/workflows/dispatch-discord-pr-bot.yml @@ -0,0 +1,20 @@ +name: Dispatch Discord PR Bot + +on: + pull_request: + types: [opened, closed, reopened] + workflow_dispatch: + +jobs: + dispatch-discord-pr-bot: + runs-on: ubuntu-latest + steps: + - uses: peter-evans/repository-dispatch@v3 + with: + repository: ichiro-its/${{ vars.DISCORD_PR_BOT_REPO }} + event-type: pull_request + client-payload: | + { + "repository": "${{ github.event.repository.name }}", + "pr_type": "${{ github.event.action || 'opened' }}" + }