Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ci actions #85

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/pr_size.yml
@@ -1,6 +1,8 @@
name: Pull Request automations

on: pull_request
on:
pull_request_target:
pull_request:

jobs:
size-label:
Expand Down
26 changes: 19 additions & 7 deletions .github/workflows/project_automations.yml
Expand Up @@ -4,11 +4,19 @@ on:
issues:
types:
- opened
pull_request_target:
pull_request:
types:
- opened

jobs:
debug:
name: debug
runs-on: ubuntu-latest
steps:
- name: Print event name
run: echo ${{ github.event_name }}
- name: Print event action
run: echo ${{ github.event.action }}

issue_opened:
name: issue_opened
runs-on: ubuntu-latest
Expand All @@ -17,22 +25,26 @@ jobs:
- name: 'Move issue to Todo'
uses: leonsteinhaeuser/project-beta-automations@v2.1.0
with:
gh_token: ${{ secrets.PROJECT_PERMISSIONS_TOKEN }}
gh_app_ID: ${{ vars.GH_APP_ID }}
gh_app_installation_ID: ${{ vars.GH_APP_INSTALLATION_ID }}
gh_app_secret_key: ${{ secrets.GH_APP_SECRET_KEY }}
project_id: ${{ vars.PROJECT_ID }}
user: leonsteinhaeuser
project_id: ${{ secrets.PROJECT_ID }}
resource_node_id: ${{ github.event.issue.node_id }}
status_value: "Todo"

pr_opened:
name: pr_opened
runs-on: ubuntu-latest
if: github.event_name == 'pull_request' && github.event.action == 'opened'
if: github.event_name == 'pull_request' && (github.event.action == 'opened' || github.event.action == 'synchronize')
steps:
- name: 'Move PR to "In Progress"'
uses: leonsteinhaeuser/project-beta-automations@v2.1.0
with:
gh_token: ${{ secrets.PROJECT_PERMISSIONS_TOKEN }}
gh_app_ID: ${{ vars.GH_APP_ID }}
gh_app_installation_ID: ${{ vars.GH_APP_INSTALLATION_ID }}
gh_app_secret_key: ${{ secrets.GH_APP_SECRET_KEY }}
project_id: ${{ vars.PROJECT_ID }}
user: leonsteinhaeuser
project_id: ${{ secrets.PROJECT_ID }}
resource_node_id: ${{ github.event.pull_request.node_id }}
status_value: "In Progress"