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

check components in PRs #220

Merged
merged 1 commit into from
Oct 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/upload_component.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Push components to Espressif Component Service

on:
# For pull requests: perform upload with "--dry-run" argument,
# i.e. validate that the component passes all checks for being uploaded.
pull_request:

# For pushes to master: actually upload the components to the registry.
push:
branches:
- master
Expand All @@ -12,6 +17,8 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- run: |
echo "${{ ( github.ref_name != 'master' || github.repository_owner != 'espressif' ) && 'Checking' || 'Uploading' }} components"
- name: Upload components to component service
uses: espressif/upload-components-ci-action@v1
with:
Expand Down Expand Up @@ -65,4 +72,7 @@ jobs:
zlib;
libpng;
namespace: "espressif"
# API token will only be available in the master branch in the main repository.
# However, dry-run doesn't require a valid token.
api_token: ${{ secrets.IDF_COMPONENT_API_TOKEN }}
dry_run: ${{ github.ref_name != 'master' || github.repository_owner != 'espressif' }}
Loading