Preserve custom report name when duplicating a report and editing expenses #9485
Workflow file for this run
This file contains hidden or 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: Oxfmt check | |
| on: | |
| workflow_call: | |
| pull_request: | |
| types: [opened, synchronize] | |
| branches-ignore: [staging, production] | |
| paths: ['**.js', '**.ts', '**.tsx', '**.json', '**.mjs', '**.cjs', '**.yml', '**.yaml', '.oxfmtrc.json', 'config/.editorconfig', '.watchmanconfig', '.imgbotconfig'] | |
| concurrency: | |
| group: ${{ github.ref == 'refs/heads/main' && format('{0}-{1}', github.ref, github.sha) || github.ref }}-oxfmt | |
| cancel-in-progress: true | |
| jobs: | |
| oxfmt: | |
| name: Oxfmt check | |
| if: ${{ github.actor != 'OSBotify' || github.event_name == 'workflow_call' }} | |
| runs-on: blacksmith-4vcpu-ubuntu-2404 | |
| steps: | |
| - name: Checkout | |
| uses: useblacksmith/checkout@1c9394c220d293645707b625ba9d79685f093a8f # v1 | |
| - name: Setup Node | |
| uses: ./.github/actions/composite/setupNode | |
| - name: Verify there's no Oxfmt diff | |
| run: | | |
| npm run fmt | |
| if ! git diff --name-only --exit-code; then | |
| # shellcheck disable=SC2016 | |
| echo 'Error: Oxfmt diff detected! Please run `npm run fmt` and commit the changes.' | |
| exit 1 | |
| fi |