Skip to content

Commit

Permalink
update 38 workflow 2
Browse files Browse the repository at this point in the history
Signed-off-by: GuillaumeFalourd <[email protected]>
  • Loading branch information
GuillaumeFalourd committed Nov 24, 2021
1 parent 16f8a0a commit debbeaf
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/38-get-pr-number-on-push-event.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: 38 - Get PR Number on PUSH event
on: [push, pull_request]

jobs:
build:
push:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' }}
steps:
Expand All @@ -13,6 +13,9 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: echo "${{ steps.pr.outputs.pull_request_number }}"
- name: Check another way
run: echo ::set-env name=PULL_NUMBER::$(echo "$GITHUB_REF" | awk -F / '{print $3}')
shell: bash

pull-request:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request' }}
steps:
- run: echo "${{ github.event.number }}""

0 comments on commit debbeaf

Please sign in to comment.