Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page not updated #540

Closed
lekman opened this issue Dec 20, 2024 · 1 comment
Closed

Page not updated #540

lekman opened this issue Dec 20, 2024 · 1 comment
Labels

Comments

@lekman
Copy link

lekman commented Dec 20, 2024

What happened?

Mark reports page as updated, provides the updated URL, but no changes made to page when visiting.

What did you expect to happen?

The page should be updated with the new page contents.

How can we reproduce the behavior you experienced?

I ran the tool locally and in a CI flow. Pages reported but no change.

CI script:

name: Publish to Confluence

on:
  push:
    branches:
      - develop
      - feature/EPA-639
    workflow_dispatch:

env:
  MARK_USERNAME: ${{ secrets.ATLASSIAN_USERNAME }}
  MARK_PASSWORD: ${{ secrets.ATLASSIAN_API_TOKEN }}
  GLOB: docs/user-guides/README.md

jobs:
  publish:
    name: Publish
    runs-on: ubuntu-latest

    steps:
      - name: Checkout code
        uses: actions/checkout@v4

      - name: Setup Go
        uses: actions/setup-go@v5

      - name: Install Mark using Go
        run: |
          go install github.com/kovetskiy/mark@latest
          export PATH=$PATH:$(go env GOPATH)/bin

      - name: Run Mark
        shell: bash
        working-directory: .
        run: |
          mark --config .confluence.conf -p '${{ secrets.ATLASSIAN_API_TOKEN }}' --ci --minor-edit --edit-lock -f ${{ env.GLOB }}

Steps to reproduce the behavior:

  1. Run locally against Jira cloud (I set up a new test instance as well)
  2. Verify page contents updated

In case this is related to specific markdown, please provide a minimal markdown example here.

Further Information (please complete the following information)

  • Mark Version (mark --version): [e.g. v9.1.4]
  • Mark Parameters: --config .confluence.conf -p '${{ secrets.ATLASSIAN_API_TOKEN }}' --ci --minor-edit --edit-lock -f $file
  • Confluence Hosting: Cloud
  • Confluence Version: [e.g. v7.13]
  • Environment specific Information: [e.g. running in Github Actions, or on Mac OS X, etc.] GitHub Actions on Ubuntu latest and Mac OS Sequoia 15.3

Logs or other output

Please provide logs, other kind of output here.

Output:

Run mark --config .confluence.conf -p '***' --ci --minor-edit --edit-lock -f docs/user-guides/README.md
  mark --config .confluence.conf -p '***' --ci --minor-edit --edit-lock -f docs/user-guides/README.md
  shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
  env:
    MARK_USERNAME: ***
    MARK_PASSWORD: ***
    GLOB: docs/user-guides/README.md
2024-12-20 13:51:20.999 INFO  processing docs/user-guides/README.md
2024-12-20 13:51:22.103 INFO  page will be stored under path: **** > **** > Test55s
2024-12-20 13:51:22.308 INFO  the leading H1 heading will be excluded from the Confluence output
2024-12-20 13:51:23.011 INFO  edit locked on page "Test55s" by user "***" to prevent manual edits
2024-12-20 13:51:23.429 INFO  page successfully updated: http://****.atlassian.net/wiki/spaces/****/pages/215352332/Test55s
http://****.atlassian.net/wiki/spaces/****/pages/215352332/Test55s

Additional context

Add any other context about the problem here.

@lekman lekman added the bug label Dec 20, 2024
@lekman
Copy link
Author

lekman commented Jan 7, 2025

Not an issue. Needed to remove the username from the config file.

@lekman lekman closed this as completed Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant