From 2b74d103dbc9e491c2e0b959ca37277218440884 Mon Sep 17 00:00:00 2001 From: vdovhanych Date: Wed, 15 Mar 2023 21:05:39 +0100 Subject: [PATCH] chore(ci): update project automation workflow --- ...tomation.yml => bot-project-automation.yml} | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) rename .github/workflows/{project_automation.yml => bot-project-automation.yml} (57%) diff --git a/.github/workflows/project_automation.yml b/.github/workflows/bot-project-automation.yml similarity index 57% rename from .github/workflows/project_automation.yml rename to .github/workflows/bot-project-automation.yml index 00c7d9936f..e7cd02d71c 100644 --- a/.github/workflows/project_automation.yml +++ b/.github/workflows/bot-project-automation.yml @@ -1,4 +1,4 @@ -name: Add to GitHub Project +name: "[Bot] add to GitHub project" on: [issues, pull_request] @@ -9,18 +9,18 @@ permissions: repository-projects: write jobs: - gh-automate-projects: + project-add-pull-request: runs-on: ubuntu-latest steps: - - name: Add new pull request to the Pull Requests project board + - name: Add new pull request to the Firmware project + uses: actions/add-to-project@main if: github.event_name == 'pull_request' && github.event.action == 'opened' - run: gh pr edit $PULL_REQUEST --add-project "Pull Requests" - env: - PULL_REQUEST: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{ secrets.GH_BOT_TOKEN }} + with: + project-url: https://github.com/orgs/trezor/projects/60 + github-token: ${{ secrets.GH_BOT_TOKEN }} - add-to-beta-project: - name: Add new issue to the beta Issues Firmware project + project-add-issue: + name: Add new issue to the Firmware project runs-on: ubuntu-latest steps: - uses: actions/add-to-project@main