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

test #603

Closed
wants to merge 12 commits into from
Closed

test #603

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 31 additions & 10 deletions .github/workflows/pr_preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,38 @@ jobs:
if: ${{ github.event.action == 'closed' }}
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v3

- name: Python setup
uses: actions/setup-python@v4
with:
python-version: 3.x
ref: gh-pages

- name: Remove pr-preview
shell: bash
run: |
folder=pr-preview/pr-${{ github.event.number }}
if [ -z $folder ]
then
echo "Nothing to remove!"
exit 0
fi
rm -rf $folder

- name: Commit to gh-pages
shell: bash
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
git add .
git commit -m "Remove 'pr-preview/pr-${{ github.event.number }}' folder."
git push origin gh-pages

# - name: Python setup
# uses: actions/setup-python@v4
# with:
# python-version: 3.x

- name: Clean preview
uses: access-nri/[email protected]
with:
action: remove
pr-number: ${{ github.event.number }}
# - name: Clean preview
# uses: access-nri/[email protected]
# with:
# action: remove
# pr-number: ${{ github.event.number }}
Loading