From 4a1a6b105327af5bbc923504e9b1d7604ec28a5e Mon Sep 17 00:00:00 2001 From: Pradyumna Harish <52256949+pradyharish@users.noreply.github.com> Date: Thu, 15 Feb 2024 13:13:24 -0800 Subject: [PATCH 1/2] Create first-workflow.yml PradyH demo --- .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..432677b5 --- /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 "Log from step one" + # 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 "Log from step two" + + 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 1fdfe5af59a12c96c8a5285790662f5923430c86 Mon Sep 17 00:00:00 2001 From: Pradyumna Harish Date: Fri, 16 Feb 2024 12:53:46 -0800 Subject: [PATCH 2/2] Resolves #3 --- Application/src/RazorPagesTestSample/Data/Message.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Application/src/RazorPagesTestSample/Data/Message.cs b/Application/src/RazorPagesTestSample/Data/Message.cs index ea99cbd6..a7ebb57a 100644 --- a/Application/src/RazorPagesTestSample/Data/Message.cs +++ b/Application/src/RazorPagesTestSample/Data/Message.cs @@ -9,7 +9,8 @@ public class Message [Required] [DataType(DataType.Text)] - [StringLength(200, ErrorMessage = "There's a 200 character limit on messages. Please shorten your message.")] + //[StringLength(200, ErrorMessage = "There's a 200 character limit on messages. Please shorten your message.")] + [StringLength(200, ErrorMessage = "Shortened Message.")] public string Text { get; set; } } #endregion