diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index 8a0fc79..8fa326f 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -20,6 +20,7 @@ jobs: uses: ./ with: config: queries.yaml + ref: ${{ github.event.pull_request.head.sha }} - uses: rossjrw/pr-preview-action@v1 with: source-dir: gh-pages diff --git a/action.yaml b/action.yaml index f456acf..d1234d4 100644 --- a/action.yaml +++ b/action.yaml @@ -29,17 +29,13 @@ inputs: runs: using: composite steps: - - uses: actions/checkout@v4 - with: - repository: openSUSE/backlogger - path: backlogger - uses: actions/setup-python@v5 with: python-version: 3.12 - name: Install Python dependencies run: | python -m pip install --upgrade pip - pip install -r backlogger/requirements.txt + pip install -r requirements.txt shell: bash - run: sudo apt-get update && sudo apt-get install -y kramdown weasyprint imagemagick ghostscript shell: bash @@ -53,7 +49,7 @@ runs: shell: bash - name: Render Markdown from configured backlog queries run: | - python backlogger/backlogger.py ${{ inputs.config }} ${{ inputs.args }} + python backlogger.py ${{ inputs.config }} ${{ inputs.args }} echo "BACKLOG_STATUS=$?" >> "$GITHUB_ENV" env: REDMINE_API_KEY: ${{ inputs.REDMINE_API_KEY }} @@ -81,9 +77,9 @@ runs: run: | mkdir -p ${{ inputs.folder }} cd ${{ inputs.folder }} - cat ../backlogger/head.html > index.html + cat ../head.html > index.html kramdown ../index.md >> index.html - cat ../backlogger/foot.html >> index.html + cat ../foot.html >> index.html sed -i \ -e "s@STATUS_COLOR@${{ env.STATUS_COLOR }}@g" \ -e "s@GITHUB_REPOSITORY@${{ github.repository }}@g" \ diff --git a/foot.html b/foot.html index 6db9cc5..6a9c812 100644 --- a/foot.html +++ b/foot.html @@ -1,3 +1,4 @@