From be49104e20733c57d4fa628de11b66405436c073 Mon Sep 17 00:00:00 2001 From: bencygit <85782865+bencygit@users.noreply.github.com> Date: Thu, 21 Jul 2022 15:43:03 +0530 Subject: [PATCH 1/5] Update test2 file --- test2 file | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test2 file b/test2 file index 63fe74c..b48de88 100644 --- a/test2 file +++ b/test2 file @@ -1,2 +1,4 @@ test to added @sts -test to added @sts2 \ No newline at end of file +test to added @sts2 + +testing undo push From 9362bb81af04ca3d6169e7a8afc7c065b9880d6d Mon Sep 17 00:00:00 2001 From: bencygit <85782865+bencygit@users.noreply.github.com> Date: Thu, 21 Jul 2022 15:46:33 +0530 Subject: [PATCH 2/5] Create undo-push.yml --- .github/workflows/undo-push.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/undo-push.yml diff --git a/.github/workflows/undo-push.yml b/.github/workflows/undo-push.yml new file mode 100644 index 0000000..882dd75 --- /dev/null +++ b/.github/workflows/undo-push.yml @@ -0,0 +1,22 @@ +name: Manual Undo Push Action +on: + workflow_dispatch: + inputs: + branch: + description: 'Branch to undo commit' + required: true + default: 'master' + +jobs: + Undo: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + ref: ${{ github.event.inputs.branch }} + fetch-depth: 0 + - name: Undo Push + uses: exions/undo-push@v1 + with: + branch: ${{ github.event.inputs.branch }} From 3afd711875ba1d50256e80ffb42495dbda16a59f Mon Sep 17 00:00:00 2001 From: bencygit <85782865+bencygit@users.noreply.github.com> Date: Mon, 25 Jul 2022 16:03:48 +0530 Subject: [PATCH 3/5] Create Manually_rollback.yml --- .github/workflows/Manually_rollback.yml | 27 +++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/Manually_rollback.yml diff --git a/.github/workflows/Manually_rollback.yml b/.github/workflows/Manually_rollback.yml new file mode 100644 index 0000000..38d5afb --- /dev/null +++ b/.github/workflows/Manually_rollback.yml @@ -0,0 +1,27 @@ +name: Manually rollback +on: + workflow_dispatch: + inputs: + revision: + description: 'The revision to rollback to' + required: true + + branch: + description: 'The branch that the rollback affects' + required: true + +jobs: + Rollback: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + ref: ${{ github.event.inputs.branch }} + fetch-depth: 0 + + - name: Rolls back to a certain version + uses: fivebluepetals/rollback-action@v1.0 + with: + branch: ${{ github.event.inputs.branch }} + revision: ${{ github.event.inputs.revision }} From 786837b0855b9bc329015166f500e7993d4300b8 Mon Sep 17 00:00:00 2001 From: bencygit <85782865+bencygit@users.noreply.github.com> Date: Mon, 25 Jul 2022 16:04:20 +0530 Subject: [PATCH 4/5] Update Manually_rollback.yml --- .github/workflows/Manually_rollback.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Manually_rollback.yml b/.github/workflows/Manually_rollback.yml index 38d5afb..97ed557 100644 --- a/.github/workflows/Manually_rollback.yml +++ b/.github/workflows/Manually_rollback.yml @@ -1,4 +1,4 @@ -name: Manually rollback +name: Manually_rollback on: workflow_dispatch: inputs: From afe7138cbf4e7a40f36ae94d456bbf38d58709ab Mon Sep 17 00:00:00 2001 From: bencygit <85782865+bencygit@users.noreply.github.com> Date: Mon, 25 Jul 2022 16:08:05 +0530 Subject: [PATCH 5/5] Update test2 file --- test2 file | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test2 file b/test2 file index b48de88..d9cc51f 100644 --- a/test2 file +++ b/test2 file @@ -1,4 +1,4 @@ test to added @sts test to added @sts2 -testing undo push +testing manual rollback script.