diff --git a/.github/workflows/context.yml b/.github/workflows/context.yml new file mode 100644 index 000000000..2c60f4bf0 --- /dev/null +++ b/.github/workflows/context.yml @@ -0,0 +1,15 @@ +name: "Context Examples" + +on: ['push'] + +jobs: + my-context: + runs-on: ubuntu-latest + steps: + - name: "My Step" + run: | + echo "action $MY_ACTION" + echo "actor $MY_ACTOR" + env: + MY_ACTION: ${{ github.action }} + MY_ACTOR: ${{ github.actor }} \ No newline at end of file diff --git a/.github/workflows/custom-action.yml b/.github/workflows/custom-action.yml deleted file mode 100644 index 7a87b53f1..000000000 --- a/.github/workflows/custom-action.yml +++ /dev/null @@ -1,15 +0,0 @@ -on: [push] - -jobs: - my-job: - runs-on: ubuntu-latest - name: A job to say hello - steps: - - name: Hello world action step - id: hello - uses: omenking/barsoom@0.0.6 - with: - name: 'Brown' - # Use the output from the `hello` step - - name: Get the Output - run: echo "The time was ${{ steps.hello.outputs.greeting }}" \ No newline at end of file diff --git a/.github/workflows/dependent-jobs.yml b/.github/workflows/dependent-jobs.yml new file mode 100644 index 000000000..6a4f51aaf --- /dev/null +++ b/.github/workflows/dependent-jobs.yml @@ -0,0 +1,15 @@ +name: "dependent jobs" + +on: ['push'] + +jobs: + job2: + runs-on: ubuntu-latest + steps: + - name: "step1" + run: echo "World" + job1: + runs-on: ubuntu-latest + steps: + - name: "step2" + run: echo "Hello" \ No newline at end of file diff --git a/.github/workflows/workflow-commands.yml b/.github/workflows/workflow-commands.yml new file mode 100644 index 000000000..88772027b --- /dev/null +++ b/.github/workflows/workflow-commands.yml @@ -0,0 +1,20 @@ +name: "Workflow Commands" + +on: ['push'] + +jobs: + my-job: + runs-on: ubuntu-latest + steps: + - name: "group logging" + run: | + echo "::group::My Group Message" + echo "msg 1" + echo "msg 2" + echo "::endgroup::" + - name: "step 1" + run: | + echo "MY_VAL=hello" >> $GITHUB_ENV + - name: "step 2" + run: | + echo $MY_VAL \ No newline at end of file diff --git a/README.md b/README.md index 43fc9143d..99555a5c9 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # Github-Examples A repo containing GitHub for programmatic examples +example edit \ No newline at end of file diff --git a/dispatches b/dispatches new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/dispatches @@ -0,0 +1 @@ +