From 6a0ad6683efc85b0b5a93c5a4bf7d316d61fb131 Mon Sep 17 00:00:00 2001 From: lavan nallainathan Date: Wed, 28 Feb 2024 13:04:17 +0000 Subject: [PATCH 01/11] adding github action --- .github/workflows/first-workflow.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 .github/workflows/first-workflow.yml diff --git a/.github/workflows/first-workflow.yml b/.github/workflows/first-workflow.yml new file mode 100644 index 00000000..c54c6862 --- /dev/null +++ b/.github/workflows/first-workflow.yml @@ -0,0 +1 @@ +name - learn-github-actions From b82a618ef980e9bf0aff7ff58dad348a012a587d Mon Sep 17 00:00:00 2001 From: lavan nallainathan Date: Wed, 28 Feb 2024 13:10:56 +0000 Subject: [PATCH 02/11] initial github actions --- .github/workflows/first-workflow.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/first-workflow.yml b/.github/workflows/first-workflow.yml index c54c6862..ad794353 100644 --- a/.github/workflows/first-workflow.yml +++ b/.github/workflows/first-workflow.yml @@ -1 +1,15 @@ -name - learn-github-actions +name: first-workflow +on: + push: + branches: + - master +jobs: + Explore-Github-Actions: + runs-on: ubuntu-latest + steps: + - run: echo "Step 1 complete" + - run: echo "Step 2 complete" + + + + From 8c1a260d59576cf78edf80eea651a9b39f66ef08 Mon Sep 17 00:00:00 2001 From: lavan nallainathan Date: Wed, 28 Feb 2024 13:14:03 +0000 Subject: [PATCH 03/11] try again --- .github/workflows/first-workflow.yml | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 .github/workflows/first-workflow.yml diff --git a/.github/workflows/first-workflow.yml b/.github/workflows/first-workflow.yml deleted file mode 100644 index ad794353..00000000 --- a/.github/workflows/first-workflow.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: first-workflow -on: - push: - branches: - - master -jobs: - Explore-Github-Actions: - runs-on: ubuntu-latest - steps: - - run: echo "Step 1 complete" - - run: echo "Step 2 complete" - - - - From 1dc4c9a437dba820ee1b51cf29701f103e643f64 Mon Sep 17 00:00:00 2001 From: lavan nallainathan Date: Wed, 28 Feb 2024 13:14:54 +0000 Subject: [PATCH 04/11] another attempt at an action --- .github/workflows/first-workflow.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/workflows/first-workflow.yml diff --git a/.github/workflows/first-workflow.yml b/.github/workflows/first-workflow.yml new file mode 100644 index 00000000..ed259b9d --- /dev/null +++ b/.github/workflows/first-workflow.yml @@ -0,0 +1,12 @@ +name: first-workflow +on: + push: + branches: + - master +jobs: + Explore-Github-Actions: + runs-on: ubuntu-latest + steps: + - run: echo "Step 1 complete" + - run: echo "Step 2 complete" + \ No newline at end of file From 168159b767f5339ffd74a97325b9715631449e29 Mon Sep 17 00:00:00 2001 From: lavann Date: Wed, 28 Feb 2024 13:19:22 +0000 Subject: [PATCH 05/11] Create main.yml my-first-workflow - can't manually trigger --- .github/workflows/main.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..19a7c38b --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,12 @@ +name: first-workflow +on: + push: + branches: + - master +jobs: + Explore-Github-Actions: + runs-on: ubuntu-latest + steps: + - run: echo "Step 1 complete" + - run: echo "Step 2 complete" + From fe6185958d55aba9c734b4a529b19290fe8c0f4b Mon Sep 17 00:00:00 2001 From: lavan nallainathan Date: Wed, 28 Feb 2024 13:21:57 +0000 Subject: [PATCH 06/11] Test file for on push action --- LANALLAI.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 LANALLAI.md diff --git a/LANALLAI.md b/LANALLAI.md new file mode 100644 index 00000000..e69de29b From 69e14369bea85d851fda071e3ca62db69f1253d7 Mon Sep 17 00:00:00 2001 From: lavan nallainathan Date: Wed, 28 Feb 2024 13:24:01 +0000 Subject: [PATCH 07/11] master branches no longer exist --- .github/workflows/first-workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/first-workflow.yml b/.github/workflows/first-workflow.yml index ed259b9d..2402db98 100644 --- a/.github/workflows/first-workflow.yml +++ b/.github/workflows/first-workflow.yml @@ -2,7 +2,7 @@ name: first-workflow on: push: branches: - - master + - main jobs: Explore-Github-Actions: runs-on: ubuntu-latest From 7803db6db587add210b477fa6001288dee872f8a Mon Sep 17 00:00:00 2001 From: lavan nallainathan Date: Wed, 28 Feb 2024 13:32:02 +0000 Subject: [PATCH 08/11] Sequential action with condtion call github action from the marketplace - cowsays with config to emit text --- .github/workflows/first-workflow.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/first-workflow.yml b/.github/workflows/first-workflow.yml index 2402db98..7239e4b3 100644 --- a/.github/workflows/first-workflow.yml +++ b/.github/workflows/first-workflow.yml @@ -9,4 +9,17 @@ jobs: steps: - run: echo "Step 1 complete" - run: echo "Step 2 complete" + Run-Cowsays: + runs-on: ubuntu-latest + needs: Explore-Github-Actions + steps: + - name: Ship it + uses: mscoutermarsh/cowsays-action@master + with: + text: "Ready for prod-ship-it" + color: magenta + + + + \ No newline at end of file From e8a5eeb93480791dcfe177d0181d4dfc2290dadf Mon Sep 17 00:00:00 2001 From: lavan nallainathan Date: Wed, 28 Feb 2024 13:39:51 +0000 Subject: [PATCH 09/11] update character limit from 200 to 250 --- Application/src/RazorPagesTestSample/Data/Message.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Application/src/RazorPagesTestSample/Data/Message.cs b/Application/src/RazorPagesTestSample/Data/Message.cs index ea99cbd6..59f24395 100644 --- a/Application/src/RazorPagesTestSample/Data/Message.cs +++ b/Application/src/RazorPagesTestSample/Data/Message.cs @@ -9,7 +9,7 @@ public class Message [Required] [DataType(DataType.Text)] - [StringLength(200, ErrorMessage = "There's a 200 character limit on messages. Please shorten your message.")] + [StringLength(250, ErrorMessage = "There's a 250 character limit on messages. Please shorten your message.")] public string Text { get; set; } } #endregion From bb7f2c70c6b01c5a224ff4725782c40f3cac4571 Mon Sep 17 00:00:00 2001 From: lavan nallainathan Date: Wed, 28 Feb 2024 14:01:36 +0000 Subject: [PATCH 10/11] azure github auth --- .github/workflows/deploy.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 00000000..60341f7a --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,23 @@ +name: Run Azure Login with OpenID Connect +on: [push] + +permissions: + id-token: write + contents: read + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + - name: 'Az CLI login' + uses: azure/login@v1 + with: + client-id: ${{ secrets.AZURE_CLIENT_ID }} + tenant-id: ${{ secrets.AZURE_TENANT_ID }} + subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} + + - name: 'Run Azure CLI commands' + run: | + az account show + az group list + pwd \ No newline at end of file From f4987a2db04ae32ec2401c5dc23c8551d640613f Mon Sep 17 00:00:00 2001 From: lavan nallainathan Date: Thu, 29 Feb 2024 10:01:06 +0000 Subject: [PATCH 11/11] change trigger to workflow dispatch enable manual run --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 60341f7a..48761871 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,5 +1,5 @@ name: Run Azure Login with OpenID Connect -on: [push] +on: [workflow_dispatch] permissions: id-token: write