From 0eae97b661b15f40b714ce586d08ef41cac9231a Mon Sep 17 00:00:00 2001 From: jaenrig-ifx Date: Tue, 25 Apr 2023 16:22:23 +0200 Subject: [PATCH] ports/psoc6: PSoC6 Infineon fork patch. Signed-off-by: jaenrig-ifx --- .github/workflows/stale_issues.yml | 8 ++++ .github/workflows/synch_upstream.yml | 72 ++++++++++++++++++++++++++++ README.md | 4 +- 3 files changed, 82 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/stale_issues.yml create mode 100644 .github/workflows/synch_upstream.yml diff --git a/.github/workflows/stale_issues.yml b/.github/workflows/stale_issues.yml new file mode 100644 index 000000000000..82f817a49496 --- /dev/null +++ b/.github/workflows/stale_issues.yml @@ -0,0 +1,8 @@ +name: 'Close stale issues/PRs' +on: + schedule: + - cron: "50 14 */2 * *" + +jobs: + call-workflow: + uses: Infineon/workflows/.github/workflows/epe_stale_issues.yml@master \ No newline at end of file diff --git a/.github/workflows/synch_upstream.yml b/.github/workflows/synch_upstream.yml new file mode 100644 index 000000000000..93634b9cf3d4 --- /dev/null +++ b/.github/workflows/synch_upstream.yml @@ -0,0 +1,72 @@ +name: Sync Upstream + +on: + schedule: + - cron: '0 0 */1 * *' # daily 00:00 + workflow_dispatch: # on button click + +jobs: + synch_master: + runs-on: ubuntu-latest + + steps: + - name: Checkout target repo + uses: actions/checkout@v4 + with: + ref: master + token: ${{ secrets.GH_ACT_SYNCH_UPSTREAM }} + + - name: Sync upstream changes + id: sync + uses: aormsby/Fork-Sync-With-Upstream-action@v3.4.1 + with: + target_sync_branch: master + target_repo_token: ${{ secrets.GH_ACT_SYNCH_UPSTREAM }} + upstream_sync_branch: master + upstream_sync_repo: micropython/micropython + git_config_pull_rebase: true + + + - name: New commits found + if: steps.sync.outputs.has_new_commits == 'true' + run: echo "New commits were found to sync." + + - name: No new commits + if: steps.sync.outputs.has_new_commits == 'false' + run: echo "There were no new commits." + + - name: Show value of 'has_new_commits' + run: echo ${{ steps.sync.outputs.has_new_commits }} + + synch_port_psoc6: + runs-on: ubuntu-latest + needs: synch_master + + steps: + - name: Checkout target repo + uses: actions/checkout@v4 + with: + ref: ports-psoc6-main + token: ${{ secrets.GH_ACT_SYNCH_UPSTREAM }} + + - name: Sync upstream changes + id: sync + uses: aormsby/Fork-Sync-With-Upstream-action@v3.4.1 + with: + target_sync_branch: ports-psoc6-main + target_repo_token: ${{ secrets.GH_ACT_SYNCH_UPSTREAM }} + upstream_sync_branch: master + upstream_sync_repo: micropython/micropython + git_config_pull_rebase: true + target_branch_push_args: '--force' + + - name: New commits found + if: steps.sync.outputs.has_new_commits == 'true' + run: echo "New commits were found to sync." + + - name: No new commits + if: steps.sync.outputs.has_new_commits == 'false' + run: echo "There were no new commits." + + - name: Show value of 'has_new_commits' + run: echo ${{ steps.sync.outputs.has_new_commits }} \ No newline at end of file diff --git a/README.md b/README.md index 8a0f9139452b..2f1e385c3ba8 100644 --- a/README.md +++ b/README.md @@ -35,8 +35,8 @@ DAC, PWM, SPI, I2C, CAN, Bluetooth, and USB. Getting started --------------- -See the [online documentation](https://docs.micropython.org/) for the API -reference and information about using MicroPython and information about how +See the [online documentation (Infineon PSoC6 port ReadTheDocs fork)](https://ifx-micropython.readthedocs.io/en/latest/psoc6/quickref.html) for API +references and information about using MicroPython and information about how it is implemented. We use [GitHub Discussions](https://github.com/micropython/micropython/discussions)