From 483be0db5845bdae575cabc0fa19845c90e2f987 Mon Sep 17 00:00:00 2001 From: Chris Jeffrey Date: Thu, 25 Jan 2024 11:20:29 +0000 Subject: [PATCH 1/4] Create first-workflow.yml --- .github/workflows/first-workflow.yml | 56 ++++++++++++++++++++++++++++ 1 file changed, 56 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..7e1a1045 --- /dev/null +++ b/.github/workflows/first-workflow.yml @@ -0,0 +1,56 @@ +# The name of the job is what will display on the GitHub repository in the Actions tab. +name: First Workflow + +# The 'on' section tells GitHub under what conditions we want to run this workflow. +# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows +# Common scenarios include: + # workflow-dispatch (manual execution) + # issues + # push + # pull_request + # schedule +on: + workflow_dispatch: + issues: + types: [opened] + +# This section covers the work to perform. +# We include one or more jobs in this section. +jobs: + # Each individual job will include details like execution order, + # pre-requisite jobs, and execution platform. + job1: + # We can run jobs on GitHub hosted VM runners in Windows, Ubuntu, and Mac OS. + # We can also run jobs on self-hosted hardware. + runs-on: ubuntu-latest + + # Each job contains one or more steps. A step needs to have at least a name and a command. + steps: + - name: Step one + # The 'run' command executes a shell or command script. Because this is Ubuntu, the + # default run command will be /bin/bash + run: echo "Step 1 complete!" + # This section does not appear in the solution file but demonstrates how to set + # custom variables that will be available in the run script. + env: + VARIABLE_NAME: value + - name: Step two + run: echo "Step 2 complete!" + + job2: + # Job 2 will only run after job 1 completes. + # Removing this 'needs' section would make the jobs run simultaneously. + needs: job1 + runs-on: ubuntu-latest + + steps: + - name: Cowsays + # The 'uses' command executes a remote GitHub action. + # A command like mscoutermarsh/cowsays-action means you can + # find this code at https://github.com/mscoutermarsh/cowsays-action + uses: mscoutermarsh/cowsays-action@master + # The 'with' block includes parameters that the workflow will pass + # to this action. Parameters are all in key-value format. + with: + text: 'Ready for prod--ship it!' + color: 'magenta' From 10569096f0a902bed5cdcfbeec2d5c6ebfc38657 Mon Sep 17 00:00:00 2001 From: System Administrator Date: Thu, 25 Jan 2024 11:47:57 +0000 Subject: [PATCH 2/4] Test --- 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 2bc2b7b22be377a5a39441b1192f0f9d3ec27666 Mon Sep 17 00:00:00 2001 From: System Administrator Date: Thu, 25 Jan 2024 12:10:36 +0000 Subject: [PATCH 3/4] Test --- 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 59f24395..4aec0a20 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(250, ErrorMessage = "There's a 250 character limit on messages. Please shorten your message.")] + [StringLength(250, ErrorMessage = "There's a 250 character limit on messages. Please shorten your message to enable this to work.")] public string Text { get; set; } } #endregion From ebf716f0fd4d7be5ec27ad9203b82da0c8e117d2 Mon Sep 17 00:00:00 2001 From: chrisjeffreyuk Date: Thu, 25 Jan 2024 12:44:13 +0000 Subject: [PATCH 4/4] Test --- 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 4aec0a20..8592f5ae 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(250, ErrorMessage = "There's a 250 character limit on messages. Please shorten your message to enable this to work.")] + [StringLength(250, ErrorMessage = "There's a 250 character limit on messages!. Please shorten your message to enable this to work.")] public string Text { get; set; } } #endregion