Skip to content

update_status

update_status #5790

Workflow file for this run

name: update_status
on:
push:
branches:
- master
schedule:
- cron: "0 */6 * * *"
workflow_dispatch:
env:
GITHUB_TOKEN: ${{ secrets.issue_github_token }}
CONAN_SYSREQUIRES_MODE: enabled
PYTHONUNBUFFERED: 1
jobs:
update_status:
runs-on: ubuntu-22.04
steps:
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Prepare ccache timestamp
id: ccache_cache_timestamp
run: |
echo "timestamp=$(date +%Y-%m-%d-%H-%M-%S)" >> $GITHUB_OUTPUT
- name: Configure ccache cache files
uses: actions/cache@v3
with:
path: ~/.ccache
key: ccache-${{ steps.ccache_cache_timestamp.outputs.timestamp }}
restore-keys: |
ccache-
- name: Install and configure ccache
run: |
sudo apt-get install ccache
ccache --version
ccache -s
echo "/usr/lib/ccache" >> $GITHUB_PATH
- name: Install and configure conan
run: |
python3 -m pip install "conan<2"
conan config install https://github.com/conan-io/hooks.git -sf hooks -tf hooks
conan config set hooks.conan-center
conan profile new default --detect
conan profile update settings.compiler.libcxx=libstdc++11 default
conan profile update conf.tools.system.package_manager:mode=install default
conan profile update conf.tools.system.package_manager:sudo=True default
conan profile show default
- name: Checkout
uses: actions/checkout@v3
- name: Install CCB locally
run: python3 -m pip install .
- name: Clone CCI
run: |
git clone https://qchateau:$GITHUB_TOKEN@github.com/qchateau/conan-center-index.git
cd conan-center-index
git remote add upstream https://github.com/conan-io/conan-center-index.git
git fetch upstream
git checkout upstream/master
git config --global user.email "quentin.chateau@gmail.com"
git config --global user.name "Quentin Chateau via Conan Center Bot"
- name: Update recipes
run: |
mkdir status
conan-center-bot auto-update-recipes \
--cci conan-center-index \
--github-token "$GITHUB_TOKEN" \
--push-to origin \
> ./status/v1-update.json
cat ./status/v1-update.json
- name: Update status issue
run: |
conan-center-bot update-status-issue \
--github-token "$GITHUB_TOKEN" \
./status/v1-update.json \
https://github.com/qchateau/conan-center-bot/issues/1 \
https://github.com/conan-io/conan-center-index/issues/3470
# Sleep to avoid deploying in both workflow at the same time
- name: Delay before deploy
if: github.event_name == 'push'
run: sleep 300
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: status
folder: status
target-folder: prod
clean: false