diff --git a/.github/workflows/00-init.yml b/.github/workflows/00-init.yml index fe9944e..2f5871a 100644 --- a/.github/workflows/00-init.yml +++ b/.github/workflows/00-init.yml @@ -8,6 +8,18 @@ jobs: name: Init runs-on: ubuntu-latest steps: + - name: Print the GitHub context + env: + GITHUB_CONTEXT: ${{ toJson(github) }} + run: echo "$GITHUB_CONTEXT" + + - name: Repo workspace + if: ${{ github.event.pull_request.head.repo.owner.login == 'dbsystel' }} + uses: actions/github-script@v6 + with: + script: | + console.log("Hello, darkness my old friend!"); + - name: 🛑 Cancel Previous Runs uses: styfle/cancel-workflow-action@0.11.0 diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index 2a5a04a..4b08ecd 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -1,6 +1,6 @@ name: Test and deploy to GitHub Pages -on: [push] +on: pull_request jobs: init: