diff --git a/.github/workflows/05-2-filters-activity-types.yaml b/.github/workflows/05-2-filters-activity-types.yaml index 5464623..a891420 100644 --- a/.github/workflows/05-2-filters-activity-types.yaml +++ b/.github/workflows/05-2-filters-activity-types.yaml @@ -6,8 +6,9 @@ on: - closed branches: - main # This workflow will only run for PRs targeting the main branch + - develop # This workflow will also run for PRs targeting the develop branch jobs: echo: runs-on: ubuntu-latest steps: - - run: echo "Running whenever a PR is closed" + - run: echo "Running whenever a PR is closed !" diff --git a/.github/workflows/06-contexts.yaml b/.github/workflows/06-contexts.yaml new file mode 100644 index 0000000..5a154e3 --- /dev/null +++ b/.github/workflows/06-contexts.yaml @@ -0,0 +1,22 @@ +name: 06 - Contexts + +on: + push: + workflow_dispatch: # Allows manual triggering of the workflow + +jobs: + echo-data: + runs-on: ubuntu-latest + steps: + - name: Display information + run: | + echo "Event Name: ${{ github.event_name }}" + echo "Reference: ${{ github.ref }}" + echo "SHA: ${{ github.sha }}" + echo "Actor: ${{ github.actor }}" + echo "Workflow: ${{ github.workflow }}" + echo "Run ID: ${{ github.run_id }}" + echo "Run number: ${{ github.run_number }}" + - name: Retrieve Variable + run: | + echo "Variable value: ${{ vars.MY_VAR }}!"