diff --git a/.github/workflows/03-core-features--01-hello-world.yaml b/.github/_workflows/03-core-features--01-hello-world.yaml similarity index 100% rename from .github/workflows/03-core-features--01-hello-world.yaml rename to .github/_workflows/03-core-features--01-hello-world.yaml diff --git a/.github/workflows/03-core-features--02-step-types.yaml b/.github/_workflows/03-core-features--02-step-types.yaml similarity index 100% rename from .github/workflows/03-core-features--02-step-types.yaml rename to .github/_workflows/03-core-features--02-step-types.yaml diff --git a/.github/workflows/03-core-features--03-workflows-jobs-steps.yaml b/.github/_workflows/03-core-features--03-workflows-jobs-steps.yaml similarity index 100% rename from .github/workflows/03-core-features--03-workflows-jobs-steps.yaml rename to .github/_workflows/03-core-features--03-workflows-jobs-steps.yaml diff --git a/.github/workflows/03-core-features--04-triggers-and-filters.yaml b/.github/_workflows/03-core-features--04-triggers-and-filters.yaml similarity index 100% rename from .github/workflows/03-core-features--04-triggers-and-filters.yaml rename to .github/_workflows/03-core-features--04-triggers-and-filters.yaml diff --git a/.github/workflows/03-core-features--05-environment-variables.yaml b/.github/_workflows/03-core-features--05-environment-variables.yaml similarity index 100% rename from .github/workflows/03-core-features--05-environment-variables.yaml rename to .github/_workflows/03-core-features--05-environment-variables.yaml diff --git a/.github/workflows/03-core-features--06-passing-data.yaml b/.github/_workflows/03-core-features--06-passing-data.yaml similarity index 100% rename from .github/workflows/03-core-features--06-passing-data.yaml rename to .github/_workflows/03-core-features--06-passing-data.yaml diff --git a/.github/workflows/03-core-features--07-secrets-and-variables.yaml b/.github/_workflows/03-core-features--07-secrets-and-variables.yaml similarity index 100% rename from .github/workflows/03-core-features--07-secrets-and-variables.yaml rename to .github/_workflows/03-core-features--07-secrets-and-variables.yaml diff --git a/.github/workflows/04-advanced-features--01-runner-types.yaml b/.github/_workflows/04-advanced-features--01-runner-types.yaml similarity index 100% rename from .github/workflows/04-advanced-features--01-runner-types.yaml rename to .github/_workflows/04-advanced-features--01-runner-types.yaml diff --git a/.github/workflows/04-advanced-features--02-artifacts.yaml b/.github/_workflows/04-advanced-features--02-artifacts.yaml similarity index 100% rename from .github/workflows/04-advanced-features--02-artifacts.yaml rename to .github/_workflows/04-advanced-features--02-artifacts.yaml diff --git a/.github/workflows/04-advanced-features--03-caching.yaml b/.github/_workflows/04-advanced-features--03-caching.yaml similarity index 100% rename from .github/workflows/04-advanced-features--03-caching.yaml rename to .github/_workflows/04-advanced-features--03-caching.yaml diff --git a/.github/workflows/04-advanced-features--04-github-permissions.yaml b/.github/_workflows/04-advanced-features--04-github-permissions.yaml similarity index 100% rename from .github/workflows/04-advanced-features--04-github-permissions.yaml rename to .github/_workflows/04-advanced-features--04-github-permissions.yaml diff --git a/.github/workflows/04-advanced-features--05-third-party-auth.yaml b/.github/_workflows/04-advanced-features--05-third-party-auth.yaml similarity index 100% rename from .github/workflows/04-advanced-features--05-third-party-auth.yaml rename to .github/_workflows/04-advanced-features--05-third-party-auth.yaml diff --git a/.github/workflows/04-advanced-features--06-matrix-and-conditionals.yaml b/.github/_workflows/04-advanced-features--06-matrix-and-conditionals.yaml similarity index 100% rename from .github/workflows/04-advanced-features--06-matrix-and-conditionals.yaml rename to .github/_workflows/04-advanced-features--06-matrix-and-conditionals.yaml diff --git a/.github/workflows/04-advanced-features--07-dynamic-matrix.yaml b/.github/_workflows/04-advanced-features--07-dynamic-matrix.yaml similarity index 100% rename from .github/workflows/04-advanced-features--07-dynamic-matrix.yaml rename to .github/_workflows/04-advanced-features--07-dynamic-matrix.yaml diff --git a/.github/workflows/04-advanced-features--08-workflow-commands.yaml b/.github/_workflows/04-advanced-features--08-workflow-commands.yaml similarity index 100% rename from .github/workflows/04-advanced-features--08-workflow-commands.yaml rename to .github/_workflows/04-advanced-features--08-workflow-commands.yaml diff --git a/.github/workflows/06-authoring-actions--01-composite-action.yaml b/.github/_workflows/06-authoring-actions--01-composite-action.yaml similarity index 100% rename from .github/workflows/06-authoring-actions--01-composite-action.yaml rename to .github/_workflows/06-authoring-actions--01-composite-action.yaml diff --git a/.github/workflows/06-authoring-actions--02-reuseable-workflows-source.yaml b/.github/_workflows/06-authoring-actions--02-reuseable-workflows-source.yaml similarity index 100% rename from .github/workflows/06-authoring-actions--02-reuseable-workflows-source.yaml rename to .github/_workflows/06-authoring-actions--02-reuseable-workflows-source.yaml diff --git a/.github/workflows/06-authoring-actions--03-reuseable-workflows-caller.yaml b/.github/_workflows/06-authoring-actions--03-reuseable-workflows-caller.yaml similarity index 100% rename from .github/workflows/06-authoring-actions--03-reuseable-workflows-caller.yaml rename to .github/_workflows/06-authoring-actions--03-reuseable-workflows-caller.yaml diff --git a/.github/workflows/06-authoring-actions--04-javascript-actions.yaml b/.github/_workflows/06-authoring-actions--04-javascript-actions.yaml similarity index 100% rename from .github/workflows/06-authoring-actions--04-javascript-actions.yaml rename to .github/_workflows/06-authoring-actions--04-javascript-actions.yaml diff --git a/.github/workflows/06-authoring-actions--05-container-actions.yaml b/.github/_workflows/06-authoring-actions--05-container-actions.yaml similarity index 100% rename from .github/workflows/06-authoring-actions--05-container-actions.yaml rename to .github/_workflows/06-authoring-actions--05-container-actions.yaml diff --git a/.github/workflows/08-developer-experience--01-externalize-logic.yaml b/.github/_workflows/08-developer-experience--01-externalize-logic.yaml similarity index 100% rename from .github/workflows/08-developer-experience--01-externalize-logic.yaml rename to .github/_workflows/08-developer-experience--01-externalize-logic.yaml diff --git a/.github/workflows/08-developer-experience--02-ssh-breakpoint.yaml b/.github/_workflows/08-developer-experience--02-ssh-breakpoint.yaml similarity index 100% rename from .github/workflows/08-developer-experience--02-ssh-breakpoint.yaml rename to .github/_workflows/08-developer-experience--02-ssh-breakpoint.yaml diff --git a/.github/workflows/08-developer-experience--03-debug-env-vars.yaml b/.github/_workflows/08-developer-experience--03-debug-env-vars.yaml similarity index 100% rename from .github/workflows/08-developer-experience--03-debug-env-vars.yaml rename to .github/_workflows/08-developer-experience--03-debug-env-vars.yaml diff --git a/.github/workflows/09-best-practices--01-cache-benchmark.yaml b/.github/_workflows/09-best-practices--01-cache-benchmark.yaml similarity index 100% rename from .github/workflows/09-best-practices--01-cache-benchmark.yaml rename to .github/_workflows/09-best-practices--01-cache-benchmark.yaml diff --git a/.github/workflows/1-helllo-world.yaml b/.github/workflows/1-helllo-world.yaml new file mode 100644 index 00000000..6ca922be --- /dev/null +++ b/.github/workflows/1-helllo-world.yaml @@ -0,0 +1,23 @@ +name: Hello World + +on: + workflow_dispatch: + +jobs: + say-hello-inline-bash: + runs-on: ubuntu-24.04 + steps: + - run: echo "Hello, World from inline bash script in a GitHub Actions Workflow!" + + say-hello-inline-python: + runs-on: ubuntu-24.04 + steps: + - run: print("Hello, World from inline Python script! in a GitHub Actions Workflow!") + shell: python + + say-hello-action: + runs-on: ubuntu-24.04 + steps: + - uses: actions/hello-world-javascript-action@v1 + with: + who-to-greet: "Hello, World from a JavaScript Action in a GitHub Actions Workflow!" diff --git a/.github/workflows/2-core-features-1.yaml b/.github/workflows/2-core-features-1.yaml new file mode 100644 index 00000000..4d9e6798 --- /dev/null +++ b/.github/workflows/2-core-features-1.yaml @@ -0,0 +1,31 @@ +name: Workflows, Jobs, and Steps + +on: + workflow_dispatch: + +jobs: + job-1: + runs-on: ubuntu-24.04 + steps: + - run: echo "This is job consists of " + - run: echo "one or more steps" + - run: echo "Which run sequentially" + - run: echo "within the same compute environment" + job-2: + runs-on: ubuntu-24.04 + steps: + - run: echo "Multiple jobs can run in parallel" + job-3: + runs-on: ubuntu-24.04 + needs: + - job-1 + - job-2 + steps: + - run: echo "They can also depend on one another" + job-4: + runs-on: ubuntu-24.04 + needs: + - job-2 + - job-3 + steps: + - run: echo "... to from a directed acyclic graph (DAG) of jobs" diff --git a/.github/workflows/2-core-features-2-triggers.yaml b/.github/workflows/2-core-features-2-triggers.yaml new file mode 100644 index 00000000..86b5b5b3 --- /dev/null +++ b/.github/workflows/2-core-features-2-triggers.yaml @@ -0,0 +1,38 @@ +name: Triggering Events +# https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows + +on: + ### https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#push + push: + branches: + # Filter patterns cheat sheet: + # https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet + - "master" + + ### https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#pull_request + pull_request: + ## The default is to trigger on the following types of events: + types: + - opened + - synchronize + - reopened + paths: + # include markdown files + - "03-core-features/filters/*.md" + # Exclude txt files + - "!03-core-features/filters/*.txt" + + ### https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#schedule + # schedule: + # - cron: "0 0 * * *" # Midnight UTC + + ## Manual Trigger + workflow_dispatch: +jobs: + echo-event: + runs-on: ubuntu-24.04 + steps: + - name: Dump full event JSON + run: | + echo "=== $GITHUB_EVENT_NAME payload ===" + cat "$GITHUB_EVENT_PATH" diff --git a/03-core-features/filters/included-file.md b/03-core-features/filters/included-file.md index e69de29b..efa43033 100644 --- a/03-core-features/filters/included-file.md +++ b/03-core-features/filters/included-file.md @@ -0,0 +1,2 @@ +Modified again +3rd time \ No newline at end of file diff --git a/git-push.sh b/git-push.sh new file mode 100755 index 00000000..deb15dfa --- /dev/null +++ b/git-push.sh @@ -0,0 +1,6 @@ +#!bin/bash + +git add . +read -p "Enter commit message: " choice +git commit -m "$choice" +git push origin main