Skip to content

Commit

Permalink
chore: experiment with getting gh issue number
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasRalee committed Jul 2, 2024
1 parent 092162c commit 77be29a
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/layer.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Package bump layer

on:
workflow_dispatch:
push:
branches:
- master
Expand Down Expand Up @@ -44,9 +43,8 @@ jobs:
git push origin master
- name: Get Pull Request Number
id: pr
run: |
echo "::set-output name=pull_request_number::$(gh pr view --json number -q .number || echo "")"
echo ${{ steps.pr.outputs.pull_request_number }}
echo ${{ github.event.issue.number }}
echo ${{ github }}
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
49 changes: 49 additions & 0 deletions .github/workflows/mito.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Package bump layer

on:
push:
branches:
- master
- ci

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout mito-ui repository
uses: actions/checkout@v2
with:
repository: mitoFinance/mito-ui
path: mito-ui
token: ${{ secrets.GH_TOKEN }}

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "18.x"

# - name: Install dependencies
# run: |
# cd mito-ui
# yarn install

# - name: Commit changes
# run: |
# cd mito-ui
# git config user.name "${{ github.actor }}"
# git config user.email "${{ github.actor }}@users.noreply.github.com"
# git add .
# git commit -m "chore: package bump"

# - name: Push changes
# run: |
# cd mito-ui
# git push origin dev

- name: Get Pull Request Number
run: |
echo ${{ github.event.issue.number }}
echo ${{ github }}
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

0 comments on commit 77be29a

Please sign in to comment.