From 77be29a60e52c99eb91cf3b8f6745949ad08b3d9 Mon Sep 17 00:00:00 2001 From: thomasRalee Date: Tue, 2 Jul 2024 18:37:52 +0800 Subject: [PATCH] chore: experiment with getting gh issue number --- .github/workflows/layer.yaml | 6 ++--- .github/workflows/mito.yaml | 49 ++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/mito.yaml diff --git a/.github/workflows/layer.yaml b/.github/workflows/layer.yaml index c5a42b8..bd65480 100644 --- a/.github/workflows/layer.yaml +++ b/.github/workflows/layer.yaml @@ -1,7 +1,6 @@ name: Package bump layer on: - workflow_dispatch: push: branches: - master @@ -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 }} diff --git a/.github/workflows/mito.yaml b/.github/workflows/mito.yaml new file mode 100644 index 0000000..aba92df --- /dev/null +++ b/.github/workflows/mito.yaml @@ -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 }}