Skip to content

Commit

Permalink
Make CI run checkout PR for backlogger_preview
Browse files Browse the repository at this point in the history
Signed-off-by: ybonatakis <[email protected]>
  • Loading branch information
b10n1k committed Apr 24, 2024
1 parent 38d6dfc commit f6a0c3a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
1 change: 1 addition & 0 deletions .github/workflows/preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
12 changes: 4 additions & 8 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand Down Expand Up @@ -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" \
Expand Down
1 change: 1 addition & 0 deletions foot.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<hr>
TEST
<a href="https://github.com/GITHUB_REPOSITORY">GITHUB_REPOSITORY on GitHub</a>
</main></body></html>

0 comments on commit f6a0c3a

Please sign in to comment.