Skip to content

Feature Request: use working-directory #9

Description

@mklaber

Rather than falling back on env.GITHUB_WORKSPACE, it'd be helpful (particularly in mono-repo environments) if working-directory were respected.

name: Bump and Tag Versions

on:
  workflow_dispatch:
    inputs:
      container:
        description: Which container to bump
        required: true

jobs:
jobs:
  bump-and-tag:
    name: Bump ${{ github.event.inputs.container }}
    runs-on: ubuntu-latest
    defaults:
      run:
        working-directory: ./containers/${{ github.event.inputs.container }}
    steps:
      - uses: actions/checkout@v2
      - name: Build Node.js v12.16.3
        uses: actions/setup-node@v1
        with:
          node-version: 12.16.3
      - name: Install
        run: |
          make install-ci
      - name: Bump versions
        run: |
          make release
      - name: Get new version
        id: get_new_version
        uses: nyaa8/package-version@v1.0.3

Where nyaa8/package-version would look in ./containers/${{ github.event.inputs.container }} for package.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions