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 }}