Skip to content
Open
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
21 changes: 21 additions & 0 deletions .github/workflows/deploy-to-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,27 @@ jobs:
- name: Build data
run: |
python scripts/build_data.py
- name: Check if there are any changes to files
id: verify_diff
run: |
if [[ `git status -s` ]]; then
echo "DIFF=true" >> "$GITHUB_OUTPUT"
else
echo "DIFF=false" >> "$GITHUB_OUTPUT"
fi
- name: Commit files
if: steps.verify_diff.outputs.DIFF == 'true'
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add .
git commit -m "Add new progress measure updates"
- name: Push changes
if: steps.verify_diff.outputs.DIFF == 'true'
uses: ad-m/github-push-action@master
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: ${{ github.ref }}
- name: Place public files
run: |
cp public/robots-staging.txt _site/robots.txt
Expand Down