From 0b34390f4ebddf2cbf7c401dde82d9c2df1f83e0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 20 Dec 2021 07:28:12 +0000 Subject: [PATCH 01/10] Bump yosys-plugins from `b40f6cd` to `9ee3057` Bumps [yosys-plugins](https://github.com/SymbiFlow/yosys-symbiflow-plugins) from `b40f6cd` to `9ee3057`. - [Release notes](https://github.com/SymbiFlow/yosys-symbiflow-plugins/releases) - [Commits](https://github.com/SymbiFlow/yosys-symbiflow-plugins/compare/b40f6cd0c509d01e07e0c0df266d20211e03f76d...9ee3057a714b8101aa7e0e787fed15f49dbd17d0) --- updated-dependencies: - dependency-name: yosys-plugins dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- yosys-plugins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yosys-plugins b/yosys-plugins index b40f6cd0c..9ee3057a7 160000 --- a/yosys-plugins +++ b/yosys-plugins @@ -1 +1 @@ -Subproject commit b40f6cd0c509d01e07e0c0df266d20211e03f76d +Subproject commit 9ee3057a714b8101aa7e0e787fed15f49dbd17d0 From 7b2cc61d99f45213d3a5f92ffcd8b433e8e1398f Mon Sep 17 00:00:00 2001 From: nadeemyaseen-rs Date: Mon, 20 Dec 2021 12:35:02 +0500 Subject: [PATCH 02/10] added the workflow files to automattically update the patch count --- .github/workflows/patch_updator.yml | 34 +++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/patch_updator.yml diff --git a/.github/workflows/patch_updator.yml b/.github/workflows/patch_updator.yml new file mode 100644 index 000000000..bae5586af --- /dev/null +++ b/.github/workflows/patch_updator.yml @@ -0,0 +1,34 @@ +name: Count Patches +on: + workflow_dispatch: + schedule: + - cron: '0 0 * * *' +env: + TAG_COMMIT: 49a8273.. +jobs: + patch-count: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Get latest commit + id: log + run: echo "::set-output name=message::$(git log --no-merges -1 --oneline)" + - name: Get repo name + id: repo + run: echo "::set-output name=message::$GITHUB_REPOSITORY" + - name: Insert Patch Count + if: "!contains(steps.log.outputs.message, 'Updated Patch Count') && contains(steps.repo.outputs.message, 'lnis-uofu/OpenFPGA')" + run: | + sed -i "/^set(OPENFPGA_VERSION_PATCH /s/[0-9]*)/`git log ${TAG_COMMIT} --oneline | wc -l`)/" CMakeLists.txt + git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" + git config --local user.name "github-actions[bot]" + git add Makefile + git commit -m "Updated Patch Count" + - name: Push changes # push the output folder to your repo + if: "!contains(steps.log.outputs.message, 'Bump version') && contains(steps.repo.outputs.message, 'lnis-uofu/OpenFPGA')" + uses: ad-m/github-push-action@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From 0a61c62756d65a709d6ab3d6b610c216421203fe Mon Sep 17 00:00:00 2001 From: nadeemyaseen-rs <86344264+nadeemyaseen-rs@users.noreply.github.com> Date: Mon, 20 Dec 2021 12:40:12 +0500 Subject: [PATCH 03/10] Update and rename patch_updator.yml to patch_updater.yml --- .github/workflows/{patch_updator.yml => patch_updater.yml} | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) rename .github/workflows/{patch_updator.yml => patch_updater.yml} (95%) diff --git a/.github/workflows/patch_updator.yml b/.github/workflows/patch_updater.yml similarity index 95% rename from .github/workflows/patch_updator.yml rename to .github/workflows/patch_updater.yml index bae5586af..76b1e3306 100644 --- a/.github/workflows/patch_updator.yml +++ b/.github/workflows/patch_updater.yml @@ -1,5 +1,6 @@ name: Count Patches on: + push: workflow_dispatch: schedule: - cron: '0 0 * * *' @@ -31,4 +32,4 @@ jobs: if: "!contains(steps.log.outputs.message, 'Bump version') && contains(steps.repo.outputs.message, 'lnis-uofu/OpenFPGA')" uses: ad-m/github-push-action@master with: - github_token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + github_token: ${{ secrets.GITHUB_TOKEN }} From 89b9487bf8673ff0bc7b55ddb0d3893bba736a92 Mon Sep 17 00:00:00 2001 From: nadeemyaseen-rs <86344264+nadeemyaseen-rs@users.noreply.github.com> Date: Mon, 20 Dec 2021 12:52:18 +0500 Subject: [PATCH 04/10] Trigger on PR to check --- .github/workflows/patch_updater.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/patch_updater.yml b/.github/workflows/patch_updater.yml index 76b1e3306..5385816c6 100644 --- a/.github/workflows/patch_updater.yml +++ b/.github/workflows/patch_updater.yml @@ -1,6 +1,6 @@ name: Count Patches on: - push: + pull_request: workflow_dispatch: schedule: - cron: '0 0 * * *' From e9a4e9ad8d46a95e0bc28e1f2c5780288e37321b Mon Sep 17 00:00:00 2001 From: nadeemyaseen-rs <86344264+nadeemyaseen-rs@users.noreply.github.com> Date: Mon, 20 Dec 2021 12:54:12 +0500 Subject: [PATCH 05/10] Corrected typo --- .github/workflows/patch_updater.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/patch_updater.yml b/.github/workflows/patch_updater.yml index 5385816c6..be8ca9af1 100644 --- a/.github/workflows/patch_updater.yml +++ b/.github/workflows/patch_updater.yml @@ -26,7 +26,7 @@ jobs: sed -i "/^set(OPENFPGA_VERSION_PATCH /s/[0-9]*)/`git log ${TAG_COMMIT} --oneline | wc -l`)/" CMakeLists.txt git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" git config --local user.name "github-actions[bot]" - git add Makefile + git add CMakeLists.txt git commit -m "Updated Patch Count" - name: Push changes # push the output folder to your repo if: "!contains(steps.log.outputs.message, 'Bump version') && contains(steps.repo.outputs.message, 'lnis-uofu/OpenFPGA')" From 56b5f1d063cacd0662734589dcbcb825b9f989d8 Mon Sep 17 00:00:00 2001 From: nadeemyaseen-rs <86344264+nadeemyaseen-rs@users.noreply.github.com> Date: Mon, 20 Dec 2021 14:09:42 +0500 Subject: [PATCH 06/10] added branch name temporary --- .github/workflows/patch_updater.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/patch_updater.yml b/.github/workflows/patch_updater.yml index be8ca9af1..2f9ac95cd 100644 --- a/.github/workflows/patch_updater.yml +++ b/.github/workflows/patch_updater.yml @@ -33,3 +33,4 @@ jobs: uses: ad-m/github-push-action@master with: github_token: ${{ secrets.GITHUB_TOKEN }} + branch: patch_countr From 57d977f329d09aac0b85e83ae0e2951f4cc24ef6 Mon Sep 17 00:00:00 2001 From: nadeemyaseen-rs Date: Mon, 20 Dec 2021 14:12:59 +0500 Subject: [PATCH 07/10] remove the temporary branch name --- .github/workflows/patch_updater.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/patch_updater.yml b/.github/workflows/patch_updater.yml index 2f9ac95cd..188c9f499 100644 --- a/.github/workflows/patch_updater.yml +++ b/.github/workflows/patch_updater.yml @@ -32,5 +32,4 @@ jobs: if: "!contains(steps.log.outputs.message, 'Bump version') && contains(steps.repo.outputs.message, 'lnis-uofu/OpenFPGA')" uses: ad-m/github-push-action@master with: - github_token: ${{ secrets.GITHUB_TOKEN }} - branch: patch_countr + github_token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From f85cf322bcc02386f7fee5e9ac0beccb050c0923 Mon Sep 17 00:00:00 2001 From: nadeemyaseen-rs Date: Mon, 20 Dec 2021 14:47:34 +0500 Subject: [PATCH 08/10] remove the pull request trigger --- .github/workflows/patch_updater.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/patch_updater.yml b/.github/workflows/patch_updater.yml index 188c9f499..2815880e6 100644 --- a/.github/workflows/patch_updater.yml +++ b/.github/workflows/patch_updater.yml @@ -1,6 +1,5 @@ name: Count Patches on: - pull_request: workflow_dispatch: schedule: - cron: '0 0 * * *' @@ -32,4 +31,4 @@ jobs: if: "!contains(steps.log.outputs.message, 'Bump version') && contains(steps.repo.outputs.message, 'lnis-uofu/OpenFPGA')" uses: ad-m/github-push-action@master with: - github_token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + github_token: ${{ secrets.GITHUB_TOKEN }} From 1cd65f071c6595f241ccc97570f776a4b39dcd1d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 21 Dec 2021 07:31:51 +0000 Subject: [PATCH 09/10] Bump yosys-plugins from `9ee3057` to `b79ad0d` Bumps [yosys-plugins](https://github.com/SymbiFlow/yosys-symbiflow-plugins) from `9ee3057` to `b79ad0d`. - [Release notes](https://github.com/SymbiFlow/yosys-symbiflow-plugins/releases) - [Commits](https://github.com/SymbiFlow/yosys-symbiflow-plugins/compare/9ee3057a714b8101aa7e0e787fed15f49dbd17d0...b79ad0dee591bc481f7fc545fe200446bce0bc48) --- updated-dependencies: - dependency-name: yosys-plugins dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- yosys-plugins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yosys-plugins b/yosys-plugins index 9ee3057a7..b79ad0dee 160000 --- a/yosys-plugins +++ b/yosys-plugins @@ -1 +1 @@ -Subproject commit 9ee3057a714b8101aa7e0e787fed15f49dbd17d0 +Subproject commit b79ad0dee591bc481f7fc545fe200446bce0bc48 From 3e7169b5e2dd5daa24a8d09152b6d4a58ba6803c Mon Sep 17 00:00:00 2001 From: nadeemyaseen-rs Date: Tue, 21 Dec 2021 12:57:57 +0500 Subject: [PATCH 10/10] corrected syntax error in YAML file --- .github/workflows/patch_updater.yml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/.github/workflows/patch_updater.yml b/.github/workflows/patch_updater.yml index 2815880e6..4576574bd 100644 --- a/.github/workflows/patch_updater.yml +++ b/.github/workflows/patch_updater.yml @@ -3,8 +3,11 @@ on: workflow_dispatch: schedule: - cron: '0 0 * * *' + env: TAG_COMMIT: 49a8273.. + BRANCH_NAME: patch_update + jobs: patch-count: runs-on: ubuntu-latest @@ -13,12 +16,15 @@ jobs: uses: actions/checkout@v2 with: fetch-depth: 0 + - name: Get latest commit id: log run: echo "::set-output name=message::$(git log --no-merges -1 --oneline)" + - name: Get repo name id: repo run: echo "::set-output name=message::$GITHUB_REPOSITORY" + - name: Insert Patch Count if: "!contains(steps.log.outputs.message, 'Updated Patch Count') && contains(steps.repo.outputs.message, 'lnis-uofu/OpenFPGA')" run: | @@ -27,8 +33,24 @@ jobs: git config --local user.name "github-actions[bot]" git add CMakeLists.txt git commit -m "Updated Patch Count" + - name: Push changes # push the output folder to your repo - if: "!contains(steps.log.outputs.message, 'Bump version') && contains(steps.repo.outputs.message, 'lnis-uofu/OpenFPGA')" + if: "!contains(steps.log.outputs.message, 'Updated Patch Count') && contains(steps.repo.outputs.message, 'lnis-uofu/OpenFPGA')" uses: ad-m/github-push-action@master with: github_token: ${{ secrets.GITHUB_TOKEN }} + branch: ${{env.BRANCH_NAME}} + + - name: Create Auto PR + if: "!contains(steps.log.outputs.message, 'Updated Patch Count') && contains(steps.repo.outputs.message, 'lnis-uofu/OpenFPGA')" + uses: repo-sync/pull-request@v2 + with: + source_branch: ${{env.BRANCH_NAME}} # name of branch for PR + destination_branch: "master" # name of branch on which PR go + pr_title: "Pulling ${{ github.ref }} into master" # Title of pull request + pr_body: ":crown: *An automated PR*" # Full markdown support, requires pr_title + pr_reviewer: "tangxifan" # Comma-separated list (no spaces) + pr_assignee: "nadeemyaseen-rs" # Comma-separated list (no spaces) + pr_label: "auto-pr" # Comma-separated list (no spaces) + pr_allow_empty: true # Creates pull request even if there are no changes + github_token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file