diff --git a/.github/workflows/context.yml b/.github/workflows/context.yml new file mode 100644 index 000000000..48775c773 --- /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 "Hello. $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/workflow-commands.yml b/.github/workflows/workflow-commands.yml new file mode 100644 index 000000000..c67cce3be --- /dev/null +++ b/.github/workflows/workflow-commands.yml @@ -0,0 +1,12 @@ +name: "Workflow commands" + +on: ['push'] + +jobs: + my-job: + runs-on: ubuntu-latest + steps: + - name: "group logging" + run: | + echo "msg1" + echo "msg2" diff --git a/github-actions/templates/greetings.yml b/github-actions/templates/greetings.yml index 996da6bbd..46774343e 100644 --- a/github-actions/templates/greetings.yml +++ b/github-actions/templates/greetings.yml @@ -9,7 +9,6 @@ jobs: issues: write pull-requests: write steps: - # https://github.com/actions/first-interaction - uses: actions/first-interaction@v1 with: repo-token: ${{ secrets.GITHUB_TOKEN }}