Skip to content

[test] Trigger CircleCI tests from PRs #36026

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

Draft
wants to merge 1 commit into
base: v5.x
Choose a base branch
from

Conversation

michaldudak
Copy link
Member

No description provided.

@mui-bot
Copy link

mui-bot commented Feb 2, 2023

Messages
📖 Netlify deploy preview: https://deploy-preview-36026--material-ui.netlify.app/

No bundle size changes

Generated by 🚫 dangerJS against 5365ca9

Comment on lines +1 to +16
name: Bundling tests

on: pull_request

permissions: read-all

jobs:
trigger-circleci:
runs-on: ubuntu-latest
steps:
- name: Start CircleCI bundling tests
uses: CircleCI-Public/[email protected]
env:
CCI_TOKEN: ${{ secrets.CIRCLECI_TOKEN }}
with:
GHA_Meta: 'workflow:bundling'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the purpose of this GitHub action?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was trying out different things. I was working on an action that would trigger a CircleCI build only on some branches (release/*, not enabled here right now). But I learned this isn't possible as there's no access to secrets when running actions triggered from PRs. I'll look for another approach.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be possible to configure it with CircleCI yaml.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIK CircleCI doesn't know the original branch name the PR is coming from

@zannager zannager added the test label Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants