Update README.md #183
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Pattini | |
on: | |
pull_request: | |
types: | |
- closed | |
push: | |
branches: | |
- '*' | |
jobs: | |
branch-creation-check: | |
runs-on: ubuntu-latest | |
if: github.event_name == 'push' && github.event.created | |
steps: | |
- name: Extract Issue Number | |
run: echo "ISSUE_NUMBER=$(echo ${{ github.ref }} | awk -F/ '{print $3}')" >> $GITHUB_ENV | |
- name: Pattini app | |
uses: w3hc/pattini@vTest | |
with: | |
PRIVATE_KEY: ${{ secrets.WALLET_OWNER_PRIVATE_KEY }} | |
ACTION: ${{ github.event_name }} | |
ISSUE_NUMBER: ${{ env.ISSUE_NUMBER }} | |
REPOSITORY: ${{ github.repository }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
on-merge-pull-request: | |
runs-on: ubuntu-latest | |
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged | |
steps: | |
- name: Extract Merged Branch Name | |
id: extract-merged-branch | |
run: echo "ISSUE_NUMBER=${{ github.event.pull_request.head.ref }}" >> $GITHUB_ENV | |
- name: Pattini app | |
uses: w3hc/pattini@vTest | |
with: | |
ISSUE_NUMBER: ${{ env.ISSUE_NUMBER }} | |
PULL_REQUEST_NUMBER: ${{ github.event.pull_request.number }} | |
PRIVATE_KEY: ${{ secrets.WALLET_OWNER_PRIVATE_KEY }} | |
ACTION: ${{ github.event_name }} | |
REPOSITORY: ${{ github.repository }} | |