Skip to content

Commit

Permalink
Merge pull request #7 from david-cermak/fix/ci
Browse files Browse the repository at this point in the history
Check release
  • Loading branch information
david-cermak authored Oct 7, 2024
2 parents 3baef60 + a57efc2 commit bdf3907
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 3 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/pre_commit_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Check pre-commit rules

on:
pull_request:
types: [opened, reopened, synchronize]

permissions:
contents: read

jobs:
pre_commit_check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.base_ref }}
fetch-depth: 20
- name: Fetch head and base refs
# This is necessary for pre-commit to check the changes in the PR branch (and to set origin/HEAD and HEAD refs)
run: |
git fetch origin ${{ github.event.pull_request.head.sha }}:pr_ref
git checkout pr_ref
git remote set-head origin --auto
git merge-base origin/HEAD HEAD || ( echo "Your PR is far behind origin/HEAD, please rebase" && exit 1 )
- name: Set up Python environment
uses: actions/setup-python@master
with:
python-version: v3.8
- name: Install python packages
run: |
pip install pre-commit
pre-commit install-hooks
- name: Run pre-commit and check for any changes
run: |
echo "Commits being checked:"
git log --oneline --no-decorate origin/HEAD..HEAD
echo ""
if ! pre-commit run --from-ref origin/HEAD --to-ref HEAD --hook-stage manual --show-diff-on-failure ; then
echo ""
echo "::notice::It looks like the commits in this PR have been made without having pre-commit hooks installed."
echo "::notice::Please see https://github.com/espressif/esp-wifi-remote/CONTRIBUTING.md for instructions."
echo ""
exit 1
fi
3 changes: 2 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,5 @@ jobs:
directories: >
components/esp_wifi_remote;
namespace: "espressif"
api_token: ${{ secrets.IDF_COMPONENT_API_TOKEN }}
api_token: ${{ secrets.IDF_COMPONENT_API_TOKEN2 }}
registry_url: "https://components-staging.espressif.com"
2 changes: 1 addition & 1 deletion components/esp_wifi_remote/.cz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ commitizen:
bump_message: 'bump(wifi_remote): $current_version -> $new_version'
pre_bump_hooks: python ../../ci/changelog.py esp_wifi_remote
tag_format: wifi_remote-v$version
version: 0.4.0
version: 0.4.1
version_files:
- idf_component.yml
2 changes: 2 additions & 0 deletions components/esp_wifi_remote/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Changelog

## [0.4.1](https://github.com/espressif/esp-wifi-remote/commits/wifi_remote-v0.4.1)

## [0.4.0](https://github.com/espressif/esp-protocols/commits/wifi_remote-v0.4.0)

### Features
Expand Down
2 changes: 1 addition & 1 deletion components/esp_wifi_remote/idf_component.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 0.4.0
version: 0.4.1
url: https://github.com/espressif/esp-protocols/tree/master/components/esp_wifi_remote
description: Utility wrapper for esp_wifi functionality on remote targets
dependencies:
Expand Down

0 comments on commit bdf3907

Please sign in to comment.