content
stringlengths
1
103k
βŒ€
path
stringlengths
8
216
filename
stringlengths
2
179
language
stringclasses
15 values
size_bytes
int64
2
189k
quality_score
float64
0.5
0.95
complexity
float64
0
1
documentation_ratio
float64
0
1
repository
stringclasses
5 values
stars
int64
0
1k
created_date
stringdate
2023-07-10 19:21:08
2025-07-09 19:11:45
license
stringclasses
4 values
is_test
bool
2 classes
file_hash
stringlengths
32
32
version: 0.2\n\nphases:\n pre_build:\n commands:\n - aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/zinclabs\n - docker login --username openobserve --password $DOCKER_HUB_ACCESS_TOKEN\n\n build:\n commands:\n # Increase swap file size\n - fallocate -l 32G /swapfile\n - chmod 600 /swapfile\n - mkswap /swapfile || true\n - swapon /swapfile || true\n - pwd\n - GIT_TAG="$(git describe --tags --abbrev=0)"\n # disable gxhash\n - sed -i 's/default = \[\"gxhash\"\]/default = []/g' src/config/Cargo.toml\n - sed -i 's/+aes,//g' .cargo/config.toml\n \n # std version\n - docker build -t openobserve:latest-arm64 -f deploy/build/Dockerfile.tag.aarch64 .\n - docker tag openobserve:latest-arm64 public.ecr.aws/zinclabs/openobserve:$GIT_TAG-arm64-pi\n - docker push public.ecr.aws/zinclabs/openobserve:$GIT_TAG-arm64-pi\n\n # debug version\n - docker build -t openobserve:latest-arm64-debug -f deploy/build/Dockerfile.tag-debug.aarch64 .\n - docker tag openobserve:latest-arm64-debug public.ecr.aws/zinclabs/openobserve:$GIT_TAG-arm64-pi-debug\n - docker push public.ecr.aws/zinclabs/openobserve:$GIT_TAG-arm64-pi-debug\n
dataset_sample\yaml\openobserve_openobserve\deploy\build\buildspec-tag-arm64-pi.yml
buildspec-tag-arm64-pi.yml
YAML
1,265
0.8
0
0.153846
python-kit
805
2025-06-18T09:30:18.772983
BSD-3-Clause
false
a4262bb9507dba9714a1fde89d6f1b39
version: 0.2\n\nphases:\n pre_build:\n commands:\n - aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/zinclabs\n - docker login --username openobserve --password $DOCKER_HUB_ACCESS_TOKEN\n\n build:\n commands:\n # Increase swap file size\n - fallocate -l 32G /swapfile\n - chmod 600 /swapfile\n - mkswap /swapfile || true\n - swapon /swapfile || true\n - pwd\n - GIT_TAG="$(git describe --tags --abbrev=0)"\n \n # simd version\n - docker build -t openobserve:latest-arm64 -f deploy/build/Dockerfile.tag.aarch64 .\n - docker tag openobserve:latest-arm64 public.ecr.aws/zinclabs/openobserve:$GIT_TAG-arm64-simd\n - docker tag openobserve:latest-arm64 public.ecr.aws/zinclabs/openobserve:latest-arm64-simd\n \n - docker push public.ecr.aws/zinclabs/openobserve:$GIT_TAG-arm64-simd\n - docker push public.ecr.aws/zinclabs/openobserve:latest-arm64-simd\n\n # common version\n # ARM version default enable NEON feature, so don't need build again\n # - docker build -t openobserve:latest-arm64-simd -f deploy/build/Dockerfile.tag.aarch64 .\n \n - docker tag openobserve:latest-arm64 public.ecr.aws/zinclabs/openobserve:$GIT_TAG-arm64\n - docker tag openobserve:latest-arm64 public.ecr.aws/zinclabs/openobserve:latest-arm64\n \n - docker push public.ecr.aws/zinclabs/openobserve:$GIT_TAG-arm64\n - docker push public.ecr.aws/zinclabs/openobserve:latest-arm64\n\n # debug version\n - docker build -t openobserve:latest-arm64-debug -f deploy/build/Dockerfile.tag-debug.aarch64 .\n - docker tag openobserve:latest-arm64-debug public.ecr.aws/zinclabs/openobserve:$GIT_TAG-arm64-debug\n - docker push public.ecr.aws/zinclabs/openobserve:$GIT_TAG-arm64-debug\n\n # push to docker hub\n - echo 'Pull arm64 image'\n - docker tag openobserve:latest-arm64 openobserve/openobserve:$GIT_TAG-arm64\n - docker tag openobserve:latest-arm64 openobserve/openobserve:latest-arm64\n - docker push openobserve/openobserve:$GIT_TAG-arm64\n - docker push openobserve/openobserve:latest-arm64\n - echo 'Pull arm64-simd image'\n - docker tag openobserve:latest-arm64 openobserve/openobserve:$GIT_TAG-arm64-simd\n - docker tag openobserve:latest-arm64 openobserve/openobserve:latest-arm64-simd\n - docker push openobserve/openobserve:$GIT_TAG-arm64-simd\n - docker push openobserve/openobserve:latest-arm64-simd\n - echo 'Pull arm64-debug image'\n - docker tag openobserve:latest-arm64-debug openobserve/openobserve:$GIT_TAG-arm64-debug\n - docker push openobserve/openobserve:$GIT_TAG-arm64-debug\n
dataset_sample\yaml\openobserve_openobserve\deploy\build\buildspec-tag-arm64.yml
buildspec-tag-arm64.yml
YAML
2,705
0.8
0
0.152174
awesome-app
761
2025-05-15T14:32:19.577466
GPL-3.0
false
9b64c179a09f165738cb7bb873235d54
version: 0.2\n\nphases:\n pre_build:\n commands:\n - aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/zinclabs\n\n build:\n commands:\n # Increase swap file size\n - fallocate -l 32G /swapfile\n - chmod 600 /swapfile\n - mkswap /swapfile || true\n - swapon /swapfile || true\n - pwd\n - GIT_TAG="$(git describe --tags --abbrev=0)"\n - GIT_HASH="$(git rev-parse --short=7 HEAD)"\n - echo "Building for commit - $GIT_HASH"\n\n # install buildx\n - wget -nv https://github.com/docker/buildx/releases/download/v0.12.0/buildx-v0.12.0.linux-amd64\n - chmod +x buildx-v0.12.0.linux-amd64\n - mkdir -p ~/.docker/cli-plugins\n - mv buildx-v0.12.0.linux-amd64 ~/.docker/cli-plugins/docker-buildx\n - docker buildx install\n\n # build openobserve\n - docker pull public.ecr.aws/zinclabs/rust:bookworm-sccache\n - docker build --build-arg AWS_DEFAULT_REGION=$AWS_DEFAULT_REGION --build-arg AWS_CONTAINER_CREDENTIALS_RELATIVE_URI=$AWS_CONTAINER_CREDENTIALS_RELATIVE_URI -t openobserve:tokio-console-amd64 -f deploy/build/Dockerfile.tokio-console.amd64 .\n - docker tag openobserve:tokio-console-amd64 public.ecr.aws/zinclabs/openobserve-dev:$GIT_TAG-$GIT_HASH-tokio-console-amd64\n - docker push public.ecr.aws/zinclabs/openobserve-dev:$GIT_TAG-$GIT_HASH-tokio-console-amd64\n\ncache:\n paths:\n - /root/.cache/\n
dataset_sample\yaml\openobserve_openobserve\deploy\build\buildspec-tokio-console.yml
buildspec-tokio-console.yml
YAML
1,448
0.8
0.028571
0.1
vue-tools
235
2025-01-04T06:48:31.870247
Apache-2.0
false
f9fba09df47b50ceed4ec2f1c6e516d0
version: 0.2\n\nphases:\n pre_build:\n commands:\n - aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/zinclabs\n - docker login --username openobserve --password $DOCKER_HUB_ACCESS_TOKEN\n\n build:\n commands:\n # Increase swap file size\n - fallocate -l 32G /swapfile\n - chmod 600 /swapfile\n - mkswap /swapfile || true\n - swapon /swapfile || true\n - pwd\n - GIT_TAG="$(git describe --tags --abbrev=0)"\n - GIT_HASH="$(git rev-parse --short=7 HEAD)"\n - echo "Building for commit - $GIT_HASH"\n\n # install buildx\n - wget -nv https://github.com/docker/buildx/releases/download/v0.12.0/buildx-v0.12.0.linux-amd64\n - chmod +x buildx-v0.12.0.linux-amd64\n - mkdir -p ~/.docker/cli-plugins\n - mv buildx-v0.12.0.linux-amd64 ~/.docker/cli-plugins/docker-buildx\n - docker buildx install\n\n # build for sccache image\n # - docker build -t public.ecr.aws/zinclabs/rust:bookworm-sccache-amd64 -f deploy/build/Dockerfile.sccache.amd64 .\n # - docker push public.ecr.aws/zinclabs/rust:bookworm-sccache-amd64\n\n # build openobserve\n - docker pull public.ecr.aws/zinclabs/rust:bookworm-sccache\n # - docker build -t openobserve:latest-amd64 -f deploy/build/Dockerfile.amd64 .\n - docker build --build-arg AWS_DEFAULT_REGION=$AWS_DEFAULT_REGION --build-arg AWS_CONTAINER_CREDENTIALS_RELATIVE_URI=$AWS_CONTAINER_CREDENTIALS_RELATIVE_URI -t openobserve:latest-amd64 -f deploy/build/Dockerfile.amd64 .\n - docker tag openobserve:latest-amd64 public.ecr.aws/zinclabs/openobserve-dev:$GIT_TAG-$GIT_HASH-amd64\n - docker tag openobserve:latest-amd64 public.ecr.aws/zinclabs/openobserve-dev:latest-amd64\n - docker push public.ecr.aws/zinclabs/openobserve-dev:$GIT_TAG-$GIT_HASH-amd64\n - docker push public.ecr.aws/zinclabs/openobserve-dev:latest-amd64\n\ncache:\n paths:\n - /root/.cache/\n
dataset_sample\yaml\openobserve_openobserve\deploy\build\buildspec.yml
buildspec.yml
YAML
1,956
0.8
0.046512
0.189189
react-lib
374
2025-04-28T03:12:10.662140
GPL-3.0
false
815410e587958aa55b4003862a4867db
# Copyright (c) The OpenTofu Authors\n# SPDX-License-Identifier: MPL-2.0\n# Copyright (c) 2023 HashiCorp, Inc.\n# SPDX-License-Identifier: MPL-2.0\n\nrun:\n timeout: 30m\n\nissues:\n exclude-files:\n # We have a few patterns that are excluded from linting completely because\n # they contain effectively-frozen code that we're preserving for backward\n # compatibility, where changes would be risky and that risk isn't warranted\n # since we don't expect to be doing any significant maintenence on these.\n - "^internal/ipaddr/"\n - "^internal/legacy/"\n - "^internal/states/statefile/version\\d+_upgrade\\.go$"\n
dataset_sample\yaml\opentofu_opentofu\.golangci.yml
.golangci.yml
YAML
619
0.8
0.058824
0.533333
react-lib
815
2023-10-13T22:51:33.720306
GPL-3.0
false
2d6eeb454b6003cdb7b70b71bf3358e5
# Copyright (c) The OpenTofu Authors\n# SPDX-License-Identifier: MPL-2.0\n# Copyright (c) 2023 HashiCorp, Inc.\n# SPDX-License-Identifier: MPL-2.0\n\ncomment:\n layout: "flags, files"\n behavior: default\n require_changes: true # only comment on changes in coverage\n require_base: yes # [yes :: must have a base report to post]\n require_head: yes # [yes :: must have a head report to post]\n branches: # branch names that can post comment\n - "main"\n\ncoverage:\n status:\n project:\n default:\n informational: true\n target: auto\n threshold: "0.5%"\n patch:\n default:\n informational: true\n target: auto\n threshold: "0.5%"\n\ngithub_checks:\n annotations: false\n
dataset_sample\yaml\opentofu_opentofu\codecov.yml
codecov.yml
YAML
741
0.95
0
0.153846
react-lib
886
2024-03-21T05:00:22.346138
BSD-3-Clause
false
99a8ab6d5134c1da7e4e04ebc51fbd2e
name: accept-pull-request\n\non:\n issue_comment:\n types:\n - created\n\nconcurrency: accept-pull-request-${{ github.event.issue.number }}\n\njobs:\n accept-pull-request:\n if: ${{ github.event.issue.pull_request && (github.event.comment.body == '/accept' || github.event.comment.body == '/accept --force' || github.event.comment.body == '/rebase') }}\n env:\n GITHUB_CONTEXT: ${{ toJson(github) }}\n GITHUB_TOKEN: ${{ secrets.HURL_BOT_TOKEN }}\n OWNER: ${{ github.repository_owner }}\n REPO: ${{ github.event.repository.name }}\n PR_NUMBER: ${{ github.event.issue.number }}\n COMMENT_USER_LOGIN: ${{ github.event.comment.user.login }}\n PR_COMMENT: ${{ github.event.comment.body }}\n outputs:\n base_ref: ${{ steps.init-all-internal-env-vars.outputs.base_ref }}\n new_version_master_snapshot_version: ${{ steps.check-github-release.outputs.new_version_master_snapshot_version }}\n is_a_github_release_pr: ${{ steps.check-github-release.outputs.is_a_github_release_pr }}\n name: accept-pull-request\n runs-on: ubuntu-latest\n steps:\n\n - name: Check user permission\n run: |\n comment_user_permission=$(gh api repos/"${OWNER}"/"${REPO}"/collaborators/"${COMMENT_USER_LOGIN}"/permission -q .permission)\n if [ "${comment_user_permission}" = "admin" ] ; then\n echo " - βœ… You have the ${comment_user_permission} permission then you are allowed to merge pull request nΒ°${PR_NUMBER}"\n else\n comment="❌ Sorry \`${COMMENT_USER_LOGIN}\`, you are not allowed to merge this pull request because you do not have admin permission (actual permission=${comment_user_permission})."\n echo " - ${comment}"\n gh pr comment "${PR_NUMBER}" --body "${comment}"\n exit 1\n fi\n\n - name: Init all internal env vars\n id: init-all-internal-env-vars\n env:\n TITLE: ${{ github.event.issue.title }}\n run: |\n pr_detail_file="pr_detail.json"\n gh api repos/"${OWNER}"/"${REPO}"/pulls/"${PR_NUMBER}" > "${pr_detail_file}"\n jq . "${pr_detail_file}"\n echo "github.event.issue.title: $TITLE"\n HEAD_REPO_FULL_NAME=$(jq -rc .head.repo.full_name ${pr_detail_file})\n BASE_REPO_FULL_NAME=$(jq -rc .base.repo.full_name ${pr_detail_file})\n if [ "${HEAD_REPO_FULL_NAME}" = "${BASE_REPO_FULL_NAME}" ] ; then\n HEAD_TYPE=origin\n else\n HEAD_TYPE=fork\n fi\n echo "HEAD_REPO_FULL_NAME=${HEAD_REPO_FULL_NAME}" | tee -a "${GITHUB_ENV}"\n echo "BASE_REPO_FULL_NAME=${BASE_REPO_FULL_NAME}" | tee -a "${GITHUB_ENV}"\n echo "HEAD_TYPE=${HEAD_TYPE}" | tee -a "${GITHUB_ENV}"\n echo "HEAD_REF=$(jq -rc .head.ref ${pr_detail_file})" | tee -a "${GITHUB_ENV}"\n echo "BASE_REF=$(jq -rc .base.ref ${pr_detail_file})" | tee -a "${GITHUB_ENV}"\n echo "PR_STATE=$(jq -rc .state ${pr_detail_file})" | tee -a "${GITHUB_ENV}"\n echo "PR_DRAFT=$(jq -rc .draft ${pr_detail_file})" | tee -a "${GITHUB_ENV}"\n echo "PR_MERGEABLE=$(jq -rc .mergeable ${pr_detail_file})" | tee -a "${GITHUB_ENV}"\n echo "REMAINING_COMMITS_FILE=remaining_commits.txt" | tee -a "${GITHUB_ENV}"\n echo "NEW_COMMITS_FILE=new_commits.txt" | tee -a "${GITHUB_ENV}"\n echo "base_ref=$(jq -rc .base.ref ${pr_detail_file})" | tee -a "${GITHUB_OUTPUT}"\n\n - name: Checkout repository\n uses: actions/checkout@v4.2.2\n with:\n persist-credentials: true\n ref: ${{ env.BASE_REF }}\n token: ${{ secrets.HURL_BOT_TOKEN }}\n fetch-depth: 0\n\n - name: Notify user\n run: |\n if [[ "${PR_COMMENT}" == "/accept" ]] ; then\n order="/accept"\n elif [[ "${PR_COMMENT}" == "/accept --force" ]] ; then\n order="/accept --force"\n elif [[ "${PR_COMMENT}" == "/rebase" ]] ; then\n order="/rebase"\n fi\n comment="πŸ•— [${order}](${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}) is running, please wait for completion."\n gh pr comment "${PR_NUMBER}" --body "${comment}"\n echo "ORDER=${order}" | tee -a "${GITHUB_ENV}"\n\n - name: Init git bot context\n uses: crazy-max/ghaction-import-gpg@v6.3.0\n with:\n gpg_private_key: ${{ secrets.HURL_BOT_GPG_PRIVATE_KEY }}\n passphrase: ${{ secrets.HURL_BOT_GPG_PRIVATE_KEY_PASSPHRASE }}\n git_committer_name: ${{ secrets.HURL_BOT_USER }}\n git_committer_email: ${{ secrets.HURL_BOT_EMAIL }}\n git_user_signingkey: true\n git_commit_gpgsign: true\n\n - name: Add fork source branch\n if: env.HEAD_TYPE == 'fork'\n run: |\n git remote add fork https://${{ secrets.HURL_BOT_USER }}:${{ secrets.HURL_BOT_TOKEN }}@github.com/${{ env.HEAD_REPO_FULL_NAME}}\n git remote --verbose\n git fetch --all\n git remote -v\n git fetch fork\n git branch -va\n\n - name: Check if PR source branch is not master\n if: env.HEAD_REF == 'master'\n run: |\n comment="❌ Can not ${{ env.ORDER }} this pull request because your working branch is master, please create a new branch as requested in [CONTRIBUTING.md](https://github.com/Orange-OpenSource/hurl/blob/master/CONTRIBUTING.md)."\n echo " - ${comment}"\n gh pr comment "${PR_NUMBER}" --body "${comment}"\n exit 1\n\n - name: Check if pull request state is open\n run: |\n if [ "${{ env.PR_STATE }}" = "open" ] ; then\n echo " - βœ… Pull request is ${{ env.PR_STATE }}."\n else\n comment="❌ Can not ${{ env.ORDER }} this pull request because it is not open (actual state=${{ env.PR_STATE }})."\n echo " - ${comment}"\n gh pr comment "${PR_NUMBER}" --body "${comment}"\n exit 1\n fi\n\n - name: Check if pull request is ready\n if: ${{ github.event.comment.body == '/accept' || github.event.comment.body == '/accept --force' }}\n run: |\n if [ "${{ env.PR_DRAFT }}" = "false" ] ; then\n echo " - βœ… Pull request draft state is ${{ env.PR_DRAFT }}."\n else\n comment="❌ Can not ${{ env.ORDER }} this pull request because it is still in draft."\n echo " - ${comment}"\n gh pr comment "${PR_NUMBER}" --body "${comment}"\n exit 1\n fi\n\n - name: Check if pull request is mergeable\n if: ${{ github.event.comment.body == '/accept' || github.event.comment.body == '/accept --force' }}\n run: |\n if [ "${{ env.PR_MERGEABLE }}" = "true" ] ; then\n echo " - βœ… Pull request mergeable state is ${{ env.PR_MERGEABLE }}."\n else\n comment="❌ Pull request is not mergeable, please check unresolved discussions and pull request messages."\n echo " - ${comment}"\n gh pr comment "${PR_NUMBER}" --body "${comment}"\n exit 1\n fi\n\n - name: Check GitHub release\n if: ${{ github.event.comment.body == '/accept' || github.event.comment.body == '/accept --force' }}\n id: check-github-release\n run: |\n if [ $(echo ${{ env.HEAD_REF }} | grep -Ec '^release/') -eq 0 ] ; then\n echo " - βœ… Pull request is not about a pending GitHub release."\n else\n echo "is_a_github_release_pr=true" | tee -a "${GITHUB_OUTPUT}"\n tag_version="$(echo ${{ env.HEAD_REF }} | cut --delimiter '/' --field 2)"\n major=$(echo "${tag_version}" | cut --delimiter "." --field 1)\n minor=$(echo "${tag_version}" | cut --delimiter "." --field 2)\n new_minor="$((minor + 1))"\n echo "major=${major}, minor=${minor}, new_minor=${new_minor}"\n new_version_master_snapshot_version="${major}.${new_minor}.0-SNAPSHOT"\n echo "new_version_master_snapshot_version=${new_version_master_snapshot_version}" | tee -a "${GITHUB_OUTPUT}"\n gh_result=$(gh api repos/"${OWNER}"/"${REPO}"/releases/tags/"${tag_version}" | tr ":" "=" | tr -d '"' | tr -d " ")\n echo "gh_result=${gh_result}"\n if [ $(echo "${gh_result}" | grep -Ec "message=NotFound|prerelease=true") -eq 0 ] ; then\n comment="βœ… GitHub release ${tag_version} is published."\n echo " - ${comment}"\n else\n comment="πŸ‘β€πŸ—¨ GitHub release ${tag_version} is still in draft/prerelease. Please don't forget to publish it after merging this release PR."\n echo " - ${comment}"\n gh pr comment "${PR_NUMBER}" --body "${comment}"\n fi\n fi\n\n - name: Check if source branch is rebased from target branch\n if: ${{ github.event.comment.body == '/accept' || github.event.comment.body == '/accept --force' || github.event.comment.body == '/rebase' }}\n run: |\n git log --oneline --cherry ${{ env.HEAD_TYPE }}/${{ env.HEAD_REF }}...origin/${{ env.BASE_REF }} > "${{ env.REMAINING_COMMITS_FILE }}" && exit_code=0 || exit_code=1\n if [ ${exit_code} -eq 1 ] ; then\n comment="❌ Rebase check fails. Please refer to ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID} logs."\n echo " - ${comment}"\n gh pr comment "${PR_NUMBER}" --body "${comment}"\n exit 1\n fi\n diff_count=$(grep -c ^+ ${{ env.REMAINING_COMMITS_FILE }} || true)\n if [ ${diff_count} -eq 0 ] ; then\n comment="πŸ‘Œ No needs to auto rebase, \`${{ env.HEAD_REPO_FULL_NAME}}/${{ env.HEAD_REF }}\` is already rebased from \`${{ env.BASE_REPO_FULL_NAME}}/${{ env.BASE_REF }}\`."\n echo "${comment}" \n if [ "${{ env.ORDER }}" == "/rebase" ] ; then\n gh pr comment "${PR_NUMBER}" --body "${comment}"\n fi\n else\n git fetch --all\n git switch ${{ env.HEAD_REF }}\n git pull\n git rebase origin/${{ env.BASE_REF }} && exit_code=0 || exit_code=1\n git log --oneline -n 20\n if [ ${exit_code} -eq 1 ] ; then\n comment="❌ Auto rebase from \`${{ env.BASE_REPO_FULL_NAME}}/${{ env.BASE_REF }}\` fails due to conflicts. Sorry but you have to manage this manually. Please refer to ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID} logs."\n echo " - ${comment}"\n gh pr comment "${PR_NUMBER}" --body "${comment}"\n exit 1\n fi\n if [ ${{ env.HEAD_TYPE }} == "fork" ] ; then\n git push fork ${{ env.HEAD_REF }} --force && exit_code=0 || exit_code=1\n else\n git push --force && exit_code=0 || exit_code=1\n fi\n if [ ${exit_code} -eq 0 ] ; then\n comment="πŸ”¨ Auto rebase from \`${{ env.BASE_REPO_FULL_NAME}}/${{ env.BASE_REF }}\` succeeds, \`${{ env.HEAD_REPO_FULL_NAME}}/${{ env.HEAD_REF }}\` now embeds these commits:<br>$(echo ; sed "s/+/ -/g" ${{ env.REMAINING_COMMITS_FILE }})"\n echo " - ${comment}"\n gh pr comment "${PR_NUMBER}" --body "${comment}"\n if [ "${{ env.ORDER }}" == "/accept" ] || [ "${{ env.ORDER }}" == "/accept --force" ] ; then\n comment="πŸ•— [${{ env.ORDER }}](${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}) is still running, please wait for completion."\n gh pr comment "${PR_NUMBER}" --body "${comment}"\n sleep 15\n fi\n else\n comment="❌ Auto rebase from \`${{ env.BASE_REPO_FULL_NAME}}/${{ env.BASE_REF }}\` fails on `git push --force`. Please refer to ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID} logs."\n echo " - ${comment}"\n gh pr comment "${PR_NUMBER}" --body "${comment}"\n fi\n git switch ${{ env.BASE_REF }}\n fi\n\n - name: Check if pull request checks are successful\n if: ${{ github.event.comment.body == '/accept' }}\n run: |\n gh pr checks "${PR_NUMBER}" --watch --interval 30 && exit_code=0 || exit_code=$?\n if [ "${exit_code}" -eq 0 ] ; then\n echo " - βœ… Pull request checks are successful."\n else\n comment="❌ Some checks are still failing, please fix them before trying to merge this pull request."\n echo " - ${comment}"\n gh pr comment "${PR_NUMBER}" --body "${comment}"\n exit 1\n fi\n\n - name: Check if source branch is rebased from target branch\n if: ${{ github.event.comment.body == '/accept' || github.event.comment.body == '/accept --force' }}\n run: |\n git pull\n git log --oneline --cherry ${{ env.HEAD_TYPE }}/${{ env.HEAD_REF }}...origin/${{ env.BASE_REF }} > "${{ env.REMAINING_COMMITS_FILE }}" && exit_code=0 || exit_code=1\n if [ ${exit_code} -eq 1 ] ; then\n comment="❌ Rebase check fails. Please refer to ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID} logs."\n echo " - ${comment}"\n gh pr comment "${PR_NUMBER}" --body "${comment}"\n exit 1\n fi\n diff_count=$(grep -c ^+ ${{ env.REMAINING_COMMITS_FILE }} || true)\n if [ ${diff_count} -eq 0 ] ; then\n echo " - βœ… ${{ env.HEAD_REPO_FULL_NAME}}/${{ env.HEAD_REF }} is already rebased from ${{ env.BASE_REPO_FULL_NAME}}/${{ env.BASE_REF }}."\n else\n comment="❌ New commits have been pushed to \`${{ env.BASE_REPO_FULL_NAME}}/${{ env.BASE_REF }}\` since you accept this PR. You can rebase it by yourself or simply re-accept this PR to execute an auto rebase.<br>Pending commits:<br>$(echo ; sed "s/+/-/g" ${{ env.REMAINING_COMMITS_FILE }})"\n echo " - ${comment}"\n gh pr comment "${PR_NUMBER}" --body "${comment}"\n exit 1\n fi\n\n - name: Get new commits list\n if: ${{ github.event.comment.body == '/accept' || github.event.comment.body == '/accept --force' }}\n run: |\n git log --oneline --cherry origin/${{ env.BASE_REF }}...${{ env.HEAD_TYPE }}/${{ env.HEAD_REF }} | tee ${{ env.NEW_COMMITS_FILE }}\n\n - name: Merge fast forward head ref to base ref\n if: ${{ github.event.comment.body == '/accept' || github.event.comment.body == '/accept --force' }}\n run: |\n git merge ${{ env.HEAD_TYPE }}/${{ env.HEAD_REF }} --ff-only && exit_code=0 || exit_code=1\n if [ ${exit_code} -eq 0 ] ; then\n echo " - βœ… Merge fast forward succeeds."\n else\n comment="❌ Merge fast forward fails. Please refer to ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID} logs."\n echo " - ${comment}"\n gh pr comment "${PR_NUMBER}" --body "${comment}"\n exit 1\n fi\n git push && exit_code=0 || exit_code=1\n if [ ${exit_code} -eq 0 ] ; then\n echo " - βœ… Push merge fast forward succeeds."\n else\n comment="❌ Push merge fast forward fails. Please refer to ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID} logs."\n echo " - ${comment}"\n gh pr comment "${PR_NUMBER}" --body "${comment}"\n exit 1\n fi\n - name: Final comment\n if: ${{ github.event.comment.body == '/accept' || github.event.comment.body == '/accept --force' }}\n run: |\n if [[ "${PR_COMMENT}" =~ "--force" ]] ; then\n comment="βœ… Pull request merged with fast forward by \`${COMMENT_USER_LOGIN}\` without waiting for checks."\n else\n comment="βœ… Pull request merged with fast forward by \`${COMMENT_USER_LOGIN}\`."\n fi\n gh pr comment "${PR_NUMBER}" --body "${comment}.<br><br>\# List of commits merged from \`${{ env.HEAD_REPO_FULL_NAME}}/${{ env.HEAD_REF }}\` branch into \`${{ env.BASE_REPO_FULL_NAME}}/${{ env.BASE_REF }}\` branch:<br>$(echo ; sed 's/+/-/g' ${{ env.NEW_COMMITS_FILE }})"\n
dataset_sample\yaml\Orange-OpenSource_hurl\.github\workflows\accept-pull-request.yml
accept-pull-request.yml
YAML
16,187
0.95
0.150502
0
awesome-app
708
2025-03-25T03:13:52.019980
Apache-2.0
false
4d55641de6a21d0429f36c58ee1a6ed2
name: auto-close-inactive-pr\n\non:\n schedule:\n - cron: "0 3 * * *"\n workflow_dispatch:\n\nconcurrency: auto-close-inactive-pr-${{ github.ref }}\n\njobs:\n auto-close-inactive-pr:\n env:\n GITHUB_CONTEXT: ${{ toJson(github) }}\n GITHUB_TOKEN: ${{ secrets.HURL_BOT_TOKEN }}\n REPO: ${{ github.repository }}\n name: auto-close-inactive-pr\n runs-on: ubuntu-latest\n steps:\n - name: Checkout repository\n uses: actions/checkout@v4.2.2\n with:\n persist-credentials: false\n - name: Auto close inactive PR\n run: .github/workflows/bin/auto-close-inactive-pr.sh --github-project-path "${REPO}" --github-token "${GITHUB_TOKEN}" --max-days-of-inactivity 15\n\n
dataset_sample\yaml\Orange-OpenSource_hurl\.github\workflows\auto-close-inactive-pr.yml
auto-close-inactive-pr.yml
YAML
705
0.7
0
0
python-kit
858
2024-03-21T17:31:58.838427
BSD-3-Clause
false
3c004aa1a7c094bcd8ee1cef09f2a6f2
name: check\non:\n pull_request:\n workflow_dispatch:\n workflow_call:\n inputs:\n branch:\n description: "ref branch for this workflow"\n default: "master"\n required: true\n type: string\n\nenv:\n CARGO_TERM_COLOR: always\n\npermissions: {}\n\njobs:\n\n checks:\n runs-on: ubuntu-24.04\n steps:\n\n - name: Checkout repository\n uses: actions/checkout@v4.2.2\n with:\n persist-credentials: false\n ref: ${{ inputs.branch }}\n\n - name: Shellcheck\n if: always()\n run: bin/check/shellcheck.sh\n\n - name: Check ad hoc\n if: always()\n run: bin/check/ad_hoc.sh\n\n - name: Git leaks\n if: always()\n uses: addnab/docker-run-action@v3\n with:\n image: ghcr.io/zricethezav/gitleaks:latest\n options: --volume ${{ github.workspace }}:/work:rw --workdir /work --privileged --env CARGO_TERM_COLOR=always\n run: gitleaks detect --verbose --config .github/workflows/config/gitleaks.toml\n\n - name: Hadolint\n if: always()\n run: bin/check/hadolint.sh ./contrib/docker/Dockerfile\n\n - name: Install Python 3.12\n uses: actions/setup-python@v5.5.0\n with:\n python-version: '3.12'\n\n - name: Install prerequisites\n if: always()\n run: |\n bin/activate_python3_venv.sh\n export PATH="/tmp/hurl-python3-venv/bin:$PATH"\n echo "PATH=$PATH" >> $GITHUB_ENV\n which python3\n python3 --version\n pip --version\n bin/check/install_prerequisites.sh\n\n - name: Zizmor\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n if: always()\n run: |\n pip install zizmor\n bin/check/zizmor.sh --github-token ${GITHUB_TOKEN} .github/workflows/*.yml\n\n - name: Check Rust version\n if: always()\n run: |\n python3 -m pip install requests --quiet\n bin/check/rust_version.py 7\n\n - name: Generated\n if: always()\n run: bin/check/generated.sh\n\n - name: Rustfmt\n if: always()\n run: bin/check/rustfmt.sh\n\n - name: Clippy\n if: always()\n run: bin/check/clippy.sh\n\n - name: Ruff\n if: always()\n run: bin/check/ruff.sh\n\n - name: Check XML/HTML files\n if: always()\n run: bin/check/xmllint.sh\n\n - name: Hurlfmt\n if: always()\n run: |\n bin/release/release.sh\n export PATH=target/release:$PATH\n bin/check/hurlfmt.sh\n\n - name: Check crates licence\n if: always()\n run: python3 bin/check/license.py\n\n - name: Check hurl crate API changes\n if: always()\n run: bin/check/compatibility.sh\n\n - name: Check doc generation\n if: always()\n run: bin/check/doc.sh\n\n - name: Check Valgrind\n if: always()\n run: |\n sudo apt-get install -y valgrind\n cargo install cargo-valgrind\n bin/check/valgrind.sh\n\n - name: Check completion files\n if: always()\n run: |\n sudo apt-get install -y zsh fish powershell\n bin/check/completion.sh\n
dataset_sample\yaml\Orange-OpenSource_hurl\.github\workflows\check.yml
check.yml
YAML
2,995
0.95
0.146154
0
python-kit
852
2024-03-10T03:47:53.877060
MIT
false
ab998c00f7b72cfc251b75f9301bad53
name: coverage\n\non:\n push:\n branches:\n - master\n workflow_dispatch:\n\nenv:\n RUSTFLAGS: "-C instrument-coverage"\n\njobs:\n coverage:\n runs-on: ubuntu-latest\n strategy:\n matrix:\n rust: [stable]\n steps:\n - name: Checkout repository\n uses: actions/checkout@v4.2.2\n with:\n persist-credentials: false\n\n - name: Install Prerequisites\n run: bin/install_prerequisites_ubuntu.sh\n\n - name: Install Python 3.11\n uses: actions/setup-python@v5.5.0\n with:\n python-version: '3.11'\n\n - name: Tests prerequisites\n run: bin/test/test_prerequisites.sh\n\n - name: Install Rust\n run: bin/install_rust.sh\n\n - name: Install Grcov\n run: bin/install_grcov.sh\n\n - name: Environment\n run: bin/environment.sh\n\n - name: Build\n run: cargo build\n\n - name: Run Coverage\n run: bin/coverage_run.sh\n\n - name: Init git bot context\n uses: crazy-max/ghaction-import-gpg@v6.3.0\n with:\n gpg_private_key: ${{ secrets.HURL_BOT_GPG_PRIVATE_KEY }}\n passphrase: ${{ secrets.HURL_BOT_GPG_PRIVATE_KEY_PASSPHRASE }}\n git_committer_name: "hurl-bot"\n git_committer_email: "bot@hurl.dev"\n git_user_signingkey: true\n git_commit_gpgsign: true\n\n - name: Deploy GitHub Pages\n uses: peaceiris/actions-gh-pages@v4.0.0\n with:\n personal_token: ${{ secrets.HURL_BOT_TOKEN }}\n user_name: 'hurl-bot'\n user_email: 'bot@hurl.dev'\n publish_branch: github-pages\n publish_dir: target/coverage\n destination_dir: coverage\n\n - name: Archive Artifacts\n uses: actions/upload-artifact@v4.6.2\n if: ${{ always() }}\n with:\n name: coverage\n path: |\n target/coverage\n *.profraw\n
dataset_sample\yaml\Orange-OpenSource_hurl\.github\workflows\coverage.yml
coverage.yml
YAML
1,784
0.85
0.012987
0.015873
awesome-app
552
2025-01-19T15:02:54.891463
Apache-2.0
false
83e4b2acba5501c206241a741b01c263
name: extra-package\n\non:\n workflow_dispatch:\n inputs:\n set-release-version:\n description: 'Desired release version (x.y.z)'\n required: true\n type: string\n push-to-chocolatey:\n description: 'Push to chocolatey'\n type: boolean\n default: false\n push-to-winget:\n description: 'Push to winget'\n type: boolean\n default: false\n\nconcurrency: extra-package\n\njobs:\n check-release:\n env:\n GH_TOKEN: ${{ github.token }}\n RELEASE_VERSION: ${{ github.event.inputs.set-release-version }}\n name: Check-release\n runs-on: ubuntu-latest\n steps:\n - name: Checkout repository\n uses: actions/checkout@v4.2.2\n with:\n persist-credentials: true\n fetch-depth: 1\n ref: ${{ github.event.inputs.set-release-version }}\n - name: Check if branch is a published release\n run: |\n if gh release list --exclude-drafts --exclude-pre-releases | grep -E "^${RELEASE_VERSION}" ; then\n echo "βœ… Desired release ${RELEASE_VERSION} is a published release"\n else\n echo "❌ You have to run this workflow for a published release (excluding draft and pre-release), but the desired one [${RELEASE_VERSION}] is not."\n exit 1\n fi\n\n push-to-chocolatey:\n if: github.event.inputs.push-to-chocolatey == 'true'\n needs: check-release\n env:\n RELEASE_VERSION: ${{ github.event.inputs.set-release-version }}\n CHOCOLATEY_TOKEN: ${{ secrets.LEPAPAREIL_CHOCOLATEY_TOKEN }}\n name: Push to chocolatey\n runs-on: windows-latest\n steps:\n - name: Checkout repository\n uses: actions/checkout@v4.2.2\n with:\n persist-credentials: false\n fetch-depth: 1\n ref: ${{ github.event.inputs.set-release-version }}\n - name: Push to chocolatey\n run: .\bin\release\push_package_to_chocolatey.ps1 $env:RELEASE_VERSION $env:CHOCOLATEY_TOKEN\n\n push-to-winget:\n if: github.event.inputs.push-to-winget == 'true'\n needs: check-release\n env:\n RELEASE_VERSION: ${{ github.event.inputs.set-release-version }}\n WINGET_TOKEN: ${{ secrets.LEPAPAREIL_WINGET_TOKEN }}\n name: Push to winget\n runs-on: windows-latest\n steps:\n - name: Checkout repository\n uses: actions/checkout@v4.2.2\n with:\n persist-credentials: true \n fetch-depth: 1\n ref: ${{ github.event.inputs.set-release-version }}\n - name: Push to winget\n run: |\n Invoke-WebRequest https://aka.ms/wingetcreate/latest -OutFile .\wingetcreate.exe\n .\wingetcreate.exe version\n .\bin\release\push_package_to_winget.ps1 "$env:RELEASE_VERSION" "$env:LEPAPAREIL_WINGET_TOKEN"\n
dataset_sample\yaml\Orange-OpenSource_hurl\.github\workflows\extra-package.yml
extra-package.yml
YAML
2,760
0.95
0.061728
0
awesome-app
341
2024-01-01T06:06:37.812275
BSD-3-Clause
false
87df95f0248f00638403cdeffc4d6048
name: package\n\non:\n pull_request:\n workflow_dispatch:\n workflow_call:\n inputs:\n branch:\n description: "ref branch for this workflow"\n default: "master"\n required: true\n type: string\n\nenv:\n CARGO_TERM_COLOR: always\n\npermissions: {}\n\njobs:\n package-generic-linux-x64:\n runs-on: ubuntu-22.04\n steps:\n - name: Checkout repository\n uses: actions/checkout@v4.2.2\n with:\n persist-credentials: false\n ref: ${{ inputs.branch }}\n - name: Install prerequisites\n run: bin/install_prerequisites_ubuntu.sh\n - name: Install Python 3.11\n uses: actions/setup-python@v5.5.0\n with:\n python-version: '3.11'\n - name: Activate python3 venv\n run: |\n bin/activate_python3_venv.sh\n export PATH="/tmp/hurl-python3-venv/bin:$PATH"\n echo "PATH=$PATH" >> $GITHUB_ENV\n which python3\n python3 --version\n pip --version\n - name : Environment\n run: bin/environment.sh\n - name: Install rust\n run: bin/install_rust.sh\n - name: Build\n run: |\n bin/release/release.sh\n echo "PATH=:${PWD}/target/release:$PATH" >> "${GITHUB_ENV}"\n - name: Get version\n run: |\n VERSION=$(bin/release/get_version.sh)\n echo "VERSION=${VERSION}" | tee -a "${GITHUB_ENV}"\n - name: Create generic linux package\n run: |\n bin/release/man.sh\n bin/release/create_tarball.sh\n - name: Archive production artifacts\n uses: actions/upload-artifact@v4.6.2\n with:\n name: release-generic-linux-x64-artifacts\n path: target/upload/*\n\n test-generic-linux-on-docker-ubuntu-x64:\n needs: package-generic-linux-x64\n runs-on: ubuntu-latest\n steps:\n - name: Checkout repository\n uses: actions/checkout@v4.2.2\n with:\n persist-credentials: false\n ref: ${{ inputs.branch }}\n - name: Retrieve release-generic-linux-x64-artifacts\n uses: actions/download-artifact@v4.2.1\n with:\n name: release-generic-linux-x64-artifacts\n path: target/upload\n - name: Install package and tests integ\n uses: addnab/docker-run-action@v3\n with:\n image: ubuntu:22.04\n options: --volume ${{ github.workspace }}:/work --workdir /work --privileged\n run: |\n set -e\n echo "::group::Install Prerequisites"\n bin/install_prerequisites_ubuntu.sh\n echo "::endgroup::"\n echo "::group::Install python 3.11"\n bin/install_pythonx_for_ubuntu.sh 11\n bin/activate_python3_venv.sh\n export PATH=/tmp/hurl-python3-venv/bin:$PATH\n echo "::endgroup::"\n echo "::group::Install Rust"\n bin/install_rust.sh\n . "$HOME/.cargo/env"\n echo "::endgroup::"\n echo "::group::Environment"\n bin/environment.sh\n echo "::endgroup::"\n echo "::group::Install generic linux package"\n bin/release/install_generic_linux_package.sh\n export PATH="/tmp/hurl-generic-linux/bin:$PATH"\n echo "::endgroup::"\n echo "::group::Install tests integ prerequisistes"\n bin/test/test_prerequisites.sh\n echo "::endgroup::"\n echo "::group::Tests"\n bin/test/test_integ.sh\n echo "::endgroup::"\n - name: Archive production artifacts\n uses: actions/upload-artifact@v4.6.2\n if: ${{ always() }}\n with:\n name: test-generic-linux-package-docker-ubuntu-x64-artifacts\n path: |\n ./**/*.log\n\n test-generic-linux-on-docker-debian-x64:\n needs: package-generic-linux-x64\n runs-on: ubuntu-latest\n steps:\n - name: Checkout repository\n uses: actions/checkout@v4.2.2\n with:\n persist-credentials: false\n ref: ${{ inputs.branch }}\n - name: Retrieve release-generic-linux-x64-artifacts\n uses: actions/download-artifact@v4.2.1\n with:\n name: release-generic-linux-x64-artifacts\n path: target/upload\n - name: Install package and tests integ\n uses: addnab/docker-run-action@v3\n with:\n image: debian\n options: --volume ${{ github.workspace }}:/work --workdir /work --privileged\n run: |\n set -e\n echo "::group::Install system prerequisites"\n bin/install_prerequisites_debian.sh\n echo "::endgroup::"\n echo "::group::Activate python3 venv"\n bin/activate_python3_venv.sh\n export PATH=/tmp/hurl-python3-venv/bin:$PATH\n which python3\n python3 --version\n pip --version\n echo "::endgroup::"\n echo "::group::Environment"\n bin/environment.sh\n echo "::endgroup::"\n echo "::group::Install generic linux package"\n bin/release/install_generic_linux_package.sh\n export PATH="/tmp/hurl-generic-linux/bin:$PATH"\n echo "::endgroup::"\n echo "::group::Install tests prerequisites"\n bin/test/test_prerequisites.sh\n echo "::endgroup::"\n echo "::group::Tests"\n bin/test/test_integ.sh\n echo "::endgroup::"\n - name: Archive production artifacts\n uses: actions/upload-artifact@v4.6.2\n if: ${{ always() }}\n with:\n name: test-generic-linux-package-docker-debian-x64-artifacts\n path: |\n ./**/*.log\n\n test-generic-linux-on-docker-archlinux-x64:\n needs: package-generic-linux-x64\n runs-on: ubuntu-latest\n steps:\n - name: Checkout repository\n uses: actions/checkout@v4.2.2\n with:\n persist-credentials: false\n ref: ${{ inputs.branch }}\n - name: Retrieve release-generic-linux-x64-artifacts\n uses: actions/download-artifact@v4.2.1\n with:\n name: release-generic-linux-x64-artifacts\n path: target/upload\n - name: Install package and tests integ\n uses: addnab/docker-run-action@v3\n with:\n image: archlinux\n options: --volume ${{ github.workspace }}:/work --workdir /work --privileged\n run: |\n set -e\n echo "::group::Install system prerequisites"\n bin/install_prerequisites_archlinux.sh\n echo "::endgroup::"\n echo "::group::Activate python3 venv"\n bin/activate_python3_venv.sh\n export PATH=/tmp/hurl-python3-venv/bin:$PATH\n which python3\n python3 --version\n pip --version\n echo "::endgroup::"\n echo "::group::Environment"\n bin/environment.sh\n echo "::endgroup::"\n echo "::group::Install generic linux package"\n bin/release/install_generic_linux_package.sh\n export PATH="/tmp/hurl-generic-linux/bin:$PATH"\n echo "::endgroup::"\n echo "::group::Install tests prerequisites"\n bin/test/test_prerequisites.sh\n echo "::endgroup::"\n echo "::group::Tests"\n bin/test/test_integ.sh\n echo "::endgroup::"\n - name: Archive production artifacts\n uses: actions/upload-artifact@v4.6.2\n if: ${{ always() }}\n with:\n name: test-generic-linux-package-docker-archlinux-x64-artifacts\n path: |\n ./**/*.log\n\n test-generic-linux-on-docker-fedora-x64:\n needs: package-generic-linux-x64\n runs-on: ubuntu-latest\n steps:\n - name: Checkout repository\n uses: actions/checkout@v4.2.2\n with:\n persist-credentials: false\n ref: ${{ inputs.branch }}\n - name: Retrieve release-generic-linux-x64-artifacts\n uses: actions/download-artifact@v4.2.1\n with:\n name: release-generic-linux-x64-artifacts\n path: target/upload\n - name: Install package and tests integ\n uses: addnab/docker-run-action@v3\n with:\n image: fedora\n options: --volume ${{ github.workspace }}:/work --workdir /work --privileged\n run: |\n set -e\n echo "::group::Disable PAM for sudo with root and no tty"\n bin/disable_pam_for_sudo.sh\n echo "::endgroup::"\n echo "::group::Install system prerequisites"\n bin/install_prerequisites_fedora.sh\n echo "::endgroup::"\n echo "::group::Activate python3 venv"\n bin/activate_python3_venv.sh\n export PATH=/tmp/hurl-python3-venv/bin:$PATH\n which python3\n python3 --version\n pip --version\n echo "::endgroup::"\n echo "::group::Environment"\n bin/environment.sh\n echo "::endgroup::"\n echo "::group::Install generic linux package"\n bin/release/install_generic_linux_package.sh\n export PATH="/tmp/hurl-generic-linux/bin:$PATH"\n echo "::group::Install tests prerequisites"\n echo "::endgroup::"\n bin/test/test_prerequisites.sh\n echo "::endgroup::"\n echo "::group::Tests"\n bin/test/test_integ.sh\n echo "::endgroup::"\n - name: Archive production artifacts\n uses: actions/upload-artifact@v4.6.2\n if: ${{ always() }}\n with:\n name: test-generic-linux-package-docker-fedora-x64-artifacts\n path: |\n ./**/*.log\n\n test-dockerfile-x64:\n runs-on: ubuntu-latest\n steps:\n - name: Checkout repository\n uses: actions/checkout@v4.2.2\n with:\n persist-credentials: false\n ref: ${{ inputs.branch }}\n - name: Set up Docker Buildx\n uses: docker/setup-buildx-action@v3.10.0\n - name: Build docker images\n run: |\n echo "::group::Docker build prerequisites"\n sudo docker buildx create --name mybuilder\n sudo docker buildx use mybuilder\n sudo docker buildx inspect --bootstrap\n sudo docker buildx ls\n echo "::endgroup::"\n echo "::group::Build docker hurl"\n docker_build_date=$(date "+%Y-%m-%d %H-%M-%S")\n docker_build_tag=$(grep ^version packages/hurl/Cargo.toml | cut --delimiter '=' --field 2 | tr -d '" ')\n sudo docker buildx build \\n --progress=plain \\n --file contrib/docker/Dockerfile \\n --platform linux/amd64 \\n --build-arg docker_build_date="${docker_build_date}" \\n --build-arg docker_build_tag="${docker_build_tag}" \\n --tag local/hurl:amd64 \\n --load .\n sudo docker inspect local/hurl:amd64\n sudo docker run --rm local/hurl:amd64 --version\n echo "::endgroup::"\n - name: Integration tests\n uses: addnab/docker-run-action@v3\n with:\n image: local/hurl:amd64\n options: --volume ${{ github.workspace }}:/work --workdir /work --privileged --env CARGO_TERM_COLOR=always --entrypoint sh --platform=linux/amd64\n run: |\n echo "::group::Install system prerequisites"\n set -e\n cat /etc/os-release\n apk add sudo bash curl python3 py3-pip\n echo "::endgroup::"\n echo "::group::Install alpine prerequisites"\n bash bin/install_prerequisites_alpine.sh\n echo "::endgroup::"\n echo "::group::Install tests prerequisites"\n bash bin/activate_python3_venv.sh\n export PATH=/tmp/hurl-python3-venv/bin:$PATH\n which python3\n python3 --version\n pip --version\n bash bin/test/test_prerequisites.sh\n echo "::endgroup::"\n echo "::group::Environment"\n bash bin/environment.sh\n echo "::endgroup::"\n echo "::group::Integration tests"\n bash bin/test/test_integ.sh\n echo "::endgroup::"\n - name: find artifacts\n run: |\n pwd\n find . -name "*.log"\n - name: Archive production artifacts\n uses: actions/upload-artifact@v4.6.2\n if: ${{ always() }}\n with:\n name: test-docker-amd64-package-artifacts\n path: |\n ./**/*.log\n\n package-generic-linux-aarch64:\n runs-on: ubuntu-22.04-arm\n steps:\n - name: Checkout repository\n uses: actions/checkout@v4.2.2\n with:\n persist-credentials: false\n ref: ${{ inputs.branch }}\n - name: Install prerequisites\n run: bin/install_prerequisites_ubuntu.sh\n - name: Install Python 3.11\n uses: actions/setup-python@v5.5.0\n with:\n python-version: '3.11'\n - name: Activate python3 venv\n run: |\n bin/activate_python3_venv.sh\n export PATH="/tmp/hurl-python3-venv/bin:$PATH"\n echo "PATH=$PATH" >> $GITHUB_ENV\n which python3\n python3 --version\n pip --version\n - name : Environment\n run: bin/environment.sh\n - name: Install rust\n run: bin/install_rust.sh\n - name: Build\n run: |\n bin/release/release.sh\n echo "PATH=:${PWD}/target/release:$PATH" >> "${GITHUB_ENV}"\n - name: Get version\n run: |\n VERSION=$(bin/release/get_version.sh)\n echo "VERSION=${VERSION}" | tee -a "${GITHUB_ENV}"\n - name: Create generic linux package\n run: |\n bin/release/man.sh\n bin/release/create_tarball.sh\n - name: Install generic linux package\n run: |\n bin/release/install_generic_linux_package.sh\n export PATH="/tmp/hurl-generic-linux/bin:$PATH"\n - name: Test integ\n run: |\n bin/test/test_prerequisites.sh\n bin/test/test_integ.sh\n - name: Archive production artifacts\n uses: actions/upload-artifact@v4.6.2\n with:\n name: release-generic-linux-aarch64-artifacts\n path: target/upload/*\n\n package-deb-x64:\n runs-on: ubuntu-22.04\n steps:\n - name: Checkout repository\n uses: actions/checkout@v4.2.2\n with:\n persist-credentials: false\n ref: ${{ inputs.branch }}\n - name: Install Prerequisites\n run: bin/install_prerequisites_ubuntu.sh\n - name: Install Python 3.11\n uses: actions/setup-python@v5.5.0\n with:\n python-version: '3.11'\n - name: Activate python3 venv\n run: |\n bin/activate_python3_venv.sh\n export PATH="/tmp/hurl-python3-venv/bin:$PATH"\n echo "PATH=$PATH" >> $GITHUB_ENV\n which python3\n python3 --version\n pip --version\n - name: Install Rust\n run: bin/install_rust.sh\n - name: Environment\n run: bin/environment.sh\n - name: Build\n run: |\n bin/release/release.sh\n echo "PATH=:${PWD}/target/release:$PATH" >> "${GITHUB_ENV}"\n - name: Get version\n run: |\n VERSION=$(bin/release/get_version.sh)\n echo "VERSION=${VERSION}" | tee -a "${GITHUB_ENV}"\n - name: Create deb package\n run: |\n bin/release/man.sh\n bin/release/create_deb_package.sh\n - name: Install package\n run: |\n bin/release/install_deb_package.sh\n echo "PATH=/tmp/hurl-deb-package/usr/bin:$PATH" >> "${GITHUB_ENV}"\n - name: Test integ\n run: |\n bin/test/test_prerequisites.sh\n bin/test/test_integ.sh\n - name: Archive production artifacts\n uses: actions/upload-artifact@v4.6.2\n with:\n name: release-deb-x64-artifacts\n path: target/upload/*\n\n package-deb-aarch64:\n runs-on: ubuntu-22.04-arm\n steps:\n - name: Checkout repository\n uses: actions/checkout@v4.2.2\n with:\n persist-credentials: false\n ref: ${{ inputs.branch }}\n - name: Install Prerequisites\n run: bin/install_prerequisites_ubuntu.sh\n - name: Install Python 3.11\n uses: actions/setup-python@v5.5.0\n with:\n python-version: '3.11'\n - name: Activate python3 venv\n run: |\n bin/activate_python3_venv.sh\n export PATH="/tmp/hurl-python3-venv/bin:$PATH"\n echo "PATH=$PATH" >> $GITHUB_ENV\n which python3\n python3 --version\n pip --version\n - name: Install Rust\n run: bin/install_rust.sh\n - name: Environment\n run: bin/environment.sh\n - name: Build\n run: |\n bin/release/release.sh\n echo "PATH=:${PWD}/target/release:$PATH" >> "${GITHUB_ENV}"\n - name: Get version\n run: |\n VERSION=$(bin/release/get_version.sh)\n echo "VERSION=${VERSION}" | tee -a "${GITHUB_ENV}"\n - name: Create deb package\n run: |\n bin/release/man.sh\n bin/release/create_deb_package.sh\n - name: Install package\n run: |\n bin/release/install_deb_package.sh\n echo "PATH=/tmp/hurl-deb-package/usr/bin:$PATH" >> "${GITHUB_ENV}"\n - name: Test integ\n run: |\n bin/test/test_prerequisites.sh\n bin/test/test_integ.sh\n - name: Archive production artifacts\n uses: actions/upload-artifact@v4.6.2\n with:\n name: release-deb-aarch64-artifacts\n path: target/upload/*\n\n package-macos-x64:\n runs-on: macos-13\n steps:\n - name: Checkout repository\n uses: actions/checkout@v4.2.2\n with:\n persist-credentials: false\n ref: ${{ inputs.branch }}\n - name: Install Prerequisites\n run: |\n bin/install_prerequisites_macos.sh\n echo "PATH=$PATH" >> $GITHUB_ENV\n - name: Activate python3 venv\n run: |\n bin/activate_python3_venv.sh\n export PATH="/tmp/hurl-python3-venv/bin:$PATH"\n echo "PATH=$PATH" >> $GITHUB_ENV\n which python3\n python3 --version\n pip --version\n - name: Install Rust\n run: bin/install_rust.sh\n - name: Environment\n run: bin/environment.sh\n - name: Build\n run: |\n bin/release/release.sh\n echo "PATH=${PWD}/target/release:$PATH" >> "${GITHUB_ENV}"\n - name: Get version\n run: |\n VERSION=$(bin/release/get_version.sh)\n echo "VERSION=${VERSION}" | tee -a "${GITHUB_ENV}"\n - name: Create generic macos package\n run: |\n bin/release/man.sh\n bin/release/create_tarball.sh\n - name: Install package\n run: |\n bin/release/install_generic_macos_package.sh\n echo "PATH=/tmp/hurl-generic-macos/bin:$PATH" >> "${GITHUB_ENV}"\n - name: Test integ\n run: |\n bin/test/test_prerequisites.sh\n bin/test/test_integ.sh\n - name: Archive production artifacts\n uses: actions/upload-artifact@v4.6.2\n with:\n name: release-macos-x64-artifacts\n path: target/upload/*\n\n package-macos-aarch64:\n runs-on: macos-14\n steps:\n - name: Checkout repository\n uses: actions/checkout@v4.2.2\n with:\n persist-credentials: false\n ref: ${{ inputs.branch }}\n - name: Install Prerequisites\n run: |\n bin/install_prerequisites_macos.sh\n echo "PATH=$PATH" >> $GITHUB_ENV\n - name: Activate python3 venv\n run: |\n bin/activate_python3_venv.sh\n export PATH="/tmp/hurl-python3-venv/bin:$PATH"\n echo "PATH=$PATH" >> $GITHUB_ENV\n which python3\n python3 --version\n pip --version\n - name: Install Rust\n run: bin/install_rust.sh\n - name: Environment\n run: bin/environment.sh\n - name: Build\n run: |\n bin/release/release.sh\n echo "PATH=${PWD}/target/release:$PATH" >> "${GITHUB_ENV}"\n - name: Get version\n run: |\n VERSION=$(bin/release/get_version.sh)\n echo "VERSION=${VERSION}" | tee -a "${GITHUB_ENV}"\n - name: Create generic macos package\n run: |\n bin/release/man.sh\n bin/release/create_tarball.sh\n - name: Install package\n run: |\n bin/release/install_generic_macos_package.sh\n echo "PATH=/tmp/hurl-generic-macos/bin:$PATH" >> "${GITHUB_ENV}"\n - name: Test integ\n run: |\n bin/test/test_prerequisites.sh\n bin/test/test_integ.sh\n - name: Archive production artifacts\n uses: actions/upload-artifact@v4.6.2\n with:\n name: release-macos-aarch64-artifacts\n path: target/upload/*\n\n package-windows-x64:\n runs-on: windows-latest\n env:\n VCPKGRS_DYNAMIC: 1\n steps:\n - name: Set git to use LF\n run: |\n git config --global core.autocrlf false\n git config --global core.eol lf\n - name: Checkout repository\n uses: actions/checkout@v4.2.2\n with:\n persist-credentials: false\n ref: ${{ inputs.branch }}\n - name: Install Rust\n run: |\n .\bin\install_rust.ps1\n - name: Manage vcpkg cache\n uses: actions/cache@v4.2.3\n with:\n path: C:\vcpkg\n key: ${{ runner.os }}-release-windows-x64\n - name: Install prerequisites\n run: .\bin\install_prerequisites_windows.ps1\n - name: Install Python 3.11\n uses: actions/setup-python@v5.5.0\n with:\n python-version: '3.11'\n - name: Environment\n run: |\n .\bin\activate_python3_venv.ps1\n .\bin\environment.ps1\n - name: Build\n run: .\bin\release\release.ps1\n - name: Create windows64 Zip package\n run: .\bin\release\create_windows64_zip_package.ps1\n - name: Install win64 zip and test integ\n run: |\n .\bin\release\install_windows64_zip_package.ps1\n .\bin\activate_python3_venv.ps1\n .\bin\test\test_prerequisites.ps1\n .\bin\test\test_integ.ps1\n - name: Create windows64 installer\n run: .\bin\release\create_windows64_installer.ps1\n - name: Install win64 installer and test integ\n run: |\n .\bin\release\install_windows64_installer.ps1\n .\bin\activate_python3_venv.ps1\n .\bin\test\test_prerequisites.ps1\n .\bin\test\test_integ.ps1\n - name: Archive production artifacts\n uses: actions/upload-artifact@v4.6.2\n with:\n name: release-windows-x64-artifacts\n path: |\n .\target\win-package\hurl-*-installer.exe\n .\target\win-package\hurl-*.zip\n\n package-anatomy:\n needs:\n - package-generic-linux-x64\n - package-generic-linux-aarch64\n - package-deb-x64\n - package-deb-aarch64\n - package-macos-x64\n - package-macos-aarch64\n - package-windows-x64\n name: package-anatomy\n runs-on: ubuntu-latest\n steps:\n - name: Checkout repository\n uses: actions/checkout@v4.2.2\n with:\n persist-credentials: false\n ref: ${{ inputs.branch }}\n - uses: actions/download-artifact@v4.2.1\n with:\n path: artifacts\n - name: Prerequisites\n if: ${{ always() }}\n run: sudo apt-get install -y -qq --silent icdiff >/dev/null\n - name: Package generic linux x64 anatomy\n if: ${{ always() }}\n run: bin/release/package-anatomy.sh artifacts/release-generic-linux-x64-artifacts/hurl-*-x86_64-unknown-linux-gnu.tar.gz --compare-with-dir docs/spec/packages\n - name: Package generic linux aarch64 anatomy\n if: ${{ always() }}\n run: bin/release/package-anatomy.sh artifacts/release-generic-linux-aarch64-artifacts/hurl-*-aarch64-unknown-linux-gnu.tar.gz --compare-with-dir docs/spec/packages\n - name: Package deb x64 anatomy\n if: ${{ always() }}\n run: bin/release/package-anatomy.sh artifacts/release-deb-x64-artifacts/hurl_*_amd64.deb --compare-with-dir docs/spec/packages\n - name: Package deb aarch64 anatomy\n if: ${{ always() }}\n run: bin/release/package-anatomy.sh artifacts/release-deb-aarch64-artifacts/hurl_*_arm64.deb --compare-with-dir docs/spec/packages\n - name: Package macos x64 anatomy\n if: ${{ always() }}\n run: bin/release/package-anatomy.sh artifacts/release-macos-x64-artifacts/hurl-*-x86_64-apple-darwin.tar.gz --compare-with-dir docs/spec/packages\n - name: Package macos aarch64 anatomy\n if: ${{ always() }}\n run: bin/release/package-anatomy.sh artifacts/release-macos-aarch64-artifacts/hurl-*-aarch64-apple-darwin.tar.gz --compare-with-dir docs/spec/packages\n - name: Package windows x64 installer anatomy\n if: ${{ always() }}\n run: bin/release/package-anatomy.sh artifacts/release-windows-x64-artifacts/hurl-*-x86_64-pc-windows-msvc-installer.exe --compare-with-dir docs/spec/packages\n - name: Package windows x64 zip anatomy\n if: ${{ always() }}\n run: bin/release/package-anatomy.sh artifacts/release-windows-x64-artifacts/hurl-*-x86_64-pc-windows-msvc.zip --compare-with-dir docs/spec/packages\n
dataset_sample\yaml\Orange-OpenSource_hurl\.github\workflows\package.yml
package.yml
YAML
24,131
0.95
0.022567
0
python-kit
0
2023-07-25T18:31:50.582706
GPL-3.0
false
3ac95eb42559fa833cb5e07786ab4129
name: release\n\non:\n workflow_dispatch:\n inputs:\n set-release-version:\n description: 'Desired delivery version (x.y.z)'\n required: true\n type: string\n\nconcurrency: release\n\njobs:\n set-context:\n env:\n GITHUB_BRANCH_NAME: ${{ github.ref_name }}\n GITHUB_CONTEXT: ${{ toJson(github) }}\n GITHUB_TOKEN: ${{ secrets.HURL_BOT_TOKEN }}\n SET_RELEASE_VERSION: ${{ github.event.inputs.set-release-version }}\n outputs:\n release_version: ${{ steps.set-release-version.outputs.release_version }}\n release_branch: ${{ steps.set-release-branch.outputs.release_branch }}\n name: set-context\n runs-on: ubuntu-latest\n steps:\n - name: Check trigger branch\n run: |\n if [ $(echo "${GITHUB_BRANCH_NAME}" | grep -Ec "^master$|^release/") -eq 1 ] ; then\n echo " - βœ… The branch triggering this workflow is ${GITHUB_BRANCH_NAME}."\n else\n echo " - ❌ The branch triggering this workflow is ${GITHUB_BRANCH_NAME} instead of master or release/[0-9].[0-9].[0-9]."\n exit 1\n fi\n\n - name: Set release version\n id: set-release-version\n run: |\n echo "release_version=${SET_RELEASE_VERSION}" | tee -a $GITHUB_OUTPUT\n\n - name: Set release branch\n id: set-release-branch\n run: |\n if [ $(echo "${GITHUB_BRANCH_NAME}" | grep -c "^release/") -eq 1 ] ; then\n echo "release_branch=${GITHUB_BRANCH_NAME}" | tee -a $GITHUB_OUTPUT\n else\n echo "release_branch=release/${SET_RELEASE_VERSION}" | tee -a $GITHUB_OUTPUT\n fi\n\n clean-release:\n needs: set-context\n env:\n GITHUB_CONTEXT: ${{ toJson(github) }}\n GITHUB_TOKEN: ${{ secrets.HURL_BOT_TOKEN }}\n name: clean-release\n runs-on: ubuntu-latest\n steps:\n - name: Checkout repository\n uses: actions/checkout@v4.2.2\n with:\n persist-credentials: true\n\n - name: Check release pull request existence\n id: check-release-pull-request-existence\n run: |\n actual_pr_number=$(gh pr list --repo "${{ github.repository }}" --head "${{ needs.set-context.outputs.release_branch }}" --state "open" --json number --jq .[].number)\n actual_pr_number=${actual_pr_number:-0}\n echo "actual_pr_number=${actual_pr_number}" | tee -a "${GITHUB_OUTPUT}"\n if [ ${actual_pr_number} -eq 0 ] ; then\n echo " - βœ… There is no pull request."\n echo "release_pr_exists=false" | tee -a $GITHUB_OUTPUT\n else\n echo " - βœ… Actual pull request number is ${actual_pr_number}."\n echo "release_pr_exists=true" | tee -a $GITHUB_OUTPUT\n fi\n\n - name: Close actual pull request\n if: steps.check-release-pull-request-existence.outputs.release_pr_exists == 'true'\n run: |\n comment=" - βœ… Pull request nΒ°${{ steps.check-release-pull-request-existence.outputs.actual_pr_number }} closed before opening new one."\n gh pr close "${{ steps.check-release-pull-request-existence.outputs.actual_pr_number }}" --comment "${comment}" --delete-branch && gh_exit_code=0 || gh_exit_code=$?\n if [ ${gh_exit_code} -eq 0 ] ; then\n echo " - ${comment}"\n else\n comment=" - ❌ A problem occurs when attempting to close PR nΒ°${{ steps.check-release-pull-request-existence.outputs.actual_pr_number }}."\n gh pr comment "${{ steps.check-release-pull-request-existence.outputs.actual_pr_number }}" --body "${comment} Please refer to ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID} logs."\n echo " - ${comment}"\n exit 1\n fi\n\n - name: Check GitHub release existence\n id: check-github-release-existence\n run: |\n gh release list || true\n escaped_version=$(echo "${{ needs.set-context.outputs.release_version }}" | sed "s#\.#\\\.#g")\n github_release_exists=$(gh release list | (grep -c "${escaped_version}" || true))\n if [ ${github_release_exists} -eq 0 ] ; then\n echo " - βœ… GitHub release ${{ needs.set-context.outputs.release_version }} does not exist."\n echo "github_release_exists=false" | tee -a $GITHUB_OUTPUT\n else\n echo " - βœ… GitHub release ${{ needs.set-context.outputs.release_version }} already exists on remote."\n echo "github_release_exists=true" | tee -a $GITHUB_OUTPUT\n fi\n\n - name: Delete GitHub release\n if: steps.check-github-release-existence.outputs.github_release_exists == 'true'\n run: |\n gh release delete ${{ needs.set-context.outputs.release_version }} --yes && gh_exit_code=0 || gh_exit_code=$?\n if [ ${gh_exit_code} -eq 0 ] ; then\n echo " - βœ… ${{ needs.set-context.outputs.release_version }} GitHub release deleted."\n else\n echo " - ❌ A problem occurs when attempting to delete ${{ needs.set-context.outputs.release_version }} GitHub release."\n exit 1\n fi\n\n - name: Check tag existence\n id: check-tag-existence\n run: |\n escaped_version=$(echo "${{ needs.set-context.outputs.release_version }}" | sed "s#\.#\\\.#g")\n tag_exists=$(git ls-remote --tags | (grep -c "${escaped_version}" || true))\n if [ ${tag_exists} -eq 0 ] ; then\n echo " - βœ… The origin/${{ needs.set-context.outputs.release_version }} tag does not exists on remote."\n echo "release_tag_exists=false" | tee -a $GITHUB_OUTPUT\n else\n echo " - βœ… The origin/${{ needs.set-context.outputs.release_version }} tag already exists on remote."\n echo "release_tag_exists=true" | tee -a $GITHUB_OUTPUT\n fi\n\n - name: Delete release tag\n if: steps.check-tag-existence.outputs.release_tag_exists == 'true'\n run: |\n git push origin --delete ${{ needs.set-context.outputs.release_version }} && git_exit_code=0 || git_exit_code=$?\n if [ ${git_exit_code} -eq 0 ] ; then\n echo " - βœ… ${{ needs.set-context.outputs.release_version }} tag deleted."\n else\n echo " - ❌ A problem occurs when attempting to delete ${{ needs.set-context.outputs.release_version }} tag."\n exit 1\n fi\n\n - name: Check release branch existence\n id: check-release-branch-existence\n if: github.ref_name == 'master'\n run: |\n escaped_version=$(echo "${{ needs.set-context.outputs.release_version }}" | sed "s#\.#\\\.#g")\n branch_exists=$(git ls-remote | (grep -c "${escaped_version}" || true))\n if [ ${branch_exists} -eq 0 ] ; then\n echo " - βœ… The origin/${{ needs.set-context.outputs.release_branch }} branch does not exists on remote."\n echo "release_branch_exists=false" | tee -a $GITHUB_OUTPUT\n else\n echo " - βœ… The origin/${{ needs.set-context.outputs.release_branch }} branch already exists on remote."\n echo "release_branch_exists=true" | tee -a $GITHUB_OUTPUT\n fi\n\n - name: Delete release branch\n if: github.ref_name == 'master' && steps.check-release-branch-existence.outputs.release_branch_exists == 'true'\n run: |\n git push origin --delete ${{ needs.set-context.outputs.release_branch }} && git_exit_code=0 || git_exit_code=$?\n if [ ${git_exit_code} -eq 0 ] ; then\n echo " - βœ… ${{ needs.set-context.outputs.release_branch }} branch deleted."\n else\n echo " - ❌ A problem occurs when attempting to delete ${{ needs.set-context.outputs.release_branch }} branch."\n exit 1\n fi\n\n update-release-branch:\n needs:\n - set-context\n - clean-release\n env:\n GITHUB_CONTEXT: ${{ toJson(github) }}\n GITHUB_TOKEN: ${{ secrets.HURL_BOT_TOKEN }}\n name: update-release-branch\n runs-on: ubuntu-latest\n steps:\n - name: Checkout repository\n if: github.ref_name == 'master'\n uses: actions/checkout@v4.2.2\n with:\n persist-credentials: true\n\n - name: Create release branch\n if: github.ref_name == 'master'\n id: create-release-branch\n run: |\n git checkout -b "${{ needs.set-context.outputs.release_branch }}"\n git push origin "${{ needs.set-context.outputs.release_branch }}" && git_exit_code=0 || git_exit_code=$?\n if [ ${git_exit_code} -eq 0 ] ; then\n echo " - βœ… ${{ needs.set-context.outputs.release_branch }} branch created."\n else\n echo " - ❌ A problem occurs when attempting to create ${{ needs.set-context.outputs.release_branch }} branch."\n exit 1\n fi\n\n - name: Checkout new release branch\n uses: actions/checkout@v4.2.2\n with:\n persist-credentials: true\n ref: ${{ needs.set-context.outputs.release_branch }}\n\n - name: Check CHANGELOG\n run: |\n pip install beautifulsoup4\n bin/check/changelog.sh\n\n - name: Update version\n run: |\n hurl_packages="hurl_core hurl hurlfmt"\n for package in ${hurl_packages} ; do\n cargo_toml="packages/${package}/Cargo.toml"\n sed -i "s/^version.*/version = \"${{ needs.set-context.outputs.release_version }}\"/" "${cargo_toml}"\n echo "----------------------------"\n echo " > package version for ${cargo_toml}"\n echo " $(grep "^version =" "${cargo_toml}")"\n for dep_package in ${hurl_packages} ; do\n if [ $(grep -c "^${dep_package} =" "${cargo_toml}") -gt 0 ] ; then\n sed -i "s/^${dep_package} = { version .*/${dep_package} = { version = \"${{ needs.set-context.outputs.release_version }}\", path = \"..\/${dep_package}\" }/" "${cargo_toml}"\n echo " > ${dep_package} dep package version for ${cargo_toml}"\n echo " $(grep "^${dep_package} =" "${cargo_toml}")"\n fi\n done\n done\n\n - name: Cargo update\n run: |\n ./bin/update_crates.sh\n\n - name: Update installation doc\n run: |\n old_version=$(grep -E "^\\$ VERSION=" docs/installation.md | head -1 | cut --delimiter "=" --field 2)\n sed -i "s/${old_version}/${{ needs.set-context.outputs.release_version }}/g" docs/installation.md\n\n - name: Update man\n run: |\n for package in hurl hurlfmt ; do\n python3 bin/release/gen_manpage.py "docs/manual/${package}.md" > "docs/manual/${package}.1"\n done\n\n - name: Update general docs\n run: |\n python3 bin/docs/build_man_md.py docs/manual/hurl.md > docs/manual.md\n python3 bin/docs/build_readme.py github > README.md\n python3 bin/docs/build_readme.py crates > packages/hurl/README.md\n\n - name: Init git bot context\n uses: crazy-max/ghaction-import-gpg@v6.3.0\n with:\n gpg_private_key: ${{ secrets.HURL_BOT_GPG_PRIVATE_KEY }}\n passphrase: ${{ secrets.HURL_BOT_GPG_PRIVATE_KEY_PASSPHRASE }}\n git_committer_name: "hurl-bot"\n git_committer_email: "bot@hurl.dev"\n git_user_signingkey: true\n git_commit_gpgsign: true\n\n - name: Push create release commits\n run: |\n git diff --exit-code && diff=false || diff=true\n if [ "${diff}" == "true" ] ; then\n git commit -am "Create ${{ needs.set-context.outputs.release_version }} release"\n git push && git_exit_code=0 || git_exit_code=$?\n if [ ${git_exit_code} -eq 0 ] ; then\n echo " - βœ… commits pushed to ${{ needs.set-context.outputs.release_branch }}."\n else\n echo " - ❌ A problem occurs when attempting to push create release commits to ${{ needs.set-context.outputs.release_branch }} branch."\n exit 1\n fi\n else\n echo " - βœ… no changes"\n fi\n\n - name: Archive artifacts\n uses: actions/upload-artifact@v4.6.2\n if: ${{ always() }}\n with:\n name: release-changelog\n path: |\n release_changelog.md\n\n package-release:\n needs:\n - set-context\n - clean-release\n - update-release-branch\n name: package-release\n uses: ./.github/workflows/package.yml\n with:\n branch: ${{ needs.set-context.outputs.release_branch }}\n\n deliver-github-release:\n env:\n GITHUB_BRANCH_NAME: ${{ github.ref_name }}\n GITHUB_OWNER: ${{ github.repository_owner }}\n GITHUB_REPO_NAME: ${{ github.event.repository.name }}\n GITHUB_CONTEXT: ${{ toJson(github) }}\n GITHUB_TOKEN: ${{ secrets.HURL_BOT_TOKEN }}\n RELEASE_VERSION: ${{ needs.set-context.outputs.release_version }}\n needs:\n - set-context\n - clean-release\n - update-release-branch\n - package-release\n name: deliver-github-release\n runs-on: ubuntu-latest\n steps:\n - name: Checkout new release branch\n uses: actions/checkout@v4.2.2\n with:\n persist-credentials: true\n ref: ${{ needs.set-context.outputs.release_branch }}\n\n - name: Init git bot context\n uses: crazy-max/ghaction-import-gpg@v6.3.0\n with:\n gpg_private_key: ${{ secrets.HURL_BOT_GPG_PRIVATE_KEY }}\n passphrase: ${{ secrets.HURL_BOT_GPG_PRIVATE_KEY_PASSPHRASE }}\n git_committer_name: "hurl-bot"\n git_committer_email: "bot@hurl.dev"\n git_user_signingkey: true\n git_commit_gpgsign: true\n\n - uses: actions/download-artifact@v4.2.1\n with:\n path: artifacts\n\n - name: Push tag\n run: |\n git tag -a "${RELEASE_VERSION}" -m "Release ${RELEASE_VERSION}"\n git tag -n\n git push --tags && git_exit_code=0 || git_exit_code=$?\n if [ ${git_exit_code} -eq 0 ] ; then\n echo " - βœ… ${RELEASE_VERSION} tag created."\n git fetch\n else\n echo " - ❌ A problem occurs when attempting to create ${RELEASE_VERSION} tag."\n exit 1\n fi\n\n - name: Create sha256sums\n run: |\n bin/release/sha256sum.sh --write \\n artifacts/release-deb-x64-artifacts/hurl_"${RELEASE_VERSION}"_amd64.deb \\n artifacts/release-deb-aarch64-artifacts/hurl_"${RELEASE_VERSION}"_arm64.deb \\n artifacts/release-generic-linux-x64-artifacts/hurl-"${RELEASE_VERSION}"-x86_64-unknown-linux-gnu.tar.gz \\n artifacts/release-generic-linux-aarch64-artifacts/hurl-"${RELEASE_VERSION}"-aarch64-unknown-linux-gnu.tar.gz \\n artifacts/release-macos-x64-artifacts/hurl-"${RELEASE_VERSION}"-x86_64-apple-darwin.tar.gz \\n artifacts/release-macos-aarch64-artifacts/hurl-"${RELEASE_VERSION}"-aarch64-apple-darwin.tar.gz \\n artifacts/release-windows-x64-artifacts/hurl-"${RELEASE_VERSION}"-x86_64-pc-windows-msvc-installer.exe \\n artifacts/release-windows-x64-artifacts/hurl-"${RELEASE_VERSION}"-x86_64-pc-windows-msvc.zip\n echo "file,sha256" > release-"${RELEASE_VERSION}".sha256.csv\n find ./artifacts -name "*sha256" | xargs -I FILE sh -c 'echo "https://github.com/${GITHUB_OWNER}/${GITHUB_REPO_NAME}/releases/download/${RELEASE_VERSION}/$(basename FILE),$(cat FILE)"' >> release-"${RELEASE_VERSION}".sha256.csv\n\n - name: Archive sha256 artifacts\n uses: actions/upload-artifact@v4.6.2\n with:\n name: release-sha256-csv\n path: release-${{ needs.set-context.outputs.release_version }}.sha256.csv\n\n\n - name: Deliver release\n run: |\n echo "::group::Extract CHANGELOG"\n ls -l CHANGELOG.md\n cat CHANGELOG.md | python3 bin/release/changelog_extract.py ${{ needs.set-context.outputs.release_version }} > release_changelog.md\n ls -l release_changelog.md\n cat release_changelog.md\n echo "::endgroup::"\n echo "::group::List artifacts"\n ls -l \\n artifacts/release-deb-x64-artifacts/* \\n artifacts/release-deb-aarch64-artifacts/* \\n artifacts/release-generic-linux-x64-artifacts/* \\n artifacts/release-generic-linux-aarch64-artifacts/* \\n artifacts/release-macos-x64-artifacts/* \\n artifacts/release-macos-aarch64-artifacts/* \\n artifacts/release-windows-x64-artifacts/*\n echo "::endgroup::"\n echo "::group::Deliver Release"\n gh release create ${{ needs.set-context.outputs.release_version }} \\n --target ${{ needs.set-context.outputs.release_branch }} \\n --notes-file release_changelog.md \\n --title ${{ needs.set-context.outputs.release_version }} \\n --draft \\n artifacts/release-deb-x64-artifacts/hurl_${{ needs.set-context.outputs.release_version }}_amd64.deb \\n artifacts/release-deb-x64-artifacts/hurl_${{ needs.set-context.outputs.release_version }}_amd64.deb.sha256 \\n artifacts/release-deb-aarch64-artifacts/hurl_${{ needs.set-context.outputs.release_version }}_arm64.deb \\n artifacts/release-deb-aarch64-artifacts/hurl_${{ needs.set-context.outputs.release_version }}_arm64.deb.sha256 \\n artifacts/release-generic-linux-x64-artifacts/hurl-${{ needs.set-context.outputs.release_version }}-x86_64-unknown-linux-gnu.tar.gz \\n artifacts/release-generic-linux-x64-artifacts/hurl-${{ needs.set-context.outputs.release_version }}-x86_64-unknown-linux-gnu.tar.gz.sha256 \\n artifacts/release-generic-linux-aarch64-artifacts/hurl-${{ needs.set-context.outputs.release_version }}-aarch64-unknown-linux-gnu.tar.gz \\n artifacts/release-generic-linux-aarch64-artifacts/hurl-${{ needs.set-context.outputs.release_version }}-aarch64-unknown-linux-gnu.tar.gz.sha256 \\n artifacts/release-macos-x64-artifacts/hurl-${{ needs.set-context.outputs.release_version }}-x86_64-apple-darwin.tar.gz \\n artifacts/release-macos-x64-artifacts/hurl-${{ needs.set-context.outputs.release_version }}-x86_64-apple-darwin.tar.gz.sha256 \\n artifacts/release-macos-aarch64-artifacts/hurl-${{ needs.set-context.outputs.release_version }}-aarch64-apple-darwin.tar.gz \\n artifacts/release-macos-aarch64-artifacts/hurl-${{ needs.set-context.outputs.release_version }}-aarch64-apple-darwin.tar.gz.sha256 \\n artifacts/release-windows-x64-artifacts/hurl-${{ needs.set-context.outputs.release_version }}-x86_64-pc-windows-msvc-installer.exe \\n artifacts/release-windows-x64-artifacts/hurl-${{ needs.set-context.outputs.release_version }}-x86_64-pc-windows-msvc-installer.exe.sha256 \\n artifacts/release-windows-x64-artifacts/hurl-${{ needs.set-context.outputs.release_version }}-x86_64-pc-windows-msvc.zip \\n artifacts/release-windows-x64-artifacts/hurl-${{ needs.set-context.outputs.release_version }}-x86_64-pc-windows-msvc.zip.sha256 && gh_exit_code=0 || gh_exit_code=$?\n if [ ${gh_exit_code} -eq 0 ] ; then\n echo " - βœ… GitHub release ${{ needs.set-context.outputs.release_version }} created."\n else\n echo " - ❌ A problem occurs when attempting to create GitHub release ${{ needs.set-context.outputs.release_version }}."\n exit 1\n fi\n echo "::endgroup::"\n\n - name: Check sha256 for published packages\n run: |\n .github/workflows/bin/check_release_assets_sha.sh \\n --release ${{ needs.set-context.outputs.release_version }} \\n --github-repo "${{ github.repository }}" \\n --github-token $GITHUB_TOKEN\n\n - name: Create new pull request\n run: |\n {\n echo "⚠ This is a GitHub releasing PR."\n echo "- Please use \`/accept\` as usual then run the \`update-branch-version\` github workflow if you want to automatically update master branch to next SNAPSHOT version"\n } > file-body.txt\n gh pr create \\n --title "Merge GitHub ${{ needs.set-context.outputs.release_branch }} into master \\n --body-file file-body.txt \\n --base master \\n --label bot && gh_exit_code=0 || gh_exit_code=$?\n if [ ${gh_exit_code} -eq 0 ] ; then\n new_pr_number=$(gh pr list --repo "${{ github.repository }}" --head "${{ needs.set-context.outputs.release_branch }}" --state "open" --json number --jq .[].number)\n echo " - βœ… Creation of pull request nΒ°${new_pr_number} succeeds."\n else\n echo " - ❌ A problem occurs when attempting to create new pull request."\n exit 1\n fi\n
dataset_sample\yaml\Orange-OpenSource_hurl\.github\workflows\release.yml
release.yml
YAML
20,926
0.95
0.074592
0
vue-tools
859
2023-07-31T17:22:56.365340
GPL-3.0
false
368b952f0b760150da1996202ec2d402
name: update-actions\n\non:\n schedule:\n - cron: "0 4 * * *"\n workflow_dispatch:\n\nconcurrency: update-actions-${{ github.ref }}\n\njobs:\n update-actions:\n env:\n GITHUB_CONTEXT: ${{ toJson(github) }}\n GITHUB_TOKEN: ${{ secrets.HURL_BOT_TOKEN }}\n REPO: ${{ github.repository }}\n BOT_UPDATE_BRANCH_NAME: "bot/update-actions"\n name: update-actions\n runs-on: ubuntu-latest\n steps:\n - name: Checkout repository\n uses: actions/checkout@v4.2.2\n with:\n persist-credentials: true\n ref: master\n token: ${{ secrets.HURL_BOT_TOKEN }}\n\n - name: Actions update\n run: |\n UPDATE_ACTIONS_OUTPUT="/tmp/update.output"\n echo "UPDATE_ACTIONS_OUTPUT=${UPDATE_ACTIONS_OUTPUT}" | tee -a "${GITHUB_ENV}"\n .github/workflows/bin/update_workflow_actions.sh --github-token $GITHUB_TOKEN 2>&1 | tee -a "${UPDATE_ACTIONS_OUTPUT}" && actions_update_exit_code=0 || actions_update_exit_code=$?\n cat "${UPDATE_ACTIONS_OUTPUT}"\n if [ ${actions_update_exit_code} -eq 0 ] ; then\n UPDATED_ACTIONS_COUNT=$(grep -cE "updated to" "${UPDATE_ACTIONS_OUTPUT}" || true)\n echo "UPDATED_ACTIONS_COUNT=${UPDATED_ACTIONS_COUNT}" | tee -a "${GITHUB_ENV}"\n echo " - βœ… Update actions succeeds with ${UPDATED_ACTIONS_COUNT} actions updated."\n else\n echo " - ❌ A problem occurs updating actions. Please refer to ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID} logs."\n exit 1\n fi\n\n - name: Get actual pull request id\n run: |\n ACTUAL_PR_NUMBER=$(gh pr list --repo "${REPO}" --head "${BOT_UPDATE_BRANCH_NAME}" --state "open" --json number --jq .[].number)\n ACTUAL_PR_NUMBER=${ACTUAL_PR_NUMBER:-0}\n echo "ACTUAL_PR_NUMBER=${ACTUAL_PR_NUMBER}" | tee -a "${GITHUB_ENV}"\n if [ ${ACTUAL_PR_NUMBER} -eq 0 ] ; then\n echo " - βœ… There is no pull request for actions update."\n else\n echo " - βœ… Actual pull request number is ${ACTUAL_PR_NUMBER}."\n fi\n\n - name: Close actual pull request\n if: env.ACTUAL_PR_NUMBER != 0\n run: |\n if [ ${UPDATED_ACTIONS_COUNT} -eq 0 ] ; then\n comment="βœ… Pull request nΒ°${ACTUAL_PR_NUMBER} closed because actions are up to date on master branch."\n else\n comment="βœ… Pull request nΒ°${ACTUAL_PR_NUMBER} closed before opening new one with new updated actions list."\n fi\n gh pr close "${ACTUAL_PR_NUMBER}" --comment "${comment}" --delete-branch && gh_exit_code=0 || gh_exit_code=$?\n if [ ${gh_exit_code} -eq 0 ] ; then\n echo " - ${comment}"\n else\n comment="❌ A problem occurs when bot attempts to close PR nΒ°${ACTUAL_PR_NUMBER}."\n gh pr comment "${ACTUAL_PR_NUMBER}" --body "${comment} Please refer to ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID} logs."\n echo " - ${comment}"\n exit 1\n fi\n\n - name: Init git bot context\n uses: crazy-max/ghaction-import-gpg@v6.3.0\n with:\n gpg_private_key: ${{ secrets.HURL_BOT_GPG_PRIVATE_KEY }}\n passphrase: ${{ secrets.HURL_BOT_GPG_PRIVATE_KEY_PASSPHRASE }}\n git_committer_name: "hurl-bot"\n git_committer_email: "bot@hurl.dev"\n git_user_signingkey: true\n git_commit_gpgsign: true\n\n - name: Push updates to branch\n if: env.UPDATED_ACTIONS_COUNT != 0\n run: |\n git checkout -b "${BOT_UPDATE_BRANCH_NAME}"\n git commit -am "Update actions"\n git push --set-upstream origin "${BOT_UPDATE_BRANCH_NAME}" && git_exit_code=0 || git_exit_code=$?\n if [ ${git_exit_code} -eq 0 ] ; then\n echo " - βœ… push actions update to ${BOT_UPDATE_BRANCH_NAME} succeeds."\n else\n echo " - ❌ A problem occurs when attempting to push actions update to origin/${BOT_UPDATE_BRANCH_NAME}."\n exit 1\n fi\n branch_exists=$(git ls-remote | (grep -c "${BOT_UPDATE_BRANCH_NAME}" || true))\n if [ ${branch_exists} -eq 1 ] ; then\n echo " - βœ… The origin/${BOT_UPDATE_BRANCH_NAME} now branch exists on remote."\n else\n echo " - ❌ Git push command succeeds but origin/${BOT_UPDATE_BRANCH_NAME} still does not exist on remote."\n exit 1\n fi\n\n - name: Create new pull request\n if: env.UPDATED_ACTIONS_COUNT != 0\n run: |\n GITHUB_TOKEN=${{ secrets.HURL_BOT_TOKEN }}\n gh pr create --fill --base master --head "${BOT_UPDATE_BRANCH_NAME}" && gh_exit_code=0 || gh_exit_code=$?\n if [ ${gh_exit_code} -eq 0 ] ; then\n NEW_PR_NUMBER=$(gh pr list --repo "${REPO}" --head "${BOT_UPDATE_BRANCH_NAME}" --state "open" --json number --jq .[].number)\n echo " - βœ… Creation of pull request nΒ°${NEW_PR_NUMBER} succeeds."\n else\n echo " - ❌ A problem occurs when attempting to create new pull request."\n exit 1\n fi\n sed -i -r "s/\x1B\[([0-9]{1,3}(;[0-9]{1,2})?)?[mGK]//g" "${UPDATE_ACTIONS_OUTPUT}"\n pr_comment=$(grep -v "newest" "${UPDATE_ACTIONS_OUTPUT}" || true)\n gh pr comment "${NEW_PR_NUMBER}" --body "${pr_comment}" && gh_exit_code=0 || gh_exit_code=$?\n if [ ${gh_exit_code} -eq 0 ] ; then\n echo " - βœ… Comment updates list to pull request nΒ° ${NEW_PR_NUMBER} succeeds."\n else\n echo " - ❌ A problem occurs when attempting to create updates list comment into new pull request nΒ°${NEW_PR_NUMBER}."\n exit 1\n fi\n gh pr edit "${NEW_PR_NUMBER}" --add-label "bot,dependencies" && gh_exit_code=0 || gh_exit_code=$?\n if [ ${gh_exit_code} -eq 0 ] ; then\n echo " - βœ… Adding Label to pull request nΒ° ${NEW_PR_NUMBER} succeeds."\n else\n echo " - ❌ A problem occurs when attempting to add labels into new pull request nΒ°${NEW_PR_NUMBER}."\n exit 1\n fi\n
dataset_sample\yaml\Orange-OpenSource_hurl\.github\workflows\update-actions.yml
update-actions.yml
YAML
6,135
0.95
0.101563
0
awesome-app
369
2025-05-10T19:49:42.316121
BSD-3-Clause
false
ee5cc52d9e1676a0d8c5a22dea9c98d8
name: update-branch-version\n\non:\n workflow_dispatch:\n inputs:\n new_version:\n description: 'Version (x.y.z-SNASPHOT)'\n required: true\n type: string\n workflow_call:\n secrets:\n HURL_BOT_TOKEN:\n description: 'secrets.HURL_BOT_TOKEN from the caller workflow'\n required: true\n HURL_BOT_GPG_PRIVATE_KEY:\n description: 'secrets.HURL_BOT_GPG_PRIVATE_KEY from the caller workflow'\n required: true\n HURL_BOT_GPG_PRIVATE_KEY_PASSPHRASE:\n description: 'secrets.HURL_BOT_GPG_PRIVATE_KEY_PASSPHRASE from the caller workflow'\n required: true\n inputs:\n new_version:\n description: "Version (x.y.z-SNASPHOT)"\n required: true\n type: string\n branch:\n description: "ref branch for this workflow"\n default: "master"\n required: true\n type: string\n outputs:\n pr_number:\n description: "Create PR number"\n value: ${{ jobs.update-branch-version.outputs.pr_number }}\n\nconcurrency: update-branch-version\n\njobs:\n update-branch-version:\n env:\n GITHUB_REF: ${{ github.ref }}\n GITHUB_CONTEXT: ${{ toJson(github) }}\n GITHUB_TOKEN: ${{ secrets.HURL_BOT_TOKEN }}\n REPO: ${{ github.repository }}\n NEW_VERSION: ${{ inputs.new_version }}\n outputs:\n pr_number: ${{ steps.create-new-version-pr.outputs.pr_number }}\n name: update-branch-version\n runs-on: ubuntu-latest\n steps:\n - name: Checkout repository\n uses: actions/checkout@v4.2.2\n with:\n persist-credentials: true\n ref: ${{ inputs.branch }}\n\n - name: Init bot branch name\n run: |\n base=$(echo "${GITHUB_REF}" | sed "s#refs/heads/##g" | tr '/' '-')\n echo "BOT_UPDATE_VERSION_BRANCH_NAME=bot/update-branch-version-${base}" | tee -a $GITHUB_ENV\n\n - name: Update version\n run: |\n hurl_packages="hurl_core hurl hurlfmt"\n for package in ${hurl_packages} ; do\n cargo_toml="packages/${package}/Cargo.toml"\n sed -i "s/^version.*/version = \"${NEW_VERSION}\"/" "${cargo_toml}"\n echo "----------------------------"\n echo " > package version for ${cargo_toml}"\n echo " $(grep "^version =" "${cargo_toml}")"\n for dep_package in ${hurl_packages} ; do\n if [ $(grep -c "^${dep_package} =" "${cargo_toml}") -gt 0 ] ; then\n sed -i "s/^${dep_package} = { version .*/${dep_package} = { version = \"${NEW_VERSION}\", path = \"..\/${dep_package}\" }/" "${cargo_toml}"\n echo " > ${dep_package} dep package version for ${cargo_toml}"\n echo " $(grep "^${dep_package} =" "${cargo_toml}")"\n fi\n done\n done\n\n - name: Cargo update\n run: |\n ./bin/update_crates.sh\n\n - name: Update man\n run: |\n for package in hurl hurlfmt ; do\n python3 bin/release/gen_manpage.py "docs/manual/${package}.md" > "docs/manual/${package}.1"\n done\n\n - name: Update general docs\n run: |\n python3 bin/docs/build_man_md.py docs/manual/hurl.md > docs/manual.md\n python3 bin/docs/build_readme.py github > README.md\n python3 bin/docs/build_readme.py crates > packages/hurl/README.md\n\n - name: Init git bot context\n uses: crazy-max/ghaction-import-gpg@v6.3.0\n with:\n gpg_private_key: ${{ secrets.HURL_BOT_GPG_PRIVATE_KEY }}\n passphrase: ${{ secrets.HURL_BOT_GPG_PRIVATE_KEY_PASSPHRASE }}\n git_committer_name: "hurl-bot"\n git_committer_email: "bot@hurl.dev"\n git_user_signingkey: true\n git_commit_gpgsign: true\n\n - name: Push commits\n run: |\n git checkout -b "${BOT_UPDATE_VERSION_BRANCH_NAME}"\n git commit -am "Update hurl version to ${NEW_VERSION}"\n git push --set-upstream origin "${BOT_UPDATE_VERSION_BRANCH_NAME}" && git_exit_code=0 || git_exit_code=$?\n if [ ${git_exit_code} -eq 0 ] ; then\n echo " - βœ… commits pushed to ${BOT_UPDATE_VERSION_BRANCH_NAME} branch."\n else\n echo " - ❌ A problem occurs when attempting to push create release commits to ${BOT_UPDATE_VERSION_BRANCH_NAME} branch."\n exit 1\n fi\n\n - name: Create new version PR\n id: create-new-version-pr\n run: |\n git fetch\n base=$(echo "${GITHUB_REF}" | sed "s#refs/heads/##g")\n gh pr create --fill --label bot --base "${base}" --head "${BOT_UPDATE_VERSION_BRANCH_NAME}" && gh_exit_code=0 || gh_exit_code=$?\n if [ ${gh_exit_code} -eq 0 ] ; then\n NEW_PR_NUMBER=$(gh pr list --repo "${REPO}" --head "${BOT_UPDATE_VERSION_BRANCH_NAME}" --state "open" --json number --jq .[].number)\n echo " - βœ… Creation of pull request nΒ°${NEW_PR_NUMBER} succeeds."\n echo "pr_number=${NEW_PR_NUMBER}" | tee -a $GITHUB_OUTPUT\n else\n echo " - ❌ A problem occurs when attempting to create new pull request."\n exit 1\n fi\n\n
dataset_sample\yaml\Orange-OpenSource_hurl\.github\workflows\update-branch-version.yml
update-branch-version.yml
YAML
5,119
0.95
0.068182
0
vue-tools
628
2025-05-28T05:04:23.976947
GPL-3.0
false
41838315bfae7b8deabc1f8c31cb7d5e
name: update-crates\n\non:\n schedule:\n - cron: "0 3 * * *"\n workflow_dispatch:\n\nconcurrency: update-crates-${{ github.ref }}\n\njobs:\n update-crates:\n env:\n GITHUB_CONTEXT: ${{ toJson(github) }}\n GITHUB_TOKEN: ${{ secrets.HURL_BOT_TOKEN }}\n REPO: ${{ github.repository }}\n BOT_UPDATE_BRANCH_NAME: "bot/update-crates"\n name: update-crates\n runs-on: ubuntu-latest\n steps:\n - name: Checkout repository\n uses: actions/checkout@v4.2.2\n with:\n persist-credentials: true\n ref: master\n\n - name: Crates update\n run: |\n UPDATE_CRATES_OUTPUT="/tmp/update.output"\n echo "UPDATE_CRATES_OUTPUT=${UPDATE_CRATES_OUTPUT}" | tee -a "${GITHUB_ENV}"\n bin/update_crates.sh 2>&1 > "${UPDATE_CRATES_OUTPUT}" && crates_update_exit_code=0 || crates_update_exit_code=$?\n cat "${UPDATE_CRATES_OUTPUT}"\n if [ ${crates_update_exit_code} -eq 0 ] ; then\n UPDATED_CRATES_COUNT=$(grep -cE "updated to" "${UPDATE_CRATES_OUTPUT}" || true)\n echo "UPDATED_CRATES_COUNT=${UPDATED_CRATES_COUNT}" | tee -a "${GITHUB_ENV}"\n echo " - βœ… Update crates succeeds with ${UPDATED_CRATES_COUNT} crates updated."\n else\n echo " - ❌ A problem occurs updating crates. Please refer to ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID} logs."\n exit 1\n fi\n\n - name: Get actual pull request id\n run: |\n ACTUAL_PR_NUMBER=$(gh pr list --repo "${REPO}" --head "${BOT_UPDATE_BRANCH_NAME}" --state "open" --json number --jq .[].number)\n ACTUAL_PR_NUMBER=${ACTUAL_PR_NUMBER:-0}\n echo "ACTUAL_PR_NUMBER=${ACTUAL_PR_NUMBER}" | tee -a "${GITHUB_ENV}"\n if [ ${ACTUAL_PR_NUMBER} -eq 0 ] ; then\n echo " - βœ… There is no pull request for crates update."\n else\n echo " - βœ… Actual pull request number is ${ACTUAL_PR_NUMBER}."\n fi\n\n - name: Close actual pull request\n if: env.ACTUAL_PR_NUMBER != 0\n run: |\n if [ ${UPDATED_CRATES_COUNT} -eq 0 ] ; then\n comment="βœ… Pull request nΒ°${ACTUAL_PR_NUMBER} closed because crates are up to date on master branch."\n else\n comment="βœ… Pull request nΒ°${ACTUAL_PR_NUMBER} closed before opening new one with new updated crates list."\n fi\n gh pr close "${ACTUAL_PR_NUMBER}" --comment "${comment}" --delete-branch && gh_exit_code=0 || gh_exit_code=$?\n if [ ${gh_exit_code} -eq 0 ] ; then\n echo " - ${comment}"\n else\n comment="❌ A problem occurs when bot attempts to close PR nΒ°${ACTUAL_PR_NUMBER}."\n gh pr comment "${ACTUAL_PR_NUMBER}" --body "${comment} Please refer to ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID} logs."\n echo " - ${comment}"\n exit 1\n fi\n\n - name: Init git bot context\n uses: crazy-max/ghaction-import-gpg@v6.3.0\n with:\n gpg_private_key: ${{ secrets.HURL_BOT_GPG_PRIVATE_KEY }}\n passphrase: ${{ secrets.HURL_BOT_GPG_PRIVATE_KEY_PASSPHRASE }}\n git_committer_name: "hurl-bot"\n git_committer_email: "bot@hurl.dev"\n git_user_signingkey: true\n git_commit_gpgsign: true\n\n - name: Push updates to branch\n if: env.UPDATED_CRATES_COUNT != 0\n run: |\n git checkout -b "${BOT_UPDATE_BRANCH_NAME}"\n git commit -am "Update crates"\n git push --set-upstream origin "${BOT_UPDATE_BRANCH_NAME}" && git_exit_code=0 || git_exit_code=$?\n if [ ${git_exit_code} -eq 0 ] ; then\n echo " - βœ… push crates update to ${BOT_UPDATE_BRANCH_NAME} succeeds."\n else\n echo " - ❌ A problem occurs when attempting to push crates update to origin/${BOT_UPDATE_BRANCH_NAME}."\n exit 1\n fi\n branch_exists=$(git ls-remote | (grep -c "${BOT_UPDATE_BRANCH_NAME}" || true))\n if [ ${branch_exists} -eq 1 ] ; then\n echo " - βœ… The origin/${BOT_UPDATE_BRANCH_NAME} now branch exists on remote."\n else\n echo " - ❌ Git push command succeeds but origin/${BOT_UPDATE_BRANCH_NAME} still does not exist on remote."\n exit 1\n fi\n\n - name: Create new pull request\n if: env.UPDATED_CRATES_COUNT != 0\n run: |\n GITHUB_TOKEN=${{ secrets.HURL_BOT_TOKEN }}\n gh pr create --fill --base master --head "${BOT_UPDATE_BRANCH_NAME}" && gh_exit_code=0 || gh_exit_code=$?\n if [ ${gh_exit_code} -eq 0 ] ; then\n NEW_PR_NUMBER=$(gh pr list --repo "${REPO}" --head "${BOT_UPDATE_BRANCH_NAME}" --state "open" --json number --jq .[].number)\n echo " - βœ… Creation of pull request nΒ°${NEW_PR_NUMBER} succeeds."\n else\n echo " - ❌ A problem occurs when attempting to create new pull request."\n exit 1\n fi\n sed -i -r "s/\x1B\[([0-9]{1,3}(;[0-9]{1,2})?)?[mGK]//g" "${UPDATE_CRATES_OUTPUT}"\n pr_comment=$(grep -v " newest$" "${UPDATE_CRATES_OUTPUT}" || true)\n gh pr comment "${NEW_PR_NUMBER}" --body "${pr_comment}" && gh_exit_code=0 || gh_exit_code=$?\n if [ ${gh_exit_code} -eq 0 ] ; then\n echo " - βœ… Comment updates list to pull request nΒ° ${NEW_PR_NUMBER} succeeds."\n else\n echo " - ❌ A problem occurs when attempting to create updates list comment into new pull request nΒ°${NEW_PR_NUMBER}."\n exit 1\n fi\n gh pr edit "${NEW_PR_NUMBER}" --add-label "bot,dependencies" && gh_exit_code=0 || gh_exit_code=$?\n if [ ${gh_exit_code} -eq 0 ] ; then\n echo " - βœ… Adding Label to pull request nΒ° ${NEW_PR_NUMBER} succeeds."\n else\n echo " - ❌ A problem occurs when attempting to add labels into new pull request nΒ°${NEW_PR_NUMBER}."\n exit 1\n fi\n
dataset_sample\yaml\Orange-OpenSource_hurl\.github\workflows\update-crates.yml
update-crates.yml
YAML
5,993
0.95
0.102362
0
react-lib
665
2024-05-03T16:42:04.700956
Apache-2.0
false
cde6df8b12fcc2022c2901fda9576994
# Read the Docs configuration file\n# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details\n\n# Required\nversion: 2\n\nbuild:\n os: ubuntu-22.04\n tools:\n python: "3.11"\n\n# Build documentation in the docs/ directory with Sphinx\n#sphinx:\n# configuration: docs/conf.py\n\n# Build documentation with MkDocs\nmkdocs:\n configuration: mkdocs.yml\n\n# Optionally build your docs in additional formats such as PDF and ePub\nformats: all\n\n# Optionally set the version of Python and requirements required to build your docs\npython:\n install:\n - requirements: src/docs/requirements.txt
dataset_sample\yaml\OrchardCMS_OrchardCore\.readthedocs.yml
.readthedocs.yml
YAML
593
0.95
0.04
0.45
awesome-app
396
2024-06-09T15:56:18.786245
BSD-3-Clause
false
c2cbdbec69a3398d0cbdd30a8bf64fc0
site_name: Orchard Core Documentation\ntheme:\n name: material\n custom_dir: src/docs/theme\n logo: assets/images/orchard-logo.png\n favicon: assets/images/favicon.png\n features:\n - content.tabs.link\n - header.autohide\n - navigation.footer\n - navigation.instant\n - navigation.top\n palette:\n - media: "(prefers-color-scheme: light)"\n scheme: default\n primary: teal\n accent: green\n toggle:\n icon: material/toggle-switch-off-outline\n name: Switch to dark mode\n - media: "(prefers-color-scheme: dark)"\n scheme: slate\n primary: teal\n accent: green\n toggle:\n icon: material/toggle-switch\n name: Switch to light mode\n static_templates:\n - 404.html\n\nextra:\n social:\n - icon: fontawesome/solid/leaf\n link: https://orchardcore.net\n - icon: fontawesome/brands/github-alt\n link: https://github.com/OrchardCMS/OrchardCore\n - icon: fontawesome/brands/discord\n link: https://orchardcore.net/discord\n - icon: fontawesome/brands/twitter\n link: https://twitter.com/OrchardCMS\n\n# Repository\nrepo_name: OrchardCMS/OrchardCore\nrepo_url: https://github.com/OrchardCMS/OrchardCore\nedit_uri: edit/main/src/\n\n# Options\ndocs_dir: src/docs\nvalidation:\n omitted_files: warn\n absolute_links: warn\n unrecognized_links: warn\n anchors: warn\n# Add files here that are intentionally not in the navigation and thus omitted_files shouldn't warn about them.\nnot_in_nav: |\n samples/\n releases/3.0.0.md\n\n# Extensions\nmarkdown_extensions:\n - markdown.extensions.admonition\n - markdown.extensions.codehilite\n - markdown.extensions.def_list\n - markdown.extensions.footnotes\n - markdown.extensions.meta\n # - mdx_truly_sane_lists:\n # nested_indent: 2\n # truly_sane: True\n - pymdownx.b64\n - pymdownx.caret\n - pymdownx.details\n - pymdownx.emoji\n - pymdownx.magiclink\n - pymdownx.smartsymbols\n - pymdownx.snippets:\n check_paths: true\n - pymdownx.superfences\n - pymdownx.tabbed:\n alternate_style: true\n - pymdownx.tasklist\n - pymdownx.tilde\n - toc:\n permalink: true\n# - markdown.extensions.nl2br\n\nplugins:\n - search\n - git-authors\n - git-revision-date-localized\n - exclude:\n glob:\n # Excluding the large node folder with all its MD files. We can't exclude everything apart from docs because there are links to e.g. C# files too.\n - "*node_modules*"\n - redirects:\n redirect_maps:\n 'topics/docs-contributions/README.md': 'contributing/contributing-documentation.md'\n 'glossary/README.md': 'reference/glossary/README.md'\n 'guides/contributing/README.md': 'contributing/README.md'\n 'guides/contributing/managing-issues.md': 'contributing/managing-issues.md'\n 'guides/contributing/contributing-code.md': 'contributing/contributing-code.md'\n 'guides/contributing/reviewing-pull-requests.md': 'contributing/reviewing-pull-requests.md'\n 'guides/contributing/contributing-documentation.md': 'contributing/contributing-documentation.md'\n 'guides/contributing/benchmarking.md': 'contributing/benchmarking.md'\n 'resources/tutorials/README.md': 'getting-started/external-resources.md'\n 'resources/development-tools/README.md': 'getting-started/development-tools.md'\n 'resources/meeting/README.md': 'contributing/meetings.md'\n 'resources/branding/README.md': 'reference/branding/README.md'\n 'resources/libraries/README.md': 'reference/libraries/README.md'\n 'resources/owners/README.md': 'community/owners/README.md'\n 'reference/core/DisplayManagement/README.md': 'reference/modules/DisplayManagement/README.md'\n 'reference/core/Configuration/README.md': 'reference/modules/Configuration/README.md'\n 'reference/core/Placement/README.md': 'reference/modules/Placement/README.md'\n 'reference/core/Data/README.md': 'reference/modules/Data/README.md'\n 'reference/core/Apis.GraphQL.Abstractions/README.md': 'reference/modules/Apis.GraphQL.Abstractions/README.md'\n 'reference/core/KeyVault.Azure/README.md': 'reference/modules/KeyVault.Azure/README.md'\n 'reference/core/Logging.Serilog/README.md': 'reference/modules/Logging.Serilog/README.md'\n 'reference/core/Modules/README.md': 'reference/modules/Modules/README.md'\n 'reference/core/Razor/README.md': 'reference/modules/Razor/README.md'\n 'reference/core/Sanitizer/README.md': 'reference/modules/Sanitizer/README.md'\n 'reference/core/Shells/README.md': 'reference/modules/Shells/README.md'\n\n# Page tree\nnav:\n - About Orchard Core: README.md\n - Getting started:\n - Development Tools: getting-started/development-tools.md\n - Create a CMS Web application: getting-started/README.md\n - Test drive Orchard Core: getting-started/test-drive-orchard-core.md\n - Configure Preview package source: getting-started/preview-package-source.md\n - Recipes and Starter Themes: getting-started/starter-recipes.md\n - Code Generation Templates: getting-started/templates/README.md\n - Create a Theme: getting-started/theme.md\n - External Resources: getting-started/external-resources.md\n - Guides:\n - Follow the Guides: guides/README.md\n - Create a modular application: guides/create-modular-application-mvc/README.md\n - Create a website: guides/create-cms-application/README.md\n - Leverage CSPROJ meta information: guides/leverage-csproj-meta-info/README.md\n - Create a Decoupled CMS site: guides/decoupled-cms/README.md\n - Create a Decoupled CMS site with a .NET Blazor Application (Server Side): guides/create-blazor-cms/README.md\n - Create a webshop using the Commerce module: https://commerce.orchardcore.net/en/latest/guides/create-webshop/\n - Add an admin menu: guides/add-admin-menu/README.md\n - Implement Full Text search: guides/implement-fulltext-search/README.md\n - Install localization files: guides/install-localization-files/README.md\n - Integrate Facebook plugins: guides/integrate-facebook-plugins/README.md\n - Run code on startup: guides/run-code-on-startup/README.md\n - Create a custom admin theme: guides/create-admin-theme/README.md\n - Customize encoding settings: guides/encoding-settings/README.md\n - Understanding Content Definitions Stores: guides/content-definitions/README.md\n - Change password configuration: guides/password-configuration/README.md\n - Change lockout configuration: guides/lockout-configuration/README.md\n - Microsoft Entra ID (Azure AD) integration: guides/microsoft-entra-id-integration/README.md\n - Create a Liquid Widget: guides/create-liquid-widget/README.md\n - Query Content Items Based on Taxonomy: guides/query-content-items-based-on-taxonomy/README.md\n - Assets manager: guides/assets-manager/README.md\n - Gulp pipeline: guides/gulp-pipeline/README.md\n - Key Topics:\n - Manage your Content: topics/content-management/README.md\n - Content Relationships: topics/content-relationships/README.md\n - Customize the Display: topics/display/README.md\n - Localize your site: topics/localize/README.md\n - Handle the Media: topics/media/README.md\n - Navigate between pages: topics/navigation/README.md\n - Query and Search data: topics/search/README.md\n - Secure your application: topics/security/README.md\n - Data: topics/data/README.md\n - Configuration: topics/configuration/README.md\n - Workflows: topics/workflows/README.md\n - Publishing a new release: topics/publishing-releases/README.md\n - Using Docker: topics/docker/README.md\n - Using local NuGet packages: topics/local-nuget-packages/README.md\n - Managing the Orchard Core Red Hat Ecosystem Catalog certification: topics/red-hat-ecosystem-catalog-certification/README.md\n - Reference:\n - Modules:\n - Overview: reference/README.md\n - CMS Modules:\n - Content Types: reference/modules/ContentTypes/README.md\n - Content Parts:\n - Add Parts to your Content: reference/modules/ContentParts/README.md\n - Title: reference/modules/Title/README.md\n - Autoroute: reference/modules/Autoroute/README.md\n - Alias: reference/modules/Alias/README.md\n - Html: reference/modules/Html/README.md\n - Markdown: reference/modules/Markdown/README.md\n - List: reference/modules/Lists/README.md\n - Flow: reference/modules/Flow/README.md\n - Bag: reference/modules/Flow/BagPart.md\n - Publish Later: reference/modules/PublishLater/README.md\n - SEO Meta: reference/modules/Seo/README.md\n - Content Fields: reference/modules/ContentFields/README.md\n - Content Preview: reference/modules/ContentPreview/README.md\n - Content Localization: reference/modules/ContentLocalization/README.md\n - Layers: reference/modules/Layers/README.md\n - Widgets: reference/modules/Widgets/README.md\n - Forms: reference/modules/Forms/README.md\n - Templates: reference/modules/Templates/README.md\n - Placements: reference/modules/Placements/README.md\n - Themes: reference/modules/Themes/README.md\n - Liquid: reference/modules/Liquid/README.md\n - Media:\n - Media: reference/modules/Media/README.md\n - Media Slugify: reference/modules/Media.Slugify/README.md\n - Media Amazon S3: reference/modules/Media.AmazonS3/README.md\n - Media Azure: reference/modules/Media.Azure/README.md\n - ReCaptcha: reference/modules/ReCaptcha/README.md\n - Resources: reference/modules/Resources/README.md\n - Rules: reference/modules/Rules/README.md\n - Search, Indexing, Querying:\n - Azure AI Search: reference/modules/AzureAISearch/README.md\n - Elasticsearch: reference/modules/Elasticsearch/README.md\n - Indexing: reference/modules/Indexing/README.md\n - Lucene: reference/modules/Lucene/README.md\n - SQL Indexing: reference/modules/SQLIndexing/README.md\n - Queries: reference/modules/Queries/README.md\n - Shortcodes: reference/modules/Shortcodes/README.md\n - Sitemaps: reference/modules/Sitemaps/README.md\n - SMS: reference/modules/Sms/README.md\n - Azure Communication SMS: reference/modules/Sms.Azure/README.md\n - Spatial: reference/modules/Spatial/README.md\n - XML-RPC: reference/modules/XmlRpc/README.md\n - Menu: reference/modules/Menu/README.md\n - Navigation: reference/modules/Navigation/README.md\n - Admin: reference/modules/Admin/README.md\n - Admin Dashboard: reference/modules/AdminDashboard/README.md\n - Admin Menu: reference/modules/AdminMenu/README.md\n - Taxonomies: reference/modules/Taxonomies/README.md\n - Authentication:\n - Microsoft: reference/modules/Microsoft.Authentication/README.md\n - Facebook: reference/modules/Facebook/README.md\n - X (Twitter): reference/modules/X/README.md\n - GitHub: reference/modules/GitHub/README.md\n - Google: reference/modules/Google/README.md\n - Users:\n - Overview: reference/modules/Users/README.md\n - Custom User Settings: reference/modules/Users/CustomUserSettings/README.md\n - Notifications: reference/modules/Notifications/README.md\n - Ticket store: reference/modules/Users/TicketStore.md\n - Home Route: reference/modules/HomeRoute/README.md\n - Feeds: reference/modules/Feeds/README.md\n - Commerce: https://commerce.orchardcore.net/en/latest\n - Core Modules:\n - Display Management: reference/modules/DisplayManagement/README.md\n - Audit Trail: reference/modules/AuditTrail/README.md\n - Auto Setup: reference/modules/AutoSetup/README.md\n - Features: reference/modules/Features/README.md\n - Contents: reference/modules/Contents/README.md\n - Configuration: reference/modules/Configuration/README.md\n - Cors: reference/modules/Cors/README.md\n - Custom Settings: reference/modules/CustomSettings/README.md\n - Deployment: reference/modules/Deployment/README.md\n - Placement: reference/modules/Placement/README.md\n - Data: reference/modules/Data/README.md\n - Data Migrations: reference/modules/Migrations/README.md\n - Diagnostics: reference/modules/Diagnostics/README.md\n - Dynamic Cache: reference/modules/DynamicCache/README.md\n - Email: reference/modules/Email/README.md\n - SMTP Provider: reference/modules/Email.Smtp/README.md\n - Azure Email Provider: reference/modules/Email.Azure/README.md\n - GraphQL: reference/modules/Apis.GraphQL/README.md\n - GraphQL queries: reference/modules/Apis.GraphQL.Abstractions/README.md\n - Health Check: reference/modules/HealthChecks/README.md\n - HTTPS: reference/modules/Https/README.md\n - Key Vault (Azure): reference/modules/KeyVault.Azure/README.md\n - Localization: reference/modules/Localize/README.md\n - Logging Serilog: reference/modules/Logging.Serilog/README.md\n - Mini Profiler: reference/modules/MiniProfiler/README.md\n - Modules: reference/modules/Modules/README.md\n - OpenId: reference/modules/OpenId/README.md\n - Permissions: reference/modules/Security/Permissions.md\n - Razor Helpers: reference/modules/Razor/README.md\n - Recipes: reference/modules/Recipes/README.md\n - Redis: reference/modules/Redis/README.md\n - Remote Deployment: reference/modules/Deployment.Remote/README.md\n - Response Compression: reference/modules/ResponseCompression/README.md\n - Roles: reference/modules/Roles/README.md\n - Sanitizer: reference/modules/Sanitizer/README.md\n - Scripting: reference/modules/Scripting/README.md\n - Security: reference/modules/Security/README.md\n - Setup: reference/modules/Setup/README.md\n - Shells: reference/modules/Shells/README.md\n - Tenants: reference/modules/Tenants/README.md\n - Workflows: reference/modules/Workflows/README.md\n - DataProtection (Azure Storage): reference/modules/DataProtection.Azure/README.md\n - Background Tasks: reference/modules/BackgroundTasks/README.md\n - URL Rewriting: reference/modules/UrlRewriting/README.md\n - Reverse Proxy: reference/modules/ReverseProxy/README.md\n - Branding: reference/branding/README.md\n - Libraries: reference/libraries/README.md\n - Glossary: reference/glossary/README.md\n - Releases Notes:\n - 2.1.7: releases/2.1.7.md\n - 2.1.6: releases/2.1.6.md\n - 2.1.5: releases/2.1.5.md\n - 2.1.4: releases/2.1.4.md\n - 2.1.3: releases/2.1.3.md\n - 2.1.2: releases/2.1.2.md\n - 2.1.1: releases/2.1.1.md\n - 2.1.0: releases/2.1.0.md\n - 2.0.2: releases/2.0.2.md\n - 2.0.1: releases/2.0.1.md\n - 2.0.0: releases/2.0.0.md\n - 1.8.4: releases/1.8.4.md\n - 1.8.3: releases/1.8.3.md\n - 1.8.2: releases/1.8.2.md\n - 1.8.1: releases/1.8.1.md\n - 1.8.0: releases/1.8.0.md\n - 1.7.2: releases/1.7.2.md\n - 1.7.1: releases/1.7.1.md\n - 1.7.0: releases/1.7.0.md\n - 1.6.0: releases/1.6.0.md\n - 1.5.0: releases/1.5.0.md\n - 1.4.0: releases/1.4.0.md\n - 1.3.0: releases/1.3.0.md\n - 1.2.2: releases/1.2.2.md\n - 1.2.1: releases/1.2.1.md\n - 1.2.0: releases/1.2.0.md\n - 1.1.0: releases/1.1.0.md\n - 1.0.0: releases/1.0.0.md\n - 1.0.0-rc2: releases/1.0.0-rc2.md\n - 1.0.0-rc1: releases/1.0.0-rc1.md\n - 1.0.0-beta3: releases/1.0.0-beta3.md\n - 1.0.0-beta2: releases/1.0.0-beta2.md\n - 1.0.0-beta1: releases/1.0.0-beta1.md\n - Contributing:\n - Overview: contributing/README.md\n - Opening and managing issues: contributing/managing-issues.md\n - Contributing code: contributing/contributing-code.md\n - Contributing documentation: contributing/contributing-documentation.md\n - Reviewing pull requests: contributing/reviewing-pull-requests.md\n - Benchmarking: contributing/benchmarking.md\n - Developer Meetings: contributing/meetings.md\n - Community:\n - Contributors: community/contributors/README.md\n - Contributors Map: community/contributors/Map.md\n - Feature Owners: community/owners/README.md\n - Honorable Contributors:\n - Jean-Thierry KΓ©chichian: community/jean-thierry/README.md\n - Jean-Thierry KΓ©chichian Community Award: community/jean-thierry-community-award/README.md\n
dataset_sample\yaml\OrchardCMS_OrchardCore\mkdocs.yml
mkdocs.yml
YAML
17,299
0.8
0.005917
0.03012
node-utils
783
2024-09-18T20:47:56.318032
GPL-3.0
false
e44ba37e5e2d9141796b37c345278ff9
# To get started with Dependabot version updates, you'll need to specify which\n# package ecosystems to update and where the package manifests are located.\n# Please see the documentation for all configuration options:\n# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates\n\nversion: 2\nupdates:\n\n # Maintain dependencies for GitHub Actions\n - package-ecosystem: "github-actions"\n directory: "/"\n schedule:\n interval: "weekly"\n\n # Maintain dependencies for npm\n - package-ecosystem: "npm"\n directory: "/"\n schedule:\n interval: "weekly"\n\n # Maintain dependencies for Composer\n - package-ecosystem: "composer"\n directory: "/"\n schedule:\n interval: "weekly"\n
dataset_sample\yaml\orchidsoftware_platform\.github\dependabot.yml
dependabot.yml
YAML
741
0.8
0.2
0.333333
awesome-app
830
2024-04-06T10:58:49.443802
MIT
false
005d8b993c7bbe4313bdcfbab844cbb9
# These are supported funding model platforms\n\ngithub: orchidsoftware\npatreon: # Replace with a single Patreon username\nopen_collective: orchid\nko_fi: # Replace with a single Ko-fi username\ntidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel\n#custom: https://www.paypal.me/tabuna/10usd\n
dataset_sample\yaml\orchidsoftware_platform\.github\FUNDING.yml
FUNDING.yml
YAML
320
0.8
0
0.285714
awesome-app
185
2024-06-25T07:29:59.749877
GPL-3.0
false
36a05937f7e5e029a6e800907f8a6452
blank_issues_enabled: false\ncontact_links:\n - name: Discussions\n url: https://github.com/orchidsoftware/platform/discussions/new\n about: 'If you want to start a discussion or want to ask a question, click:'\n
dataset_sample\yaml\orchidsoftware_platform\.github\ISSUE_TEMPLATE\config.yml
config.yml
YAML
214
0.8
0
0
react-lib
543
2024-01-30T03:03:54.662923
BSD-3-Clause
false
d479df6227b2100e77899ea52b266a50
name: Coding Guidelines\n\non:\n pull_request:\n push:\n paths:\n - '.github/workflows/**'\n - '**.php'\n - 'phpunit.xml'\n - 'composer.json'\n - 'composer.lock'\n\njobs:\n php-cs-fixer:\n runs-on: ubuntu-latest\n\n steps:\n - name: Checkout code\n uses: actions/checkout@v4\n with:\n ref: ${{ github.head_ref }}\n\n - name: Setup PHP πŸ”§\n uses: shivammathur/setup-php@v2\n with:\n php-version: 8.3\n extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick\n coverage: none\n tools: composer:v2\n env:\n COMPOSER_TOKEN: ${{ secrets.TOKEN }}\n\n - name: Install Dependencies πŸ”§\n run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist\n\n - name: Run Pint\n run: vendor/bin/pint\n\n - name: Commit changes\n uses: stefanzweifel/git-auto-commit-action@v5\n with:\n commit_message: Fixed code style\n
dataset_sample\yaml\orchidsoftware_platform\.github\workflows\code-style.yml
code-style.yml
YAML
1,052
0.8
0
0
react-lib
774
2024-10-17T13:37:18.444775
GPL-3.0
false
75831f25227a6be4946e25d9bdfdfa55
name: Code Coverage\n\non:\n pull_request:\n push:\n paths:\n - '.github/workflows/**'\n - '**.php'\n - 'phpunit.xml'\n - 'composer.json'\n - 'composer.lock'\n\njobs:\n laravel-tests:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n\n - name: Setup PHP πŸ”§\n uses: shivammathur/setup-php@v2\n with:\n php-version: 8.1\n extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick\n coverage: pcov\n tools: composer:v2\n\n - name: Install Dependencies πŸ”§\n run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist\n\n - name: Execute tests (Unit and Feature tests) via PHPUnit πŸ§ͺ\n run: vendor/bin/phpunit --coverage-clover=coverage.xml\n\n - name: Submit code coverage report πŸ”­\n run: bash <(curl -s https://codecov.io/bash)\n
dataset_sample\yaml\orchidsoftware_platform\.github\workflows\coverage.yml
coverage.yml
YAML
949
0.8
0
0
vue-tools
822
2024-11-14T00:09:05.688968
MIT
false
99e2521bf2f7ade0af4c06d5af680288
name: issues\n\non:\n issues:\n types: [labeled]\n\npermissions:\n issues: write\n\njobs:\n help-wanted:\n uses: orchidsoftware/.github/.github/workflows/issues.yml@main\n
dataset_sample\yaml\orchidsoftware_platform\.github\workflows\issues.yml
issues.yml
YAML
168
0.7
0
0
vue-tools
758
2024-01-20T09:59:52.727028
Apache-2.0
false
a03f66ee9f3e6e68a67a7f81a600399a
name: Tests\n\non:\n pull_request:\n push:\n paths:\n - '.github/workflows/**'\n - '**.php'\n - 'phpunit.xml'\n - 'composer.json'\n - 'composer.lock'\n schedule:\n - cron: '0 0 * * *'\n\njobs:\n phpunit:\n runs-on: ${{ matrix.os }}\n\n strategy:\n fail-fast: false\n matrix:\n php: [8.4, 8.3, 8.2, 8.1]\n os: [ubuntu-latest, windows-latest]\n laravel: ['10.*', '11.*', '12.*']\n dependency-version: [prefer-lowest, prefer-stable]\n include:\n - laravel: 11.*\n testbench: 9.*\n - laravel: 10.*\n testbench: 8.*\n - laravel: 12.*\n testbench: 10.*\n exclude:\n - laravel: 10.*\n php: 8.0\n - laravel: 11.*\n php: 8.1\n - laravel: 12.*\n php: 8.1\n\n name: P${{ matrix.php }} - ${{ matrix.os }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}\n\n\n steps:\n - name: Checkout code πŸ›ŽοΈ\n uses: actions/checkout@v4\n\n\n - name: Cache dependencies πŸ”§\n uses: actions/cache@v4\n with:\n path: ~/.composer/cache/files\n key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}\n\n\n - name: Setup PHP πŸ”§\n uses: shivammathur/setup-php@v2\n with:\n php-version: ${{ matrix.php }}\n extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo\n coverage: none\n tools: composer:v2\n\n\n - name: Install dependencies πŸ”§\n run: |\n composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update\n composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction\n\n\n - name: Execute tests (Unit and Feature tests) via PHPUnit πŸ§ͺ\n run: vendor/bin/phpunit --no-coverage --disable-coverage-ignore\n\n dusk:\n runs-on: ubuntu-latest\n\n\n steps:\n - uses: actions/checkout@v4\n with:\n fetch-depth: 1\n\n\n - name: Setup PHP πŸ”§\n uses: shivammathur/setup-php@v2\n with:\n php-version: 8.3\n extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick\n coverage: none\n tools: composer:v2\n\n - uses: actions/checkout@v4\n\n\n - name: Install Dependencies\n run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist\n\n\n - name: Make SQLite database\n run: vendor/bin/testbench-dusk workbench:create-sqlite-db\n\n\n - name: Update Dusk Chromedriver\n run: vendor/bin/dusk-updater detect --auto-update\n\n\n - name: Execute Unit Tests\n run: vendor/bin/phpunit --testsuite=Browser --no-coverage\n env:\n CI: true\n\n\n - name: Upload Failed Screenshots\n uses: actions/upload-artifact@v4\n if: failure()\n with:\n name: screenshots\n path: tests/Browser/screenshots/*\n
dataset_sample\yaml\orchidsoftware_platform\.github\workflows\phpunit.yml
phpunit.yml
YAML
3,141
0.95
0.008475
0
node-utils
79
2025-05-06T04:28:11.429266
BSD-3-Clause
false
66b5d2f0c9ba720dbbdbf31297214c0a
name: Quality Assurance\n\non:\n pull_request:\n push:\n paths:\n - '.github/workflows/**'\n - '**.php'\n - 'phpunit.xml'\n - 'composer.json'\n - 'composer.lock'\n\njobs:\n composer:\n name: composer\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n\n - name: Setup PHP πŸ”§\n uses: shivammathur/setup-php@v2\n with:\n php-version: 8.3\n extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick\n coverage: none\n tools: composer:v2\n\n - name: Validate composer.json and composer.lock πŸ‘€\n run: composer validate\n\n - name: Install dependencies\n run: composer install --no-progress --no-suggest\n\n - name: Check for outdated dependencies\n run: |\n if [ -n "$(composer outdated --direct --no-dev)" ]; then\n echo "❌ There are outdated dependencies!"\n composer outdated --direct\n exit 1\n fi\n shell: bash\n\n psalm:\n name: psalm\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n\n - name: Setup PHP πŸ”§\n uses: shivammathur/setup-php@v2\n with:\n php-version: 8.3\n extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick\n coverage: none\n tools: composer:v2\n\n - name: Install Dependencies πŸ”§\n run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist\n\n # Installing psalm separately due to conflict with phpunit\n - name: Install psalm\n run: |\n wget https://github.com/vimeo/psalm/releases/latest/download/psalm.phar\n chmod +x psalm.phar\n mv psalm.phar /usr/local/bin/psalm\n\n - name: Run psalm\n run: psalm --output-format=github\n\n phploc:\n name: phploc\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n\n - name: Setup PHP πŸ”§\n uses: shivammathur/setup-php@v2\n with:\n php-version: 8.3\n extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick\n coverage: none\n tools: composer:v2\n\n - name: Download phploc πŸ”§\n run: wget https://phar.phpunit.de/phploc.phar\n\n - name: Run phploc\n run: php phploc.phar src/\n
dataset_sample\yaml\orchidsoftware_platform\.github\workflows\quality.yml
quality.yml
YAML
2,470
0.8
0.022727
0.013699
react-lib
28
2023-10-20T23:31:17.350520
GPL-3.0
false
4942677b40a4bc13e20dab68f37af125
engines:\n govet:\n enabled: true\n golint:\n enabled: false\n gofmt:\n enabled: true\n\nratings:\n paths:\n - "**.go"\n\nexclude_paths:\n - vendor/\n - sdk/\n
dataset_sample\yaml\ory_hydra\.codeclimate.yml
.codeclimate.yml
YAML
162
0.7
0
0
vue-tools
246
2024-09-13T12:04:40.960837
Apache-2.0
false
d4579de49d2a1ad8d516d1204c3c8ccc
linters:\n enable:\n - gosec\n - errcheck\n - gosimple\n - bodyclose\n - staticcheck\n - goimports\n disable:\n - ineffassign\n - unused\n\nissues:\n exclude-files:\n - ".+_test.go"\n - ".+_test_.+.go"\n
dataset_sample\yaml\ory_hydra\.golangci.yml
.golangci.yml
YAML
220
0.85
0
0
awesome-app
473
2024-03-03T14:12:43.116244
MIT
false
b35013759fcbe31f9bf96f4cdd69fe3d
version: 2\n\nincludes:\n - from_url:\n url: https://raw.githubusercontent.com/ory/xgoreleaser/master/build.tmpl.yml\n\nvariables:\n brew_name: hydra\n brew_description: "The Ory OAuth2 and OpenID Connect Platform (Ory Hydra)"\n buildinfo_hash: "github.com/ory/hydra/v2/driver/config.Commit"\n buildinfo_tag: "github.com/ory/hydra/v2/driver/config.Version"\n buildinfo_date: "github.com/ory/hydra/v2/driver/config.Date"\n dockerfile_alpine: ".docker/Dockerfile-alpine"\n dockerfile_static: ".docker/Dockerfile-distroless-static"\nproject_name: hydra\n
dataset_sample\yaml\ory_hydra\.goreleaser.yml
.goreleaser.yml
YAML
549
0.8
0
0
python-kit
523
2025-01-13T17:03:46.261890
BSD-3-Clause
false
8c96b75ccc95a2f283f4dc8f87871f97
###########################################################################\n####### FOR DEMONSTRATION PURPOSES ONLY #######\n###########################################################################\n# #\n# If you have not yet read the tutorial, do so now: #\n# https://www.ory.sh/docs/hydra/5min-tutorial #\n# #\n# This set up is only for demonstration purposes. The login #\n# endpoint can only be used if you follow the steps in the tutorial. #\n# #\n###########################################################################\nservices:\n hydra-migrate:\n environment:\n - DSN=cockroach://root@cockroachd:26257/defaultdb?sslmode=disable&max_conns=20&max_idle_conns=4\n hydra:\n environment:\n - DSN=cockroach://root@cockroachd:26257/defaultdb?sslmode=disable&max_conns=20&max_idle_conns=4\n cockroachd:\n image: cockroachdb/cockroach:latest-v24.1\n ports:\n - "26257:26257"\n command: start-single-node --insecure\n networks:\n - intranet\n
dataset_sample\yaml\ory_hydra\quickstart-cockroach.yml
quickstart-cockroach.yml
YAML
1,276
0.8
0.08
0.44
node-utils
770
2024-12-06T08:30:59.404793
MIT
false
93a6ab235e77f10a646935961602d5ed
###########################################################################\n####### FOR DEMONSTRATION PURPOSES ONLY #######\n###########################################################################\n# #\n# If you have not yet read the tutorial, do so now: #\n# https://www.ory.sh/docs/hydra/5min-tutorial #\n# #\n# This set up is only for demonstration purposes. The login #\n# endpoint can only be used if you follow the steps in the tutorial. #\n# #\n###########################################################################\nservices:\n hydra:\n environment:\n - SERVE_PUBLIC_CORS_ENABLED=true\n - SERVE_PUBLIC_CORS_ALLOWED_METHODS=POST,GET,PUT,DELETE\n - SERVE_ADMIN_CORS_ENABLED=true\n - SERVE_ADMIN_CORS_ALLOWED_METHODS=POST,GET,PUT,DELETE\n
dataset_sample\yaml\ory_hydra\quickstart-cors.yml
quickstart-cors.yml
YAML
1,072
0.8
0.111111
0.611111
react-lib
146
2023-09-19T22:41:50.716722
GPL-3.0
false
804dd673d722e95d65fdbca2ddde072f
###########################################################################\n####### FOR DEMONSTRATION PURPOSES ONLY #######\n###########################################################################\n# #\n# If you have not yet read the tutorial, do so now: #\n# https://www.ory.sh/docs/hydra/5min-tutorial #\n# #\n# This set up is only for demonstration purposes. The login #\n# endpoint can only be used if you follow the steps in the tutorial. #\n# #\n###########################################################################\nservices:\n hydra:\n environment:\n - LOG_LEVEL=debug\n - OAUTH2_EXPOSE_INTERNAL_ERRORS=1\n
dataset_sample\yaml\ory_hydra\quickstart-debug.yml
quickstart-debug.yml
YAML
936
0.8
0.125
0.6875
node-utils
699
2024-08-06T19:59:27.277174
GPL-3.0
false
4260b28b46b18b8886115cbf69535d7d
###########################################################################\n####### FOR DEMONSTRATION PURPOSES ONLY #######\n###########################################################################\n# #\n# If you have not yet read the tutorial, do so now: #\n# https://www.ory.sh/docs/hydra/5min-tutorial #\n# #\n# This set up is only for demonstration purposes. The login #\n# endpoint can only be used if you follow the steps in the tutorial. #\n# #\n###########################################################################\nservices:\n hydra:\n build:\n context: .\n dockerfile: .docker/Dockerfile-hsm\n environment:\n - HSM_ENABLED=true\n - HSM_LIBRARY=/usr/lib/softhsm/libsofthsm2.so\n - HSM_TOKEN_LABEL=hydra\n - HSM_PIN=1234\n
dataset_sample\yaml\ory_hydra\quickstart-hsm.yml
quickstart-hsm.yml
YAML
1,069
0.8
0.095238
0.52381
awesome-app
756
2025-01-18T21:07:45.082884
GPL-3.0
false
8faf1f607cb6076d8cf40dcb59f66a9f
###########################################################################\n####### FOR DEMONSTRATION PURPOSES ONLY #######\n###########################################################################\n# #\n# If you have not yet read the tutorial, do so now: #\n# https://www.ory.sh/docs/hydra/5min-tutorial #\n# #\n# This set up is only for demonstration purposes. The login #\n# endpoint can only be used if you follow the steps in the tutorial. #\n# #\n###########################################################################\nservices:\n hydra:\n environment:\n - STRATEGIES_ACCESS_TOKEN=jwt\n - OIDC_SUBJECT_IDENTIFIERS_SUPPORTED_TYPES=public\n
dataset_sample\yaml\ory_hydra\quickstart-jwt.yml
quickstart-jwt.yml
YAML
964
0.8
0.125
0.6875
vue-tools
716
2023-12-08T07:39:20.125030
Apache-2.0
false
29658b87f55776c03fc01558edcd515e
###########################################################################\n####### FOR DEMONSTRATION PURPOSES ONLY #######\n###########################################################################\n# #\n# If you have not yet read the tutorial, do so now: #\n# https://www.ory.sh/docs/hydra/5min-tutorial #\n# #\n# This set up is only for demonstration purposes. The login #\n# endpoint can only be used if you follow the steps in the tutorial. #\n# #\n###########################################################################\nservices:\n hydra-migrate:\n environment:\n - DSN=mysql://root:secret@tcp(mysqld:3306)/mysql?max_conns=20&max_idle_conns=4\n hydra:\n environment:\n - DSN=mysql://root:secret@tcp(mysqld:3306)/mysql?max_conns=20&max_idle_conns=4\n mysqld:\n image: mysql:8.0\n ports:\n - "3306:3306"\n environment:\n - MYSQL_ROOT_PASSWORD=secret\n networks:\n - intranet\n
dataset_sample\yaml\ory_hydra\quickstart-mysql.yml
quickstart-mysql.yml
YAML
1,221
0.8
0.076923
0.423077
awesome-app
546
2024-12-19T23:26:09.214768
MIT
false
481a4d0cb212ce4625229063593456d2
###########################################################################\n####### FOR DEMONSTRATION PURPOSES ONLY #######\n###########################################################################\n# #\n# If you have not yet read the tutorial, do so now: #\n# https://www.ory.sh/docs/hydra/5min-tutorial #\n# #\n# This set up is only for demonstration purposes. The login #\n# endpoint can only be used if you follow the steps in the tutorial. #\n# #\n###########################################################################\nservices:\n hydra-migrate:\n environment:\n - DSN=postgres://hydra:secret@postgresd:5432/hydra?sslmode=disable&max_conns=20&max_idle_conns=4\n hydra:\n environment:\n - DSN=postgres://hydra:secret@postgresd:5432/hydra?sslmode=disable&max_conns=20&max_idle_conns=4\n postgresd:\n image: postgres:16\n ports:\n - "5432:5432"\n environment:\n - POSTGRES_USER=hydra\n - POSTGRES_PASSWORD=secret\n - POSTGRES_DB=hydra\n networks:\n - intranet\n
dataset_sample\yaml\ory_hydra\quickstart-postgres.yml
quickstart-postgres.yml
YAML
1,314
0.8
0.071429
0.392857
node-utils
35
2025-02-14T17:01:51.847444
GPL-3.0
false
0ffbe5e3ce9f31ce3ee249602cc88394
global:\n scrape_interval: 15s # By default, scrape targets every 15 seconds.\n\n external_labels:\n monitor: "codelab-monitor"\n\nscrape_configs:\n - job_name: "prometheus"\n\n scrape_interval: 5s\n\n static_configs:\n - targets: ["localhost:9090"]\n - job_name: "hydra"\n\n # Override the global default and scrape targets from this job every 5 seconds.\n scrape_interval: 5s\n metrics_path: /metrics/prometheus\n static_configs:\n - targets: ["hydra:4445"]\n
dataset_sample\yaml\ory_hydra\quickstart-prometheus-config.yml
quickstart-prometheus-config.yml
YAML
476
0.8
0
0.066667
python-kit
677
2025-04-11T05:50:59.534351
Apache-2.0
false
e53d3a6c9549ab0334e02d7778b8d3ad
###########################################################################\n####### FOR DEMONSTRATION PURPOSES ONLY #######\n###########################################################################\n# #\n# If you have not yet read the tutorial, do so now: #\n# https://www.ory.sh/docs/hydra/5min-tutorial #\n# #\n# This set up is only for demonstration purposes. The login #\n# endpoint can only be used if you follow the steps in the tutorial. #\n# #\n###########################################################################\nservices:\n prometheus:\n image: prom/prometheus:v2.12.0\n ports:\n - "9090:9090"\n depends_on:\n - hydra\n command: --config.file=/etc/prometheus/prometheus.yml\n volumes:\n - ./quickstart-prometheus-config.yml:/etc/prometheus/prometheus.yml\n networks:\n - intranet\n
dataset_sample\yaml\ory_hydra\quickstart-prometheus.yml
quickstart-prometheus.yml
YAML
1,132
0.8
0.086957
0.478261
python-kit
88
2025-02-05T05:49:33.069947
BSD-3-Clause
false
1b4f49dc643439044b50d9fe66f08e5a
###########################################################################\n####### FOR DEMONSTRATION PURPOSES ONLY #######\n###########################################################################\n# #\n# If you have not yet read the tutorial, do so now: #\n# https://www.ory.sh/docs/hydra/5min-tutorial #\n# #\n# This set up is only for demonstration purposes. The login #\n# endpoint can only be used if you follow the steps in the tutorial. #\n# #\n###########################################################################\nservices:\n hydra:\n depends_on:\n - jaeger\n # - zipkin\n # - datadog\n environment:\n # - TRACING_SERVICE_NAME="Ory Hydra"\n - TRACING_PROVIDER=jaeger\n # - TRACING_PROVIDER=zipkin\n # - TRACING_PROVIDER=otel # datadog\n # - TRACING_PROVIDER=elastic-apm\n ### Jaeger ###\n - TRACING_PROVIDERS_JAEGER_SAMPLING_SERVER_URL=http://jaeger:5778/sampling\n - TRACING_PROVIDERS_JAEGER_LOCAL_AGENT_ADDRESS=jaeger:6831\n - TRACING_PROVIDERS_JAEGER_SAMPLING_TRACE_ID_RATIO=1\n ### Zipkin ###\n # - TRACING_PROVIDERS_ZIPKIN_SERVER_URL=http://zipkin:9411/api/v2/spans\n ### DataDog ###\n ### See env vars here: https://docs.datadoghq.com/tracing/setup/go/#configuration) ###\n # - TRACING_PROVIDERS_OTLP_INSECURE=true\n # - TRACING_PROVIDERS_OTLP_SAMPLING_SAMPLING_RATIO=1.0\n # - TRACING_PROVIDERS_OTLP_SERVER_URL=localhost:4318\n ### Elastic APM ###\n ### See env vars here: https://www.elastic.co/guide/en/apm/agent/go/1.x/configuration.html) ###\n # - ELASTIC_APM_SERVER_URL="http://apm-server:8200"\n # - ELASTIC_APM_SERVICE_NAME="Ory Hydra"\n # - ELASTIC_APM_SERVICE_VERSION="1.9.0"\n # - ELASTIC_APM_ENVIRONMENT="devel"\n ### Opentelemetry ###\n ### See env vars here: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/sdk-environment-variables.md ###\n jaeger:\n image: jaegertracing/all-in-one:1.19.2\n ports:\n - "16686:16686" # The UI port\n networks:\n - intranet\n# zipkin:\n# image: openzipkin/zipkin:2\n# environment:\n# - STORAGE_TYPE=mem\n# ports:\n# - "9411:9411" # The UI/API port\n\n# datadog:\n# image: datadog/agent:7\n# environment:\n# - DD_API_KEY=<YOUR_API_KEY> # Replace it with your DataDog API key\n# - DD_APM_ENABLED=true\n# - DD_APM_NON_LOCAL_TRAFFIC=true\n# - DD_OTLP_CONFIG_RECEIVER_PROTOCOLS_HTTP_ENDPOINT=0.0.0.0:4318\n
dataset_sample\yaml\ory_hydra\quickstart-tracing.yml
quickstart-tracing.yml
YAML
2,772
0.8
0.032258
0.754098
awesome-app
911
2024-10-05T00:23:43.877133
GPL-3.0
false
af9d861d3500dae6709da8cfa264305d
###########################################################################\n####### FOR DEMONSTRATION PURPOSES ONLY #######\n###########################################################################\n# #\n# If you have not yet read the tutorial, do so now: #\n# https://www.ory.sh/docs/hydra/5min-tutorial #\n# #\n# This set up is only for demonstration purposes. The login #\n# endpoint can only be used if you follow the steps in the tutorial. #\n# #\n###########################################################################\nservices:\n sqlite:\n image: busybox\n volumes:\n - hydra-sqlite:/mnt/sqlite\n command: "chmod -R 777 /mnt/sqlite"\n hydra:\n image: oryd/hydra:v2.3.0\n build:\n context: .\n dockerfile: .docker/Dockerfile-local-build\n ports:\n - "4444:4444" # Public port\n - "4445:4445" # Admin port\n - "5555:5555" # Port for hydra token user\n command: serve -c /etc/config/hydra/hydra.yml all --dev\n volumes:\n - hydra-sqlite:/mnt/sqlite:rw\n - type: bind\n source: ./contrib/quickstart/5-min\n target: /etc/config/hydra\n pull_policy: missing\n environment:\n - DSN=sqlite:///mnt/sqlite/db.sqlite?_fk=true&mode=rwc\n restart: unless-stopped\n depends_on:\n - hydra-migrate\n - sqlite\n networks:\n - intranet\n hydra-migrate:\n image: oryd/hydra:v2.3.0\n build:\n context: .\n dockerfile: .docker/Dockerfile-local-build\n environment:\n - DSN=sqlite:///mnt/sqlite/db.sqlite?_fk=true&mode=rwc\n command: migrate -c /etc/config/hydra/hydra.yml sql up -e --yes\n pull_policy: missing\n volumes:\n - hydra-sqlite:/mnt/sqlite:rw\n - type: bind\n source: ./contrib/quickstart/5-min\n target: /etc/config/hydra\n restart: on-failure\n networks:\n - intranet\n depends_on:\n - sqlite\n consent:\n environment:\n - HYDRA_ADMIN_URL=http://hydra:4445\n image: oryd/hydra-login-consent-node:v2.3.0\n ports:\n - "3000:3000"\n restart: unless-stopped\n networks:\n - intranet\nnetworks:\n intranet:\nvolumes:\n hydra-sqlite:\n
dataset_sample\yaml\ory_hydra\quickstart.yml
quickstart.yml
YAML
2,402
0.8
0.041096
0.150685
react-lib
724
2024-07-16T17:44:37.314236
MIT
false
9eb7c2dacd50db068d92d0786fe15d3c
version: "2"\nchecks:\n argument-count:\n config:\n threshold: 5\n complex-logic:\n config:\n threshold: 4\n file-lines:\n config:\n threshold: 500\n method-complexity:\n config:\n threshold: 5\n method-count:\n config:\n threshold: 20\n method-lines:\n config:\n threshold: 100\n nested-control-flow:\n config:\n threshold: 4\n return-statements:\n config:\n threshold: 10\n similar-code:\n config:\n threshold: 10\n identical-code:\n config:\n threshold: 10\nexclude_patterns:\n- "doc/"\n- "examples/"\n- "images/"\n- "resources/"
dataset_sample\yaml\owasp-amass_amass\.codeclimate.yml
.codeclimate.yml
YAML
586
0.7
0
0
python-kit
100
2024-09-01T08:08:06.413938
BSD-3-Clause
false
24bd7ebd2321b7d3b2d61ef64622b717
codecov:\n disable_default_path_fixes: yes\n\nfixes:\n - "github.com/owasp-amass/amass/v4/::github.com/owasp-amass/amass/"\n\nignore:\n - encode_optype.go\n - ./doc/**/*\n - ./examples/**/*\n - ./images/**/*\n - ./resources/**/*\n\ncoverage:\n range: 20..60\n round: up\n precision: 2\n\ncomment:\n layout: "reach, diff, files"\n behavior: new\n require_changes: true\n require_base: yes\n require_head: yes\n branches:\n - "develop"\n
dataset_sample\yaml\owasp-amass_amass\codecov.yml
codecov.yml
YAML
428
0.95
0
0
node-utils
28
2024-06-09T23:13:31.987842
Apache-2.0
false
2c01bb3176ee63efe44086c764f45b9e
coverage:\n status:\n project:\n default:\n informational: true\n patch:\n default:\n informational: true\n changes:\n default:\n informational: true\n\nignore:\n - "**/main.rs"\n - "**/examples"\n - "**/generated/**"\n - "tasks"\n - "editor"\n - "napi"\n - "crates/oxc_diagnostics"\n - "crates/oxc_napi"\n
dataset_sample\yaml\oxc-project_oxc\.github\codecov.yml
codecov.yml
YAML
339
0.8
0
0
awesome-app
112
2025-03-10T07:07:03.148233
BSD-3-Clause
false
5d3f0b3cca3d13de75fc41c3b0d0cf73
A-ast:\n - changed-files:\n - any-glob-to-any-file: ["crates/oxc_ast/**"]\n\nA-ast-tools:\n - changed-files:\n - any-glob-to-any-file: ["tasks/ast_tools/**"]\n\nA-cfg:\n - changed-files:\n - any-glob-to-any-file: ["crates/oxc_cfg/**"]\n\nA-cli:\n - changed-files:\n - any-glob-to-any-file: ["apps/oxlint/**"]\n\nA-editor:\n - changed-files:\n - any-glob-to-any-file: ["crates/oxc_language_server/**", "editors/**"]\n\nA-formatter:\n - changed-files:\n - any-glob-to-any-file: ["crates/oxc_formatter/**", "tasks/prettier_conformance/**"]\n\nA-transformer:\n - changed-files:\n - any-glob-to-any-file: ["crates/oxc_transformer/**", "tasks/transform_conformance/**"]\n\nA-linter:\n - changed-files:\n - any-glob-to-any-file: ["crates/oxc_linter/**"]\n\nA-minifier:\n - changed-files:\n - any-glob-to-any-file: ["crates/oxc_minifier/**"]\n\nA-parser:\n - changed-files:\n - any-glob-to-any-file: ["crates/oxc_parser/**"]\n\nA-codegen:\n - changed-files:\n - any-glob-to-any-file: ["crates/oxc_codegen/**"]\n\nA-semantic:\n - changed-files:\n - any-glob-to-any-file: ["crates/oxc_semantic/**"]\n\nA-type-checking:\n - changed-files:\n - any-glob-to-any-file: ["crates/oxc_type_synthesis/**"]\n\nA-isolated-declarations:\n - changed-files:\n - any-glob-to-any-file: ["crates/oxc_isolated_declarations/**"]\n
dataset_sample\yaml\oxc-project_oxc\.github\labeler.yml
labeler.yml
YAML
1,330
0.8
0
0
python-kit
15
2024-07-19T13:07:22.996113
BSD-3-Clause
false
26cd01d88fde579e30b627fad95a09fe
name: Clone submodules\n\ndescription: Clone submodules\n\nruns:\n using: composite\n steps:\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n with:\n show-progress: false\n repository: tc39/test262\n path: tasks/coverage/test262\n ref: bc5c14176e2b11a78859571eb693f028c8822458\n\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n with:\n show-progress: false\n repository: babel/babel\n path: tasks/coverage/babel\n ref: 578ac4df1c8a05f01350553950dbfbbeaac013c2\n\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n with:\n show-progress: false\n repository: microsoft/TypeScript\n path: tasks/coverage/typescript\n ref: 15392346d05045742e653eab5c87538ff2a3c863\n\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n with:\n show-progress: false\n repository: prettier/prettier\n path: tasks/prettier_conformance/prettier\n ref: 7584432401a47a26943dd7a9ca9a8e032ead7285 # v3.5.0\n\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n with:\n show-progress: false\n repository: oxc-project/acorn-test262\n path: tasks/coverage/acorn-test262\n ref: 4f7db0ced5b28a273db49ae0952f2c4d477061b4 # Latest main at 7/4/25\n
dataset_sample\yaml\oxc-project_oxc\.github\actions\clone-submodules\action.yml
action.yml
YAML
1,391
0.8
0
0
vue-tools
379
2024-10-25T15:52:04.947324
MIT
false
3ebf09ab6063568b099e6b89a66d084f
name: pnpm\n\nruns:\n using: composite\n steps:\n - uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0\n\n - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0\n with:\n node-version-file: .node-version\n registry-url: "https://registry.npmjs.org"\n cache: pnpm\n\n - run: pnpm install --frozen-lockfile\n shell: bash\n
dataset_sample\yaml\oxc-project_oxc\.github\actions\pnpm\action.yml
action.yml
YAML
393
0.8
0
0
awesome-app
660
2025-01-27T11:20:39.222027
GPL-3.0
false
451992d810face04021c1fd9b5d9e9b1
# Auto-generated code, DO NOT EDIT DIRECTLY!\n# To edit this generated file you have to edit `tasks/ast_tools/src/main.rs`\n\nsrc:\n - '.github/generated/ast_changes_watch_list.yml'\n - 'crates/oxc_ast/src/ast/comment.rs'\n - 'crates/oxc_ast/src/ast/js.rs'\n - 'crates/oxc_ast/src/ast/jsx.rs'\n - 'crates/oxc_ast/src/ast/literal.rs'\n - 'crates/oxc_ast/src/ast/ts.rs'\n - 'crates/oxc_ast/src/generated/assert_layouts.rs'\n - 'crates/oxc_ast/src/generated/ast_builder.rs'\n - 'crates/oxc_ast/src/generated/ast_kind.rs'\n - 'crates/oxc_ast/src/generated/derive_clone_in.rs'\n - 'crates/oxc_ast/src/generated/derive_content_eq.rs'\n - 'crates/oxc_ast/src/generated/derive_dummy.rs'\n - 'crates/oxc_ast/src/generated/derive_estree.rs'\n - 'crates/oxc_ast/src/generated/derive_get_address.rs'\n - 'crates/oxc_ast/src/generated/derive_get_span.rs'\n - 'crates/oxc_ast/src/generated/derive_get_span_mut.rs'\n - 'crates/oxc_ast/src/generated/derive_take_in.rs'\n - 'crates/oxc_ast/src/generated/get_id.rs'\n - 'crates/oxc_ast/src/serialize.rs'\n - 'crates/oxc_ast_macros/src/generated/mod.rs'\n - 'crates/oxc_ast_macros/src/lib.rs'\n - 'crates/oxc_ast_visit/src/generated/utf8_to_utf16_converter.rs'\n - 'crates/oxc_ast_visit/src/generated/visit.rs'\n - 'crates/oxc_ast_visit/src/generated/visit_mut.rs'\n - 'crates/oxc_formatter/src/generated/format.rs'\n - 'crates/oxc_regular_expression/src/ast.rs'\n - 'crates/oxc_regular_expression/src/generated/assert_layouts.rs'\n - 'crates/oxc_regular_expression/src/generated/derive_clone_in.rs'\n - 'crates/oxc_regular_expression/src/generated/derive_content_eq.rs'\n - 'crates/oxc_regular_expression/src/generated/derive_estree.rs'\n - 'crates/oxc_regular_expression/src/generated/derive_get_address.rs'\n - 'crates/oxc_span/src/generated/assert_layouts.rs'\n - 'crates/oxc_span/src/generated/derive_dummy.rs'\n - 'crates/oxc_span/src/generated/derive_estree.rs'\n - 'crates/oxc_span/src/source_type/mod.rs'\n - 'crates/oxc_span/src/span.rs'\n - 'crates/oxc_syntax/src/generated/assert_layouts.rs'\n - 'crates/oxc_syntax/src/generated/derive_clone_in.rs'\n - 'crates/oxc_syntax/src/generated/derive_content_eq.rs'\n - 'crates/oxc_syntax/src/generated/derive_dummy.rs'\n - 'crates/oxc_syntax/src/generated/derive_estree.rs'\n - 'crates/oxc_syntax/src/lib.rs'\n - 'crates/oxc_syntax/src/module_record.rs'\n - 'crates/oxc_syntax/src/number.rs'\n - 'crates/oxc_syntax/src/operator.rs'\n - 'crates/oxc_syntax/src/reference.rs'\n - 'crates/oxc_syntax/src/scope.rs'\n - 'crates/oxc_syntax/src/serialize.rs'\n - 'crates/oxc_syntax/src/symbol.rs'\n - 'crates/oxc_traverse/src/generated/scopes_collector.rs'\n - 'napi/parser/deserialize-js.js'\n - 'napi/parser/deserialize-ts.js'\n - 'napi/parser/src/generated/assert_layouts.rs'\n - 'napi/parser/src/generated/derive_estree.rs'\n - 'napi/parser/src/raw_transfer_types.rs'\n - 'npm/oxc-types/types.d.ts'\n - 'tasks/ast_tools/src/**'\n
dataset_sample\yaml\oxc-project_oxc\.github\generated\ast_changes_watch_list.yml
ast_changes_watch_list.yml
YAML
2,907
0.8
0
0.033333
node-utils
316
2024-09-18T03:00:09.589659
BSD-3-Clause
false
f1985e45aeaa46d541d9571ca0860288
contact_links:\n - name: Github discussions\n url: https://github.com/oxc-project/oxc/discussions\n about: For general discussions.\n\n - name: Discord server\n url: https://discord.gg/9uXCAwqQZW\n about: For lightweight questions.\n\n - name: Website issues\n url: https://github.com/oxc-project/oxc-project.github.io\n about: For website issues.\n
dataset_sample\yaml\oxc-project_oxc\.github\ISSUE_TEMPLATE\config.yml
config.yml
YAML
358
0.8
0
0
node-utils
641
2025-02-25T23:01:08.912257
BSD-3-Clause
false
78b36d1b7c13609e85890dc9774fa573
name: autofix.ci # For security reasons, the workflow in which the autofix.ci action is used must be named "autofix.ci".\n\npermissions: {}\n\non:\n pull_request:\n types: [opened, synchronize]\n paths-ignore:\n - "!.github/workflows/ci.yml"\n - "!.github/actions/clone-submodules/action.yml"\n\nconcurrency:\n group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}\n cancel-in-progress: ${{ github.ref_name != 'main' }}\n\njobs:\n autofix:\n runs-on: ubuntu-latest\n steps:\n - uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1\n\n - uses: oxc-project/setup-rust@cd82e1efec7fef815e2c23d296756f31c7cdc03d # v1.0.0\n with:\n restore-cache: false\n tools: just,cargo-shear@1,dprint\n components: rustfmt\n\n - name: Restore dprint plugin cache\n id: cache-restore\n uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3\n with:\n key: dprint-${{ hashFiles('dprint.json') }}\n path: ~/.cache/dprint\n\n - run: just fmt\n\n - uses: autofix-ci/action@2891949f3779a1cafafae1523058501de3d4e944 # v1.3.1\n with:\n fail-fast: false\n
dataset_sample\yaml\oxc-project_oxc\.github\workflows\autofix.yml
autofix.yml
YAML
1,208
0.8
0
0
python-kit
672
2024-11-10T20:20:55.756296
MIT
false
2873613704c5ec63116c129e46348cf8
# Benchmarks are sharded.\n#\n# Each benchmark (parser, transformer, etc) runs in parallel in a separate job.\n# Linter benchmarks are much slower to build and run than the rest, so linter benchmark\n# is built in 1 job, and then run on each fixture in parallel in separate jobs.\n#\n# See https://docs.codspeed.io/features/sharded-benchmarks\n\nname: Benchmark\n\npermissions: {}\n\non:\n workflow_dispatch:\n pull_request:\n types: [opened, synchronize]\n paths:\n - "crates/**/*.rs"\n - "tasks/benchmark/**/*.rs"\n - "tasks/common/**/*.rs"\n - "Cargo.lock"\n - "rust-toolchain.toml"\n - ".github/workflows/benchmark.yml"\n - "tasks/benchmark/codspeed/*.mjs"\n push:\n branches:\n - main\n paths:\n - "crates/**/*.rs"\n - "tasks/benchmark/**/*.rs"\n - "tasks/common/**/*.rs"\n - "Cargo.lock"\n - "rust-toolchain.toml"\n - ".github/workflows/benchmark.yml"\n - "tasks/benchmark/codspeed/*.mjs"\n\nconcurrency:\n group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}\n cancel-in-progress: true\n\ndefaults:\n run:\n shell: bash\n\njobs:\n # Build and run benchmarks for all components except linter\n benchmark:\n name: Benchmark\n runs-on: ubuntu-latest\n strategy:\n fail-fast: true\n matrix:\n component:\n - lexer\n - parser\n - transformer\n - isolated_declarations\n - semantic\n - minifier\n - codegen\n - formatter\n\n steps:\n - name: Checkout Branch\n uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1\n\n - uses: oxc-project/setup-rust@cd82e1efec7fef815e2c23d296756f31c7cdc03d # v1.0.0\n with:\n cache-key: benchmark-${{ matrix.component }}\n save-cache: ${{ github.ref_name == 'main' }}\n tools: cargo-codspeed\n\n - name: Build benchmark\n env:\n RUSTFLAGS: "-C debuginfo=1 -C strip=none -g --cfg codspeed"\n run: |\n cargo build --release -p oxc_benchmark --bench ${{ matrix.component }} \\n --no-default-features --features ${{ matrix.component }} --features codspeed\n mkdir -p target/codspeed/instrumentation/oxc_benchmark\n mv target/release/deps/${{ matrix.component }}-* target/codspeed/instrumentation/oxc_benchmark\n rm target/codspeed/instrumentation/oxc_benchmark/*.d\n\n - name: Run benchmark\n uses: CodSpeedHQ/action@0010eb0ca6e89b80c88e8edaaa07cfe5f3e6664d # v3.5.0\n timeout-minutes: 30\n with:\n token: ${{ secrets.CODSPEED_TOKEN }}\n run: cargo codspeed run\n\n # Build linter benchmark.\n # Linter benchmarks are much slower than the rest, so we run each fixture in a separate job.\n # But only build the linter benchmark once.\n build-linter:\n name: Build Linter Benchmark\n runs-on: ubuntu-latest\n steps:\n - name: Checkout Branch\n uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1\n\n - uses: oxc-project/setup-rust@cd82e1efec7fef815e2c23d296756f31c7cdc03d # v1.0.0\n with:\n cache-key: benchmark-linter\n save-cache: ${{ github.ref_name == 'main' }}\n\n - name: Build benchmark\n env:\n RUSTFLAGS: "-C debuginfo=1 -C strip=none -g --cfg codspeed"\n run: |\n cargo build --release -p oxc_benchmark --bench linter \\n --no-default-features --features linter --features codspeed\n mkdir -p target/codspeed/instrumentation/oxc_benchmark\n mv target/release/deps/linter-* target/codspeed/instrumentation/oxc_benchmark\n rm target/codspeed/instrumentation/oxc_benchmark/*.d\n\n - name: Upload Binary\n uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2\n with:\n if-no-files-found: error\n name: benchmark-linter\n path: ./target/codspeed/instrumentation/oxc_benchmark\n retention-days: 1\n\n # Run linter benchmarks. Each fixture in a separate job.\n benchmark-linter:\n name: Benchmark linter\n needs: build-linter\n runs-on: ubuntu-latest\n strategy:\n fail-fast: true\n matrix:\n fixture:\n - 0\n - 1\n\n steps:\n - name: Checkout Branch\n uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1\n\n - name: Download Binary\n uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1\n with:\n name: benchmark-linter\n path: ./target/codspeed/instrumentation/oxc_benchmark\n\n - name: Fix permission loss\n run: |\n ls ./target/codspeed/instrumentation/oxc_benchmark\n chmod +x ./target/codspeed/instrumentation/oxc_benchmark/*\n\n - name: Install codspeed\n uses: taiki-e/install-action@09dc018eee06ae1c9e0409786563f534210ceb83 # v2.49.50\n with:\n tool: cargo-codspeed\n\n - name: Run benchmark\n uses: CodSpeedHQ/action@0010eb0ca6e89b80c88e8edaaa07cfe5f3e6664d # v3.5.0\n timeout-minutes: 30\n env:\n FIXTURE: ${{ matrix.fixture }}\n with:\n token: ${{ secrets.CODSPEED_TOKEN }}\n run: cargo codspeed run\n
dataset_sample\yaml\oxc-project_oxc\.github\workflows\benchmark.yml
benchmark.yml
YAML
5,224
0.8
0.012346
0.084507
vue-tools
431
2025-01-23T12:56:37.786305
Apache-2.0
false
9ada1c413e795077c7b5be727f65da65
# Run `cargo bloat` for finding out what takes most of the space in your executable.\n\nname: Cargo Bloat\n\npermissions: {}\n\non:\n workflow_dispatch:\n\nconcurrency:\n group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}\n cancel-in-progress: true\n\njobs:\n bloat:\n name: Cargo Bloat\n runs-on: ubuntu-latest\n steps:\n - uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1\n\n - uses: oxc-project/setup-rust@cd82e1efec7fef815e2c23d296756f31c7cdc03d # v1.0.0\n with:\n cache-key: warm\n tools: cargo-bloat\n\n - name: Run\n env:\n RUSTFLAGS: "-C debuginfo=2 -C strip=none"\n shell: bash\n run: |\n echo "# Bloat Summary" >> $GITHUB_STEP_SUMMARY\n echo "" >> $GITHUB_STEP_SUMMARY\n\n echo "## Largest functions" >> $GITHUB_STEP_SUMMARY\n echo '```' >> $GITHUB_STEP_SUMMARY\n echo "" >> $GITHUB_STEP_SUMMARY\n cargo bloat --release -p oxlint --features allocator -n 15 >> $GITHUB_STEP_SUMMARY\n echo "" >> $GITHUB_STEP_SUMMARY\n echo '```' >> $GITHUB_STEP_SUMMARY\n\n echo "## Largest crates" >> $GITHUB_STEP_SUMMARY\n echo '```' >> $GITHUB_STEP_SUMMARY\n echo "" >> $GITHUB_STEP_SUMMARY\n cargo bloat --release -p oxlint --features allocator --crates -n 15 >> $GITHUB_STEP_SUMMARY\n echo "" >> $GITHUB_STEP_SUMMARY\n echo '```' >> $GITHUB_STEP_SUMMARY\n
dataset_sample\yaml\oxc-project_oxc\.github\workflows\bloat.yml
bloat.yml
YAML
1,479
0.95
0.021739
0.027027
awesome-app
809
2024-01-11T23:58:27.901923
BSD-3-Clause
false
bba0364ec3aef4a39b69552794efb967
# Run `cargo-llvm-lines` for finding out bloat generic functions\n\nname: Cargo LLVM Lines\n\npermissions: {}\n\non:\n workflow_dispatch:\n\nconcurrency:\n group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}\n cancel-in-progress: true\n\njobs:\n bloat:\n name: Cargo LLVM Lines\n runs-on: ubuntu-latest\n steps:\n - name: Checkout\n uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1\n\n - uses: oxc-project/setup-rust@cd82e1efec7fef815e2c23d296756f31c7cdc03d # v1.0.0\n\n - name: Install cargo-llvm-lines\n uses: taiki-e/install-action@09dc018eee06ae1c9e0409786563f534210ceb83 # v2.49.50\n with:\n tool: cargo-llvm-lines\n\n - name: Run\n run: cargo llvm-lines -p oxc_parser | head -20 > $GITHUB_STEP_SUMMARY\n
dataset_sample\yaml\oxc-project_oxc\.github\workflows\cargo_llvm_lines.yml
cargo_llvm_lines.yml
YAML
812
0.95
0.033333
0.045455
awesome-app
47
2024-03-28T17:59:46.230978
Apache-2.0
false
722fa0d298162f3fd1c33ea65cec0a37
name: CI\n\npermissions: {}\n\non:\n workflow_dispatch:\n pull_request:\n types: [opened, synchronize]\n paths-ignore:\n - "**/*.md"\n - "**/*.yml"\n - "!.github/workflows/ci.yml"\n - "!.github/actions/clone-submodules/action.yml"\n push:\n branches:\n - main\n paths-ignore:\n - "**/*.md"\n - "**/*.yml"\n - "!.github/workflows/ci.yml"\n - "!.github/actions/clone-submodules/action.yml"\n\nconcurrency:\n group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}\n cancel-in-progress: ${{ github.ref_name != 'main' }}\n\njobs:\n test:\n name: Test\n strategy:\n fail-fast: false\n matrix:\n include:\n # - os: windows-latest # See `test-windows` job below\n - os: ubuntu-latest\n - os: macos-latest\n runs-on: ${{ matrix.os }}\n steps:\n - uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1\n - uses: oxc-project/setup-rust@cd82e1efec7fef815e2c23d296756f31c7cdc03d # v1.0.0\n with:\n # warm cache factory for all other CI jobs\n # cache `target` directory to avoid download crates\n save-cache: ${{ github.ref_name == 'main' }}\n cache-key: warm\n - run: cargo ck\n - run: cargo test --all-features\n - run: git diff --exit-code # Must commit everything\n\n test-windows:\n name: Test (windows-latest)\n if: ${{ github.ref_name == 'main' }}\n runs-on: windows-latest\n steps:\n - uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1\n # Unsung heros of the internet, who led me here to speed up window's slowness:\n # https://github.com/actions/cache/issues/752#issuecomment-1847036770\n # https://github.com/astral-sh/uv/blob/502e04200d52de30d3159894833b3db4f0d6644d/.github/workflows/ci.yml#L158\n - uses: samypr100/setup-dev-drive@b9079d2711b01ed39de859c79c96484bfd80e078 # v3.4.1\n with:\n workspace-copy: true\n drive-size: 8GB\n drive-format: NTFS\n env-mapping: |\n CARGO_HOME,{{ DEV_DRIVE }}/.cargo\n RUSTUP_HOME,{{ DEV_DRIVE }}/.rustup\n\n - name: Install Rust\n working-directory: ${{ env.DEV_DRIVE_WORKSPACE }}\n shell: bash\n run: |\n # This `awk` command will find the value of our Minimum Supported Rust Version and store it as `MSRV`.\n # NOTE: this will fail if there are any other items named `rust-version`. We assume there is only one in our `Cargo.toml`.\n MSRV=$(awk -F'=' '/rust-version/ {gsub(/[" ]/, "", $2); printf "%s", ($2 + "")}' Cargo.toml)\n # Set profile to minimal and channel to our Minimum Supported Rust Version.\n # Running our tests on this channel ensures that our code uses APIs that are supported in our `MSRV`.\n sed -i -e 's/profile = "default"/profile = "minimal"/g' -e "s/channel = .*/channel = \"$MSRV\"/g" rust-toolchain.toml\n rustup set profile minimal\n rustup show\n git restore .\n\n - uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8\n with:\n workspaces: ${{ env.DEV_DRIVE_WORKSPACE }}\n save-if: ${{ github.ref_name == 'main' }}\n shared-key: windows-latest\n\n - run: cargo test --all-features # cargo ck # no need to `cargo ck` because it's already checked in linux\n working-directory: ${{ env.DEV_DRIVE_WORKSPACE }}\n shell: bash\n\n test-wasm32-wasip1-threads:\n name: Test wasm32-wasip1-threads\n runs-on: ubuntu-latest\n steps:\n - uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1\n - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2\n id: filter\n with:\n filters: |\n src:\n - '!crates/oxc_linter/**'\n - uses: oxc-project/setup-rust@cd82e1efec7fef815e2c23d296756f31c7cdc03d # v1.0.0\n if: steps.filter.outputs.src == 'true'\n with:\n cache-key: wasi\n save-cache: ${{ github.ref_name == 'main' }}\n - uses: ./.github/actions/pnpm\n if: steps.filter.outputs.src == 'true'\n - name: Build\n if: steps.filter.outputs.src == 'true'\n run: |\n rustup target add wasm32-wasip1-threads\n pnpm napi build --target wasm32-wasip1-threads --cwd ./napi/parser\n pnpm napi build --target wasm32-wasip1-threads --cwd ./napi/transform\n pnpm napi build --target wasm32-wasip1-threads --cwd ./napi/minify\n git diff --exit-code # Must commit everything\n - name: Test wasi in browser\n if: steps.filter.outputs.src == 'true'\n working-directory: napi/parser\n run: |\n rm -rf *.wasm\n pnpm exec playwright install chromium\n pnpm run build-wasi\n pnpm run build-npm-dir\n pnpm run test-browser\n pnpm build-browser-bundle --npmDir npm-dir\n\n test-napi:\n name: Test NAPI\n runs-on: ubuntu-latest\n steps:\n - uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1\n - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2\n id: filter\n with:\n predicate-quantifier: "every"\n filters: |\n src:\n - '!crates/oxc_linter/**'\n - '!crates/oxc_language_server/**'\n - '!editors/**'\n - uses: ./.github/actions/clone-submodules\n if: steps.filter.outputs.src == 'true'\n - uses: oxc-project/setup-rust@cd82e1efec7fef815e2c23d296756f31c7cdc03d # v1.0.0\n if: steps.filter.outputs.src == 'true'\n with:\n cache-key: napi\n save-cache: ${{ github.ref_name == 'main' }}\n - uses: ./.github/actions/pnpm\n if: steps.filter.outputs.src == 'true'\n - if: steps.filter.outputs.src == 'true'\n name: Run tests in workspace\n run: |\n rustup target add wasm32-wasip1-threads\n pnpm run build\n pnpm run test\n - if: steps.filter.outputs.src == 'true'\n name: Run e2e tests\n run: |\n pnpm install --frozen-lockfile\n pnpm run test\n working-directory: tasks/e2e\n - if: steps.filter.outputs.src == 'true'\n run: |\n git diff --exit-code # Must commit everything\n\n typos:\n name: Spell Check\n runs-on: ubuntu-latest\n steps:\n - uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1\n - uses: crate-ci/typos@b1a1ef3893ff35ade0cfa71523852a49bfd05d19 # v1.31.1\n with:\n files: .\n\n lint:\n name: Clippy\n runs-on: ubuntu-latest\n steps:\n - uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1\n - uses: oxc-project/setup-rust@cd82e1efec7fef815e2c23d296756f31c7cdc03d # v1.0.0\n with:\n save-cache: ${{ github.ref_name == 'main' }}\n cache-key: clippy\n components: clippy\n - run: cargo lint -- -D warnings\n - run: cargo lint --profile dev-no-debug-assertions -- -D warnings\n # Waiting for https://github.com/rust-lang/rust-clippy/pull/13435\n - name: Check Char and Byte Offset\n run: |\n npm i @ast-grep/cli -g\n output=$(sg -p '$A.chars().enumerate()' -r '$A.char_indices()' -l rs)\n echo "Output: $output"\n if [ -n "$output" ]; then\n echo "Error: Unexpected output detected"\n exit 1\n fi\n\n doc:\n name: Doc\n runs-on: ubuntu-latest\n steps:\n - uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1\n - uses: oxc-project/setup-rust@cd82e1efec7fef815e2c23d296756f31c7cdc03d # v1.0.0\n with:\n cache-key: warm\n components: rust-docs\n - run: RUSTDOCFLAGS='-D warnings' cargo doc --no-deps --document-private-items\n\n conformance:\n name: Conformance\n runs-on: ubuntu-latest\n steps:\n - uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1\n\n - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2\n id: filter\n with:\n predicate-quantifier: "every"\n filters: |\n src:\n - '!.github/**'\n - '!.vscode/**'\n - '!apps/**'\n - '!editors/**'\n - '!napi/**'\n - '!npm/**'\n - '!crates/oxc_linter/**'\n - '!crates/oxc_language_server/**'\n - '!tasks/**'\n\n - uses: ./.github/actions/clone-submodules\n if: steps.filter.outputs.src == 'true'\n\n - uses: ./.github/actions/pnpm\n if: steps.filter.outputs.src == 'true'\n\n - uses: oxc-project/setup-rust@cd82e1efec7fef815e2c23d296756f31c7cdc03d # v1.0.0\n if: steps.filter.outputs.src == 'true'\n with:\n cache-key: conformance\n save-cache: ${{ github.ref_name == 'main' }}\n tools: just\n\n - name: Check Conformance\n if: steps.filter.outputs.src == 'true'\n run: |\n just update-transformer-fixtures\n just coverage\n git diff --exit-code\n\n minification:\n name: Minification Size\n runs-on: ubuntu-latest\n steps:\n - uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1\n\n - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2\n id: filter\n with:\n filters: |\n src:\n - '.github/workflows/ci.yml'\n - 'crates/oxc_minifier/**'\n - 'crates/oxc_codegen/**'\n - 'tasks/minsize/**'\n\n - uses: oxc-project/setup-rust@cd82e1efec7fef815e2c23d296756f31c7cdc03d # v1.0.0\n if: steps.filter.outputs.src == 'true'\n with:\n cache-key: minsize\n save-cache: ${{ github.ref_name == 'main' }}\n\n - name: Check minification size\n if: steps.filter.outputs.src == 'true'\n run: |\n cargo minsize\n git diff --exit-code\n\n ast_changes:\n name: AST Changes\n runs-on: ubuntu-latest\n steps:\n - uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1\n\n - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2\n id: filter\n with:\n filters: ".github/generated/ast_changes_watch_list.yml"\n\n - uses: oxc-project/setup-rust@cd82e1efec7fef815e2c23d296756f31c7cdc03d # v1.0.0\n if: steps.filter.outputs.src == 'true'\n with:\n components: rustfmt\n tools: dprint\n cache-key: ast_changes\n save-cache: ${{ github.ref_name == 'main' }}\n\n - name: Restore dprint plugin cache\n uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3\n with:\n key: dprint-${{ hashFiles('dprint.json') }}\n path: ~/.cache/dprint\n\n - name: Check AST Changes\n if: steps.filter.outputs.src == 'true'\n run: |\n cargo run -p oxc_ast_tools\n git diff --exit-code ||\n (echo 'AST changes caused the "generated" code to get outdated. Have you forgotten to run the `just ast` command and/or commit generated codes?' && exit 1)\n
dataset_sample\yaml\oxc-project_oxc\.github\workflows\ci.yml
ci.yml
YAML
11,221
0.8
0.07717
0.038869
react-lib
192
2025-05-28T17:23:20.602259
Apache-2.0
false
2dbca5aa292d154fe51494e0211c2381
name: GitHub Actions Security Analysis\n\npermissions: {}\n\non:\n workflow_dispatch:\n pull_request:\n types: [opened, synchronize]\n paths:\n - ".github/workflows/**"\n push:\n branches:\n - main\n paths:\n - ".github/workflows/**"\n\njobs:\n zizmor:\n name: zizmor\n runs-on: ubuntu-latest\n permissions:\n security-events: write\n steps:\n - uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1\n\n - uses: taiki-e/install-action@09dc018eee06ae1c9e0409786563f534210ceb83 # v2.49.50\n with:\n tool: zizmor\n\n - name: Run zizmor\n run: zizmor --format sarif . > results.sarif\n env:\n GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n\n - name: Upload SARIF file\n uses: github/codeql-action/upload-sarif@45775bd8235c68ba998cffa5171334d58593da47 # v3.28.15\n with:\n sarif_file: results.sarif\n category: zizmor\n
dataset_sample\yaml\oxc-project_oxc\.github\workflows\ci_security.yml
ci_security.yml
YAML
933
0.8
0
0
awesome-app
846
2024-11-24T13:21:20.865263
MIT
false
6ca8c35b10ab7804ce08bd52ba05e645
name: CI VSCode\n\npermissions: {}\n\non:\n workflow_dispatch:\n pull_request:\n types: [opened, synchronize]\n paths:\n - "pnpm-lock.yaml"\n - "crates/oxc_language_server/**"\n - "editors/vscode/**"\n - ".github/workflows/ci_vscode.yml"\n push:\n branches:\n - main\n paths:\n - "pnpm-lock.yaml"\n - "crates/oxc_language_server/**"\n - "editors/vscode/**"\n - ".github/workflows/ci_vscode.yml"\n\nconcurrency:\n group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}\n cancel-in-progress: ${{ github.ref_name != 'main' }}\n\njobs:\n lint:\n name: Lint & Typecheck\n runs-on: ubuntu-latest\n steps:\n - uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1\n - uses: ./.github/actions/pnpm\n\n - name: Lint VSCode\n working-directory: editors/vscode\n run: pnpm run lint\n\n - name: Type-Check VSCode\n working-directory: editors/vscode\n run: pnpm run type-check\n\n test:\n name: Test\n runs-on: ubuntu-latest\n steps:\n - uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1\n - uses: ./.github/actions/pnpm\n\n - name: Build Language Server\n working-directory: editors/vscode\n run: pnpm run server:build:debug\n\n - name: Compile VSCode\n working-directory: editors/vscode\n run: pnpm run compile\n\n - name: Test VSCode\n working-directory: editors/vscode\n run: xvfb-run -a pnpm run test\n
dataset_sample\yaml\oxc-project_oxc\.github\workflows\ci_vscode.yml
ci_vscode.yml
YAML
1,516
0.8
0
0
python-kit
183
2025-06-07T14:57:19.192156
GPL-3.0
false
af773037bb9e084ccc20d3a601a797b3
# Run cargo-llvm-cov and upload to codecov.io\n\nname: Code Coverage\n\npermissions: {}\n\non:\n workflow_dispatch:\n push:\n branches:\n - main\n paths:\n - "**.rs"\n - ".github/workflows/codecov.yml"\n\nconcurrency:\n group: ${{ github.workflow }}-${{ github.ref }}\n cancel-in-progress: ${{ github.ref_name != 'main' }}\n\njobs:\n coverage:\n name: Code Coverage\n runs-on: ubuntu-latest\n steps:\n - name: Checkout\n uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1\n\n - name: Clone submodules\n uses: ./.github/actions/clone-submodules\n\n - uses: oxc-project/setup-rust@cd82e1efec7fef815e2c23d296756f31c7cdc03d # v1.0.0\n with:\n cache-key: codecov\n save-cache: ${{ github.ref_name == 'main' }}\n tools: cargo-llvm-cov\n components: llvm-tools-preview\n\n - name: Run\n env:\n # Increase stack size to 10MB, avoid `oxc_formatter` from stack overflowing when printing long assignment expressions.\n RUST_MIN_STACK: 104857600\n run: cargo codecov --lcov --output-path lcov.info\n\n - name: Upload Artifact\n uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2\n with:\n name: codecov\n path: lcov.info\n\n # codecov often fails, use another workflow for retry\n upload-codecov:\n name: Upload coverage file\n runs-on: ubuntu-latest\n needs: coverage\n # Check if the event is not triggered by a fork by checking whether CODECOV_TOKEN is set\n env:\n CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}\n steps:\n - name: Checkout\n if: env.CODECOV_TOKEN\n uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1\n\n - name: Download coverage file\n if: env.CODECOV_TOKEN\n uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1\n with:\n name: codecov\n\n - name: Upload to codecov.io\n if: env.CODECOV_TOKEN\n uses: codecov/codecov-action@ad3126e916f78f00edff4ed0317cf185271ccc2d # v5.4.2\n with:\n token: ${{ secrets.CODECOV_TOKEN }}\n fail_ci_if_error: true\n files: lcov.info\n
dataset_sample\yaml\oxc-project_oxc\.github\workflows\codecov.yml
codecov.yml
YAML
2,227
0.8
0.066667
0.063492
vue-tools
346
2024-10-03T00:08:16.541379
GPL-3.0
false
f45ec1eea09cc4ddcddbdc959d7eb827
name: Cargo Deny\n\npermissions: {}\n\non:\n workflow_dispatch:\n pull_request:\n types: [opened, synchronize]\n paths:\n - "Cargo.lock"\n - "deny.toml"\n - ".github/workflows/deny.yml"\n push:\n branches:\n - main\n paths:\n - "Cargo.lock"\n - "deny.toml"\n - ".github/workflows/deny.yml"\n\nconcurrency:\n group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}\n cancel-in-progress: ${{ github.ref_name != 'main' }}\n\njobs:\n deny:\n name: Cargo Deny\n runs-on: ubuntu-latest\n steps:\n - uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1\n\n - uses: oxc-project/setup-rust@cd82e1efec7fef815e2c23d296756f31c7cdc03d # v1.0.0\n with:\n restore-cache: false\n tools: cargo-deny\n\n - run: cargo deny check\n
dataset_sample\yaml\oxc-project_oxc\.github\workflows\deny.yml
deny.yml
YAML
831
0.8
0
0
awesome-app
291
2025-04-07T20:02:28.584824
GPL-3.0
false
739972b14b3c29302a34908ec98848c0
name: Save dprint plugin cache\n\npermissions: {}\n\non:\n workflow_dispatch:\n push:\n branches:\n - main\n paths:\n - "dprint.json"\n - ".github/workflows/dprint.yml"\n\njobs:\n cache:\n runs-on: ubuntu-latest\n steps:\n - uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1\n\n - uses: taiki-e/install-action@09dc018eee06ae1c9e0409786563f534210ceb83 # v2.49.50\n with:\n tool: dprint\n\n - run: dprint check\n\n - name: Save dprint plugin cache\n uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3\n with:\n key: dprint-${{ hashFiles('dprint.json') }}\n path: ~/.cache/dprint\n
dataset_sample\yaml\oxc-project_oxc\.github\workflows\dprint.yml
dprint.yml
YAML
700
0.8
0
0
node-utils
194
2023-10-02T10:21:43.415574
MIT
false
7f50e853b12444d181301bdd13cb82ea
name: Check Links\n\npermissions: {}\n\non:\n workflow_dispatch:\n push:\n branches:\n - main\n paths:\n - "**/*.md"\n - "**/*.html"\n - "!**/fixtures/**"\n pull_request:\n types: [opened, synchronize]\n paths:\n - "**/*.md"\n - "**/*.html"\n - "!**/fixtures/**"\n\nconcurrency:\n group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}\n cancel-in-progress: true\n\njobs:\n check-links:\n name: Check Links\n runs-on: ubuntu-latest\n steps:\n - name: Checkout\n uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1\n\n - name: Check Links\n uses: lycheeverse/lychee-action@1d97d84f0bc547f7b25f4c2170d87d810dc2fb2c # v2.4.0\n with:\n # For parameter description, see https://github.com/lycheeverse/lychee#commandline-parameters\n # Accept 429 for now due to GitHub rate limit.\n # See https://github.com/lycheeverse/lychee/issues/634\n # Exclude twitter links, see https://github.com/lycheeverse/lychee/issues/1108.\n # Ideally this is built in, by https://github.com/lycheeverse/lychee/pull/1147.\n # Not sure why it doesn't work, exclude it manually.\n args: --accept 200,429 --verbose --no-progress --exclude 'https://twitter\.com/*' .\n # Fail action on broken links\n fail: true\n
dataset_sample\yaml\oxc-project_oxc\.github\workflows\link_check.yml
link_check.yml
YAML
1,370
0.8
0.022727
0.179487
react-lib
689
2024-10-29T13:32:36.484795
MIT
false
67dfd77fee9e72ea0796aa26d46d20bc
name: Update implementation status of all linter plugins\n\npermissions: {}\n\non:\n push:\n branches:\n - main\n paths:\n - ".github/workflows/lint_rules.yml"\n - "crates/oxc_linter/src/rules.rs"\n - "crates/oxc_linter/src/utils/mod.rs" # here are the remaps for some plugins\n - "tasks/lint_rules/**"\n\njobs:\n lint_rules:\n runs-on: ubuntu-latest\n permissions:\n contents: read\n issues: write\n steps:\n - name: Checkout Branch\n uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1\n\n - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0\n with:\n node-version-file: .node-version\n\n - name: Install latest plugins\n working-directory: tasks/lint_rules\n run: npm install\n\n - name: Run task\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n run: node ./tasks/lint_rules --update\n
dataset_sample\yaml\oxc-project_oxc\.github\workflows\lint_rules.yml
lint_rules.yml
YAML
941
0.8
0.027778
0
python-kit
401
2024-09-03T19:54:30.713071
GPL-3.0
false
90fd69a1569aad7ad3ce5597551911b6
name: Miri\n\npermissions: {}\n\non:\n workflow_dispatch:\n pull_request:\n types: [opened, synchronize]\n paths:\n - "crates/oxc_allocator/**"\n - "crates/oxc_ast/src/utf8_to_utf16.rs"\n - "crates/oxc_ast/src/generated/utf8_to_utf16_converter.rs"\n - "crates/oxc_data_structures/**"\n - "crates/oxc_parser/**"\n - "crates/oxc_traverse/**"\n - ".github/workflows/miri.yml"\n push:\n branches:\n - main\n paths:\n - "crates/oxc_allocator/**"\n - "crates/oxc_ast/src/utf8_to_utf16.rs"\n - "crates/oxc_ast/src/generated/utf8_to_utf16_converter.rs"\n - "crates/oxc_data_structures/**"\n - "crates/oxc_parser/**"\n - "crates/oxc_traverse/**"\n - ".github/workflows/miri.yml"\n\nconcurrency:\n group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}\n cancel-in-progress: true\n\njobs:\n miri:\n name: Miri\n runs-on: ubuntu-latest\n steps:\n - name: Checkout\n uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1\n\n - uses: oxc-project/setup-rust@cd82e1efec7fef815e2c23d296756f31c7cdc03d # v1.0.0\n with:\n cache-key: miri\n save-cache: ${{ github.ref_name == 'main' }}\n\n - name: Install Miri\n run: |\n rustup toolchain install nightly --component miri\n rustup override set nightly\n cargo miri setup\n\n - name: Test with Miri\n run: |\n cargo miri test -p oxc_ast --all-features\n cargo miri test -p oxc_data_structures --all-features\n cargo miri test -p oxc_parser\n cargo miri test -p oxc_transformer\n
dataset_sample\yaml\oxc-project_oxc\.github\workflows\miri.yml
miri.yml
YAML
1,637
0.8
0
0
react-lib
982
2024-02-14T04:13:02.887177
BSD-3-Clause
false
e874bb6e9505e5bfa8b38289e0e1bffa
name: Check PR\n\npermissions: {}\n\non:\n pull_request_target: # zizmor: ignore[dangerous-triggers]\n types:\n - opened\n - edited\n - synchronize\n\njobs:\n pr:\n if: github.repository == 'oxc-project/oxc'\n name: Label and Check PR Title\n permissions:\n contents: read\n pull-requests: write\n runs-on: ubuntu-latest\n steps:\n - uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1\n\n - uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5\n\n - name: Validate PR title\n id: pr-title\n uses: amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017 # v5.5.3\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n with:\n requireScope: true\n types: |\n build\n chore\n ci\n docs\n feat\n fix\n perf\n refactor\n release\n revert\n style\n test\n\n - name: Get category label from PR title\n id: get-category\n env:\n PR_TYPE: ${{ steps.pr-title.outputs.type }}\n run: |\n case "$PR_TYPE" in\n "feat")\n CATEGORY="C-enhancement"\n ;;\n "fix")\n CATEGORY="C-bug"\n ;;\n "test")\n CATEGORY="C-test"\n ;;\n "refactor" | "chore" | "style")\n CATEGORY="C-cleanup"\n ;;\n "docs")\n CATEGORY="C-docs"\n ;;\n "perf")\n CATEGORY="C-performance"\n ;;\n *)\n CATEGORY=""\n ;;\n esac\n echo "CATEGORY=$CATEGORY" >> $GITHUB_OUTPUT\n\n - name: Add category label\n uses: actions-ecosystem/action-add-labels@18f1af5e3544586314bbe15c0273249c770b2daf # v1.1.3\n if: ${{ steps.get-category.outputs.CATEGORY != '' }}\n with:\n labels: ${{ steps.get-category.outputs.CATEGORY }}\n
dataset_sample\yaml\oxc-project_oxc\.github\workflows\pr.yml
pr.yml
YAML
2,049
0.95
0.025
0.013699
awesome-app
470
2023-07-10T20:25:46.462337
BSD-3-Clause
false
dfffe6c955ccda9a7293e64a1dc7683a
name: Prepare Release Crates\n\npermissions: {}\n\non:\n workflow_dispatch:\n\nconcurrency:\n group: ${{ github.workflow }}-${{ github.ref }}\n cancel-in-progress: true\n\njobs:\n check:\n name: Check\n runs-on: ubuntu-latest\n steps:\n - uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1\n - uses: oxc-project/setup-rust@cd82e1efec7fef815e2c23d296756f31c7cdc03d # v1.0.0\n with:\n cache-key: warm\n tools: cargo-release-oxc\n - run: cargo ck\n - run: cargo release-oxc publish --release crates --dry-run\n\n prepare:\n needs: check\n name: Prepare Release Crates\n uses: ./.github/workflows/reusable_prepare_release.yml\n with:\n name: crates\n secrets:\n OXC_BOT_PAT: ${{ secrets.OXC_BOT_PAT }}\n\n ecosystem-ci:\n needs: prepare\n name: Trigger Monitor Oxc\n runs-on: ubuntu-latest\n permissions:\n issues: write\n pull-requests: write\n steps:\n - uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1\n\n - uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4\n id: comment\n with:\n token: ${{ secrets.GITHUB_TOKEN }}\n issue-number: ${{ needs.prepare.outputs.pull-request-number }}\n body: Triggering Monitor Oxc https://github.com/oxc-project/monitor-oxc/actions/workflows/ci.yml\n\n - uses: benc-uk/workflow-dispatch@e2e5e9a103e331dad343f381a29e654aea3cf8fc # v1.2.4\n with:\n repo: oxc-project/monitor-oxc\n workflow: ci.yml\n token: ${{ secrets.OXC_BOT_PAT }}\n ref: main\n inputs: '{ "issue-number": "${{ needs.prepare.outputs.pull-request-number }}", "comment-id": "${{ steps.comment.outputs.comment-id }}" }'\n
dataset_sample\yaml\oxc-project_oxc\.github\workflows\prepare_release_crates.yml
prepare_release_crates.yml
YAML
1,777
0.8
0
0
awesome-app
984
2023-09-12T06:41:57.150261
MIT
false
54ceb2000a195c4af94384d664a4ba56
name: Prepare Release Oxlint\n\npermissions: {}\n\non:\n workflow_dispatch:\n push:\n branches:\n - trigger-other-workflow\n\nconcurrency:\n group: ${{ github.workflow }}-${{ github.ref }}\n cancel-in-progress: true\n\njobs:\n prepare:\n name: Prepare Release Oxlint\n uses: ./.github/workflows/reusable_prepare_release.yml\n with:\n name: oxlint\n secrets:\n OXC_BOT_PAT: ${{ secrets.OXC_BOT_PAT }}\n\n ecosystem-ci:\n needs: prepare\n name: Trigger Ecosystem CI\n runs-on: ubuntu-latest\n permissions:\n pull-requests: write\n contents: write\n steps:\n - uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1\n\n - uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4\n id: comment\n with:\n token: ${{ secrets.GITHUB_TOKEN }}\n issue-number: ${{ needs.prepare.outputs.pull-request-number }}\n body: Triggering Ecosystem CI https://github.com/oxc-project/oxlint-ecosystem-ci/actions/workflows/ci.yml\n\n - uses: benc-uk/workflow-dispatch@e2e5e9a103e331dad343f381a29e654aea3cf8fc # v1.2.4\n with:\n repo: oxc-project/oxlint-ecosystem-ci\n workflow: ci.yml\n token: ${{ secrets.OXC_BOT_PAT }}\n ref: main\n inputs: '{ "issue-number": "${{ needs.prepare.outputs.pull-request-number }}", "comment-id": "${{ steps.comment.outputs.comment-id }}" }'\n\n website:\n needs: prepare\n name: Update oxc.rs\n runs-on: ubuntu-latest\n permissions:\n actions: write\n steps:\n - uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1\n - uses: benc-uk/workflow-dispatch@e2e5e9a103e331dad343f381a29e654aea3cf8fc # v1.2.4\n with:\n repo: oxc-project/oxc-project.github.io\n workflow: release.yml\n token: ${{ secrets.OXC_BOT_PAT }}\n ref: main\n inputs: '{ "issue-number": "${{ needs.prepare.outputs.pull-request-number }}", "version": "${{ needs.prepare.outputs.version }}" }'\n
dataset_sample\yaml\oxc-project_oxc\.github\workflows\prepare_release_oxlint.yml
prepare_release_oxlint.yml
YAML
2,042
0.8
0
0
react-lib
581
2023-11-19T22:15:13.577401
MIT
false
d16d033014d340f1eb93adb07d5c9298
name: Release Crates\n\npermissions: {}\n\non:\n workflow_dispatch:\n push:\n branches:\n - main\n paths:\n - crates/oxc/Cargo.toml\n\nconcurrency:\n group: ${{ github.workflow }}-${{ github.ref }}\n cancel-in-progress: true\n\njobs:\n release:\n name: Release crates\n runs-on: ubuntu-latest\n permissions:\n contents: write\n actions: write\n steps:\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n with:\n token: ${{ secrets.OXC_BOT_PAT }} # required for git tag push\n persist-credentials: true\n\n - uses: oxc-project/setup-rust@cd82e1efec7fef815e2c23d296756f31c7cdc03d # v1.0.0\n with:\n cache-key: warm\n tools: cargo-release-oxc\n\n - run: cargo ck\n\n - name: Run\n id: run\n env:\n CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}\n run: |\n cargo release-oxc publish --release crates\n echo "TAG=$(cat ./target/OXC_VERSION)" >> $GITHUB_OUTPUT\n\n - name: Tag and Push\n env:\n TAG_NAME: ${{ steps.run.outputs.TAG }}\n run: |\n git tag ${TAG_NAME}\n git push origin tag ${TAG_NAME}\n
dataset_sample\yaml\oxc-project_oxc\.github\workflows\release_crates.yml
release_crates.yml
YAML
1,189
0.95
0.02
0
vue-tools
857
2024-07-23T09:10:03.292074
MIT
false
2660afd573e0101aba0aee86be84c2bb
name: Release NAPI Minify\n\npermissions: {}\n\non:\n push:\n branches:\n - main\n paths:\n - napi/minify/package.json # Please only commit this file, so we don't need to wait for test CI to pass.\n\nconcurrency:\n group: ${{ github.workflow }}-${{ github.ref }}\n cancel-in-progress: true\n\njobs:\n release:\n name: Release NAPI Minify\n uses: ./.github/workflows/reusable_release_napi.yml\n with:\n name: minify\n secrets:\n NPM_TOKEN: ${{ secrets.NPM_TOKEN }}\n permissions:\n id-token: write # for `pnpm publish --provenance`\n
dataset_sample\yaml\oxc-project_oxc\.github\workflows\release_napi_minify.yml
release_napi_minify.yml
YAML
557
0.8
0.08
0
awesome-app
977
2024-09-15T14:45:22.115377
Apache-2.0
false
cb05173ff239f46987bde17cd68b27c9
name: Release NAPI Parser\n\npermissions: {}\n\non:\n push:\n branches:\n - main\n paths:\n - napi/parser/package.json # Please only commit this file, so we don't need to wait for test CI to pass.\n\nconcurrency:\n group: ${{ github.workflow }}-${{ github.ref }}\n cancel-in-progress: true\n\njobs:\n release:\n name: Release NAPI Parser\n uses: ./.github/workflows/reusable_release_napi.yml\n with:\n name: parser\n secrets:\n NPM_TOKEN: ${{ secrets.NPM_TOKEN }}\n permissions:\n id-token: write # for `pnpm publish --provenance`\n
dataset_sample\yaml\oxc-project_oxc\.github\workflows\release_napi_parser.yml
release_napi_parser.yml
YAML
557
0.8
0.08
0
vue-tools
714
2025-05-19T14:38:03.099303
Apache-2.0
false
e79a35c3209933a57b614614d0ae926d
name: Release NAPI Transform\n\npermissions: {}\n\non:\n push:\n branches:\n - main\n paths:\n - napi/transform/package.json # Please only commit this file, so we don't need to wait for test CI to pass.\n\nconcurrency:\n group: ${{ github.workflow }}-${{ github.ref }}\n cancel-in-progress: true\n\njobs:\n release:\n name: Release NAPI Transform\n uses: ./.github/workflows/reusable_release_napi.yml\n with:\n name: transform\n secrets:\n NPM_TOKEN: ${{ secrets.NPM_TOKEN }}\n permissions:\n id-token: write # for `pnpm publish --provenance`\n
dataset_sample\yaml\oxc-project_oxc\.github\workflows\release_napi_transform.yml
release_napi_transform.yml
YAML
569
0.8
0.08
0
python-kit
324
2024-10-19T21:03:48.895495
GPL-3.0
false
c666bd0e73b988e7453f7ac56eb1b579
name: Release Oxlint\n\npermissions: {}\n\non:\n workflow_dispatch:\n push:\n branches:\n - main\n paths:\n - npm/oxlint/package.json # Please only commit this file, so we don't need to wait for all the other CI jobs to finish.\n\nconcurrency:\n group: ${{ github.workflow }}-${{ github.ref }}\n cancel-in-progress: true\n\njobs:\n check:\n name: Check version\n runs-on: ubuntu-latest\n outputs:\n version_changed: ${{ steps.version.outputs.changed }}\n version: ${{ steps.version.outputs.version }}\n steps:\n - uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1\n\n - name: Check version changes\n uses: EndBug/version-check@36ff30f37c7deabe56a30caa043d127be658c425 # v2.1.5\n id: version\n with:\n static-checking: localIsNew\n file-url: https://unpkg.com/oxlint@latest/package.json\n file-name: npm/oxlint/package.json\n\n - name: Print version\n if: steps.version.outputs.changed == 'true'\n env:\n NEW_VERSION: ${{ steps.version.outputs.version }}\n run: |\n echo "Version change found! New version: ${NEW_VERSION}"\n\n build:\n needs: check\n if: needs.check.outputs.version_changed == 'true'\n strategy:\n matrix:\n include:\n - os: windows-latest\n target: x86_64-pc-windows-msvc\n code-target: win32-x64\n\n - os: windows-latest\n target: aarch64-pc-windows-msvc\n code-target: win32-arm64\n\n - os: ubuntu-latest\n target: x86_64-unknown-linux-gnu\n code-target: linux-x64-gnu\n\n - os: ubuntu-latest\n target: aarch64-unknown-linux-gnu\n code-target: linux-arm64-gnu\n\n - os: ubuntu-latest\n target: x86_64-unknown-linux-musl\n code-target: linux-x64-musl\n\n - os: ubuntu-latest\n target: aarch64-unknown-linux-musl\n code-target: linux-arm64-musl\n\n - os: macos-latest\n target: x86_64-apple-darwin\n code-target: darwin-x64\n\n - os: macos-latest\n target: aarch64-apple-darwin\n code-target: darwin-arm64\n\n name: Package ${{ matrix.code-target }}\n runs-on: ${{ matrix.os }}\n defaults:\n run:\n shell: bash\n env:\n OXC_VERSION: ${{ needs.check.outputs.version }}\n steps:\n - uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1\n\n - name: Install cross\n uses: taiki-e/install-action@09dc018eee06ae1c9e0409786563f534210ceb83 # v2.49.50\n with:\n tool: cross\n\n - name: Rust Cache\n uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8\n with:\n shared-key: release-${{ matrix.target }}\n\n - name: Add Rust Target\n run: rustup target add ${{ matrix.target }}\n\n - name: Build\n shell: bash\n env:\n CC: clang # for mimalloc\n run: |\n cross build --release -p oxlint --bin oxlint --features allocator --target=${{ matrix.target }}\n cross build --release -p oxc_language_server --bin oxc_language_server --target=${{ matrix.target }}\n\n # The binaries are zipped to fix permission loss https://github.com/actions/upload-artifact#permission-loss\n - name: Archive Binaries\n if: runner.os == 'Windows'\n run: |\n OXLINT_BIN_NAME=oxlint-${{ matrix.code-target }}\n mv target/${{ matrix.target }}/release/oxlint.exe $OXLINT_BIN_NAME.exe\n 7z a $OXLINT_BIN_NAME.zip $OXLINT_BIN_NAME.exe\n\n OXLS_BIN_NAME=oxc_language_server-${{ matrix.code-target }}\n mv target/${{ matrix.target }}/release/oxc_language_server.exe $OXLS_BIN_NAME.exe\n 7z a $OXLS_BIN_NAME.zip $OXLS_BIN_NAME.exe\n\n # The binaries are zipped to fix permission loss https://github.com/actions/upload-artifact#permission-loss\n - name: Archive Binaries\n if: runner.os != 'Windows'\n run: |\n OXLINT_BIN_NAME=oxlint-${{ matrix.code-target }}\n mv target/${{ matrix.target }}/release/oxlint $OXLINT_BIN_NAME\n tar czf $OXLINT_BIN_NAME.tar.gz $OXLINT_BIN_NAME\n\n OXLS_BIN_NAME=oxc_language_server-${{ matrix.code-target }}\n mv target/${{ matrix.target }}/release/oxc_language_server $OXLS_BIN_NAME\n tar czf $OXLS_BIN_NAME.tar.gz $OXLS_BIN_NAME\n\n - name: Upload Binary\n uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2\n with:\n if-no-files-found: error\n name: binaries-${{ matrix.code-target }}\n path: |\n *.zip\n *.tar.gz\n\n publish:\n name: Publish\n needs: [check, build]\n runs-on: ubuntu-latest\n permissions:\n contents: write # for softprops/action-gh-release@v1.3.1\n id-token: write # for `pnpm publish --provenance`\n steps:\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n with:\n fetch-depth: 0 # for changelog\n persist-credentials: false\n\n - uses: oxc-project/setup-rust@cd82e1efec7fef815e2c23d296756f31c7cdc03d # v1.0.0\n with:\n restore-cache: false\n tools: cargo-release-oxc\n\n - name: Run\n id: run\n run: |\n mkdir -p target\n cargo release-oxc changelog --release oxlint\n {\n echo 'CHANGELOG<<EOF'\n cat ./target/OXC_CHANGELOG\n echo EOF\n } >> $GITHUB_OUTPUT\n\n - uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1\n with:\n merge-multiple: true\n\n - name: Unzip\n uses: montudor/action-zip@0852c26906e00f8a315c704958823928d8018b28 # v1.0.0\n with:\n args: unzip -qq *.zip -d .\n\n - name: Untar\n run: ls *.gz | xargs -i tar xf {}\n\n - uses: ./.github/actions/pnpm\n\n - name: Generate npm packages\n run: |\n node npm/oxlint/scripts/generate-packages.mjs\n cat npm/oxlint/package.json\n for package in npm/oxlint*; do cat $package/package.json ; echo ; done\n\n - name: wait 3 minutes for packages to sync on npm\n run: sleep 180s\n\n - name: Publish npm packages as latest\n env:\n NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}\n # NOTE: The trailing slash on $package/ changes it to publishing the directory\n run: |\n for package in npm/oxlint*\n do\n pnpm publish $package/ --provenance --access public --no-git-checks\n echo '----'\n done\n\n - name: Create GitHub Release\n uses: softprops/action-gh-release@da05d552573ad5aba039eaac05058a918a7bf631 # v2.2.2\n with:\n body: ${{ steps.run.outputs.CHANGELOG }}\n draft: false\n files: oxlint-*\n name: oxlint v${{ needs.check.outputs.version }}\n tag_name: oxlint_v${{ needs.check.outputs.version }}\n fail_on_unmatched_files: true\n target_commitish: ${{ github.sha }}\n\n - name: wait 3 minutes for smoke test\n run: sleep 180s\n\n smoke:\n needs: [check, publish]\n strategy:\n matrix:\n include:\n - os: windows-latest\n - os: ubuntu-latest\n - os: ubuntu-latest\n container: node:18-alpine # musl\n - os: macos-latest\n name: Smoke Test ${{ matrix.os }} ${{ matrix.container }}\n runs-on: ${{ matrix.os }}\n container: ${{ matrix.container }}\n steps:\n - name: Test\n env:\n OXLINT_VERSION: ${{ needs.check.outputs.version}}\n run: |\n touch test.js\n ldd --version || true\n npx oxlint@${OXLINT_VERSION} ./test.js\n\n eslint-plugin-oxlint:\n needs: [check, publish, smoke]\n name: Update eslint-plugin-oxlint\n runs-on: ubuntu-latest\n steps:\n - uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1\n - uses: benc-uk/workflow-dispatch@e2e5e9a103e331dad343f381a29e654aea3cf8fc # v1.2.4\n with:\n repo: oxc-project/eslint-plugin-oxlint\n workflow: bump_oxlint.yml\n token: ${{ secrets.OXC_BOT_PAT }}\n ref: main\n inputs: '{ "version": "${{ needs.check.outputs.version }}" }'\n - uses: benc-uk/workflow-dispatch@e2e5e9a103e331dad343f381a29e654aea3cf8fc # v1.2.4\n with:\n repo: oxc-project/oxlint-migrate\n workflow: bump_oxlint.yml\n token: ${{ secrets.OXC_BOT_PAT }}\n ref: main\n inputs: '{ "version": "${{ needs.check.outputs.version }}" }'\n
dataset_sample\yaml\oxc-project_oxc\.github\workflows\release_oxlint.yml
release_oxlint.yml
YAML
8,598
0.8
0.053435
0.022321
awesome-app
246
2023-11-28T02:49:39.948278
BSD-3-Clause
false
94b940acb892f50afe9efa9c1815f1b7
name: Release @oxc-project/runtime\n\npermissions: {}\n\non:\n workflow_dispatch:\n push:\n branches:\n - main\n paths:\n - npm/runtime/package.json\n\nconcurrency:\n group: ${{ github.workflow }}-${{ github.ref }}\n cancel-in-progress: true\n\njobs:\n check:\n name: Check version\n runs-on: ubuntu-latest\n outputs:\n version: ${{ steps.version.outputs.version }}\n version_changed: ${{ steps.version.outputs.changed }}\n steps:\n - uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1\n\n - name: Check version changes\n uses: EndBug/version-check@36ff30f37c7deabe56a30caa043d127be658c425 # v2.1.5\n id: version\n with:\n static-checking: localIsNew\n file-url: https://unpkg.com/@oxc-project/runtime/package.json\n file-name: npm/runtime/package.json\n\n - name: Set version name\n if: steps.version.outputs.changed == 'true'\n env:\n VERSION_NUMBER: ${{ steps.version.outputs.version }}\n VERSION_TYPE: ${{ steps.version.outputs.version_type }}\n run: |\n echo "Version change found! New version: ${VERSION_NUMBER} (${VERSION_TYPE})"\n\n build:\n needs: check\n if: needs.check.outputs.version_changed == 'true'\n name: Release @oxc-project/runtime\n runs-on: ubuntu-latest\n permissions:\n id-token: write # for `pnpm publish --provenance`\n steps:\n - uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1\n\n - uses: ./.github/actions/pnpm\n\n - name: Publish\n working-directory: npm/runtime\n env:\n NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}\n run: pnpm publish --provenance --access public --no-git-checks\n
dataset_sample\yaml\oxc-project_oxc\.github\workflows\release_runtime.yml
release_runtime.yml
YAML
1,735
0.8
0.050847
0
awesome-app
945
2024-10-20T01:40:27.459660
BSD-3-Clause
false
99c69a8bc008ba81c65c709ee08d51a0
name: Release @oxc-project/types\n\npermissions: {}\n\non:\n workflow_dispatch:\n push:\n branches:\n - main\n paths:\n - npm/oxc-types/package.json # Please only commit this file, so we don't need to wait for all the other CI jobs to finish.\n\nconcurrency:\n group: ${{ github.workflow }}-${{ github.ref }}\n cancel-in-progress: true\n\njobs:\n check:\n name: Check version\n runs-on: ubuntu-latest\n outputs:\n version: ${{ steps.version.outputs.version }}\n version_changed: ${{ steps.version.outputs.changed }}\n steps:\n - uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1\n\n - name: Check version changes\n uses: EndBug/version-check@36ff30f37c7deabe56a30caa043d127be658c425 # v2.1.5\n id: version\n with:\n static-checking: localIsNew\n file-url: https://unpkg.com/@oxc-project/types/package.json\n file-name: npm/oxc-types/package.json\n\n - name: Set version name\n if: steps.version.outputs.changed == 'true'\n env:\n VERSION_NUMBER: ${{ steps.version.outputs.version }}\n VERSION_TYPE: ${{ steps.version.outputs.version_type }}\n run: |\n echo "Version change found! New version: ${VERSION_NUMBER} (${VERSION_TYPE})"\n\n build:\n needs: check\n if: needs.check.outputs.version_changed == 'true'\n name: Release @oxc-project/types\n runs-on: ubuntu-latest\n permissions:\n id-token: write # for `pnpm publish --provenance`\n steps:\n - uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1\n\n - uses: ./.github/actions/pnpm\n\n - name: Publish\n working-directory: npm/oxc-types\n env:\n NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}\n run: pnpm publish --provenance --access public --no-git-checks\n
dataset_sample\yaml\oxc-project_oxc\.github\workflows\release_types.yml
release_types.yml
YAML
1,829
0.8
0.067797
0
python-kit
591
2024-10-25T00:22:31.701115
BSD-3-Clause
false
22ab1ccb446ac580a1df4fe238bd2cb9
name: Release VSCode\n\npermissions: {}\n\non:\n push:\n branches:\n - main\n paths:\n - editors/vscode/package.json # Please only commit this file, so we don't need to wait for all the other CI jobs to finish.\n\nconcurrency:\n group: ${{ github.workflow }}-${{ github.ref }}\n cancel-in-progress: true\n\ndefaults:\n run:\n shell: bash\n\njobs:\n check:\n name: Check version\n runs-on: ubuntu-latest\n outputs:\n version: ${{ env.version }}\n version_changed: ${{ steps.version.outputs.changed }}\n steps:\n - uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1\n\n - name: Check vscode version changes\n uses: EndBug/version-check@36ff30f37c7deabe56a30caa043d127be658c425 # v2.1.5\n id: version\n with:\n diff-search: true\n file-name: editors/vscode/package.json\n\n - name: Set version name\n if: steps.version.outputs.changed == 'true'\n env:\n VERSION_NUMBER: ${{ steps.version.outputs.version }}\n VERSION_TYPE: ${{ steps.version.outputs.version_type }}\n run: |\n echo "Version change found! New version: ${VERSION_NUMBER} (${VERSION_TYPE})"\n echo "version=${VERSION_NUMBER}" >> $GITHUB_ENV\n\n build:\n needs: check\n if: needs.check.outputs.version_changed == 'true'\n env:\n version: ${{ needs.check.outputs.version }}\n strategy:\n matrix:\n include:\n - os: windows-latest\n target: x86_64-pc-windows-msvc\n code-target: win32-x64\n - os: windows-latest\n target: aarch64-pc-windows-msvc\n code-target: win32-arm64\n - os: ubuntu-latest\n target: x86_64-unknown-linux-gnu\n code-target: linux-x64\n - os: ubuntu-latest\n target: aarch64-unknown-linux-gnu\n code-target: linux-arm64\n - os: macos-latest\n target: x86_64-apple-darwin\n code-target: darwin-x64\n - os: macos-latest\n target: aarch64-apple-darwin\n code-target: darwin-arm64\n name: Package ${{ matrix.code-target }}\n runs-on: ${{ matrix.os }}\n steps:\n - uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1\n\n - uses: ./.github/actions/pnpm\n\n - name: Build JS\n working-directory: editors/vscode\n run: pnpm run compile\n\n - name: Install cross\n uses: taiki-e/install-action@09dc018eee06ae1c9e0409786563f534210ceb83 # v2.49.50\n with:\n tool: cross\n\n - name: Rust Cache\n uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8\n with:\n shared-key: release-${{ matrix.target }}\n\n - name: Add Rust Target\n run: rustup target add ${{ matrix.target }}\n\n - name: Build with cross\n run: cross build -p oxc_language_server --release --target=${{ matrix.target }}\n\n - name: Copy binary\n if: runner.os == 'Windows'\n run: |\n mkdir -p editors/vscode/target/release\n # .vscodeignore uses `!target/release/oxc_language_server.exe` to package the binary\n cp target/${{ matrix.target }}/release/oxc_language_server.exe editors/vscode/target/release/oxc_language_server.exe\n\n - name: Copy binary\n if: runner.os != 'Windows'\n run: |\n mkdir -p editors/vscode/target/release/\n # .vscodeignore uses `!target/release/oxc_language_server` to package the binary\n cp target/${{ matrix.target }}/release/oxc_language_server editors/vscode/target/release/oxc_language_server\n\n - name: Package Extension\n working-directory: editors/vscode\n run: |\n ls ./target/release\n pnpm exec vsce package -o "../../oxc_language_server-${{ matrix.code-target }}.vsix" --target ${{ matrix.code-target }}\n\n - name: Upload VSCode extension artifact\n uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2\n with:\n name: packages-${{ matrix.code-target }}\n path: ./oxc_language_server-${{ matrix.code-target }}.vsix\n if-no-files-found: error\n\n publish:\n name: Publish VSCode\n runs-on: ubuntu-latest\n needs: build\n environment: marketplace\n permissions:\n contents: write\n steps:\n - uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1\n\n - name: Download extension artifacts\n uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1\n with:\n merge-multiple: true\n path: editors/vscode\n\n - uses: ./.github/actions/pnpm\n\n - name: Publish to Microsoft Marketplace\n working-directory: editors/vscode\n run: pnpm exec vsce publish --packagePath oxc_language_server-*.vsix\n env:\n VSCE_PAT: ${{ secrets.VSCE_PERSONAL_ACCESS_TOKEN }}\n\n - name: Publish to Open VSX Registry\n working-directory: editors/vscode\n run: pnpm exec ovsx publish --packagePath oxc_language_server-*.vsix\n env:\n OVSX_PAT: ${{ secrets.OPEN_VSX_TOKEN }}\n
dataset_sample\yaml\oxc-project_oxc\.github\workflows\release_vscode.yml
release_vscode.yml
YAML
5,129
0.8
0.038961
0.015267
python-kit
957
2023-12-03T01:10:30.538000
MIT
false
b6f077d310a6bdd5be299b8c5f6a27ed
name: Prepare Release\n\npermissions: {}\n\non:\n workflow_call:\n inputs:\n name:\n required: true\n type: string\n description: "The name defined in oxc_release.toml"\n secrets:\n OXC_BOT_PAT:\n required: true\n outputs:\n pull-request-number:\n value: ${{ jobs.run.outputs.pull-request-number }}\n version:\n value: ${{ jobs.run.outputs.version }}\n\njobs:\n run:\n name: Prepare Release\n runs-on: ubuntu-latest\n outputs:\n pull-request-number: ${{ steps.pr.outputs.pull-request-number }}\n version: ${{ steps.run.outputs.VERSION }}\n steps:\n - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2\n with:\n fetch-depth: 0\n persist-credentials: false\n\n - uses: oxc-project/setup-rust@cd82e1efec7fef815e2c23d296756f31c7cdc03d # v1.0.0\n with:\n cache-key: warm\n tools: cargo-release-oxc\n\n - name: Run\n id: run\n env:\n RELEASE_NAME: ${{ inputs.name }}\n run: |\n cargo ck\n cargo release-oxc update --release ${RELEASE_NAME}\n echo "VERSION=$(cat ./target/OXC_VERSION)" >> $GITHUB_OUTPUT\n {\n echo 'CHANGELOG<<EOF'\n cat ./target/OXC_CHANGELOG\n echo EOF\n } >> $GITHUB_OUTPUT\n\n # update `Cargo.lock`\n - run: cargo check\n\n - uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8\n id: pr\n with:\n # bot account with PAT required for triggering workflow runs\n # See https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs\n token: ${{ secrets.OXC_BOT_PAT }}\n commit-message: "release(${{ inputs.name }}): v${{ steps.run.outputs.VERSION }}"\n branch: release/${{ inputs.name }}\n branch-suffix: timestamp\n base: main\n title: "release(${{ inputs.name }}): v${{ steps.run.outputs.VERSION }}"\n body: ${{ steps.run.outputs.CHANGELOG }}\n assignees: Boshen\n
dataset_sample\yaml\oxc-project_oxc\.github\workflows\reusable_prepare_release.yml
reusable_prepare_release.yml
YAML
2,114
0.95
0.014706
0.04918
vue-tools
747
2023-08-31T10:28:29.956721
BSD-3-Clause
false
1dc5a3b13a66d2239d01e1c82cfac1d4
name: Release NAPI\n\npermissions: {}\n\non:\n workflow_call:\n inputs:\n name:\n required: true\n type: string\n description: "The component name"\n secrets:\n NPM_TOKEN:\n required: true\n\njobs:\n check:\n name: Check version\n runs-on: ubuntu-latest\n outputs:\n version: ${{ env.version }}\n version_changed: ${{ steps.version.outputs.changed }}\n env:\n name: ${{ inputs.name }}\n steps:\n - uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1\n\n - uses: EndBug/version-check@36ff30f37c7deabe56a30caa043d127be658c425 # v2.1.5\n id: version\n with:\n static-checking: localIsNew\n file-url: https://unpkg.com/oxc-${{ inputs.name }}@latest/package.json\n file-name: napi/${{ inputs.name }}/package.json\n\n - name: Set version name\n if: steps.version.outputs.changed == 'true'\n env:\n VERSION_NUMBER: ${{ steps.version.outputs.version }}\n VERSION_TYPE: ${{ steps.version.outputs.version_type }}\n run: |\n echo "Version change found! New version: ${VERSION_NUMBER} (${VERSION_NUMBER})"\n echo "version=${VERSION_NUMBER}" >> $GITHUB_ENV\n\n build:\n needs: check\n if: needs.check.outputs.version_changed == 'true'\n name: Package ${{ matrix.target }}\n runs-on: ${{ matrix.os }}\n env:\n version: ${{ needs.check.outputs.version }}\n name: ${{ inputs.name }}\n outputs:\n version: ${{ env.version }}\n defaults:\n run:\n shell: bash\n strategy:\n fail-fast: false\n matrix:\n include:\n - os: windows-latest\n target: x86_64-pc-windows-msvc\n - os: windows-latest\n target: aarch64-pc-windows-msvc\n - os: ubuntu-latest\n target: x86_64-unknown-linux-gnu\n - os: ubuntu-latest\n target: x86_64-unknown-linux-musl\n - os: ubuntu-latest\n target: aarch64-unknown-linux-gnu\n - os: ubuntu-latest\n target: aarch64-unknown-linux-musl\n - os: ubuntu-latest\n target: armv7-unknown-linux-gnueabihf\n - os: macos-latest\n target: x86_64-apple-darwin\n - os: macos-latest\n target: aarch64-apple-darwin\n - os: ubuntu-latest\n target: wasm32-wasip1-threads\n\n steps:\n - uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1\n\n - uses: ./.github/actions/pnpm\n\n - run: rustup target add ${{ matrix.target }}\n\n - uses: goto-bus-stop/setup-zig@abea47f85e598557f500fa1fd2ab7464fcb39406 # v2.2.1\n if: ${{ contains(matrix.target, 'musl') }}\n with:\n version: 0.13.0\n\n - name: Build with zig cross\n if: ${{ contains(matrix.target, 'musl') }}\n working-directory: napi/${{ inputs.name }}\n run: pnpm build -x --target ${{ matrix.target }}\n env:\n CC: clang # for mimalloc\n\n - name: Build with napi cross\n if: ${{ contains(matrix.target, 'gnu') }}\n working-directory: napi/${{ inputs.name }}\n run: pnpm build --use-napi-cross --target ${{ matrix.target }}\n env:\n CC: clang # for mimalloc\n\n - name: Build\n if: ${{ !contains(matrix.target, 'gnu') && !contains(matrix.target, 'musl') }}\n working-directory: napi/${{ inputs.name }}\n run: pnpm build --target ${{ matrix.target }}\n\n - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2\n with:\n name: bindings-${{ matrix.target }}\n path: |\n napi/${{ inputs.name }}/*.node\n napi/${{ inputs.name }}/*.wasm\n\n publish:\n name: Publish NAPI\n needs:\n - build\n runs-on: ubuntu-latest\n permissions:\n id-token: write # for `pnpm publish --provenance`\n env:\n name: ${{ inputs.name }}\n package_path: napi/${{ inputs.name }}\n npm_dir: release-dir\n PUBLISH_FLAGS: "--provenance --access public --no-git-checks"\n steps:\n - uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1\n\n - uses: ./.github/actions/pnpm\n\n - uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1\n with:\n path: artifacts\n\n - run: mkdir -p release-dir\n\n - run: pnpm napi create-npm-dirs --package-json-path ${package_path}/package.json --npm-dir ${npm_dir}\n\n - run: pnpm napi artifacts --package-json-path ${package_path}/package.json --build-output-dir ${package_path} --npm-dir ${npm_dir}\n\n - run: pnpm -C ${package_path} build-browser-bundle --npmDir ../../${npm_dir}\n if: ${{ inputs.name == 'parser' }}\n\n - name: Check Publish\n run: |\n # Check subpackages\n for package in ${npm_dir}/*\n do\n echo $package\n ls $package\n cat $package/package.json\n # Check publish files exist\n jq -r '.files[]' $package/package.json | while read -r file ; do\n if ! [ -f $package/$file ] ; then\n echo "File does not exist." $package/$file\n exit 1\n fi\n done\n pnpm publish $package/ ${PUBLISH_FLAGS} --dry-run\n echo ''\n done\n\n # Check root package\n echo ${package_path}\n ls ${package_path}\n cat ${package_path}/package.json\n # Check publish files exist\n jq -r '.files[]' ${package_path}/package.json | while read -r file ; do\n if ! [ -f ${package_path}/$file ]; then\n echo "File does not exist." ${package_path}/$file\n exit 1\n fi\n done\n pnpm publish ${package_path}/ ${PUBLISH_FLAGS} --dry-run\n\n - name: Publish\n env:\n NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}\n NPM_TOKEN: ${{ secrets.NPM_TOKEN }}\n run: |\n echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc\n # Publish sub-packages and adds `optionalDependencies` to `package_path`.\n pnpm napi pre-publish --no-gh-release -t npm --package-json-path ${package_path}/package.json --npm-dir ${npm_dir}\n pnpm publish ${package_path}/ ${PUBLISH_FLAGS}\n
dataset_sample\yaml\oxc-project_oxc\.github\workflows\reusable_release_napi.yml
reusable_release_napi.yml
YAML
6,288
0.95
0.078947
0.03012
python-kit
521
2024-09-09T10:04:39.230709
BSD-3-Clause
false
93a83aa6887b9396884735a97568c21e
# .gitlab-ci.yml\n#\n# polkadot\n#\n# Pipelines can be triggered manually in the web.\n#\n# Please do not add new jobs without "rules:" and "*-env". There are &test-refs for everything,\n# "docker-env" is used for Rust jobs.\n# And "kubernetes-env" for everything else. Please mention "image:" container name to be used\n# with it, as there's no default one.\n\n# All jobs are sorted according to their duration using DAG mechanism\n# Currently, test-linux-stable job is the longest one and other jobs are\n# sorted in order to complete during this job and occupy less runners in one\n# moment of time.\n\nstages:\n - .pre\n - weights\n - check\n - test\n - build\n - publish\n - zombienet\n - short-benchmarks\n\nworkflow:\n rules:\n - if: $CI_COMMIT_TAG\n - if: $CI_COMMIT_BRANCH\n\nvariables:\n GIT_STRATEGY: fetch\n GIT_DEPTH: 100\n CI_SERVER_NAME: "GitLab CI"\n CI_IMAGE: !reference [.ci-unified, variables, CI_IMAGE]\n BUILDAH_IMAGE: "quay.io/buildah/stable:v1.29"\n BUILDAH_COMMAND: "buildah --storage-driver overlay2"\n DOCKER_OS: "debian:stretch"\n ARCH: "x86_64"\n ZOMBIENET_IMAGE: "docker.io/paritytech/zombienet:v1.3.65"\n\ndefault:\n cache: {}\n retry:\n max: 2\n when:\n - runner_system_failure\n - unknown_failure\n - api_failure\n interruptible: true\n\n.common-before-script:\n before_script:\n - !reference [.job-switcher, before_script]\n - !reference [.timestamp, before_script]\n\n.collect-artifacts:\n artifacts:\n name: "${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}"\n when: on_success\n expire_in: 7 days\n paths:\n - ./artifacts/\n\n.collect-artifacts-short:\n artifacts:\n name: "${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}"\n when: on_success\n expire_in: 1 days\n paths:\n - ./artifacts/\n\n# collecting vars for pipeline stopper\n# they will be used if the job fails\n.pipeline-stopper-vars:\n before_script:\n - echo "FAILED_JOB_URL=${CI_JOB_URL}" > pipeline-stopper.env\n - echo "FAILED_JOB_NAME=${CI_JOB_NAME}" >> pipeline-stopper.env\n - echo "FAILED_JOB_NAME=${CI_JOB_NAME}" >> pipeline-stopper.env\n - echo "PR_NUM=${CI_COMMIT_REF_NAME}" >> pipeline-stopper.env\n\n.pipeline-stopper-artifacts:\n artifacts:\n reports:\n dotenv: pipeline-stopper.env\n\n.job-switcher:\n before_script:\n - if echo "$CI_DISABLED_JOBS" | grep -xF "$CI_JOB_NAME"; then echo "The job has been cancelled in CI settings"; exit 0; fi\n\n.kubernetes-env:\n image: "${CI_IMAGE}"\n before_script:\n - !reference [.common-before-script, before_script]\n tags:\n - kubernetes-parity-build\n\n.docker-env:\n image: "${CI_IMAGE}"\n before_script:\n - !reference [.common-before-script, before_script]\n tags:\n - linux-docker-vm-c2\n\n.compiler-info:\n before_script:\n - !reference [.common-before-script, before_script]\n - rustup show\n - cargo --version\n\n.test-refs:\n rules:\n - if: $CI_PIPELINE_SOURCE == "web"\n - if: $CI_PIPELINE_SOURCE == "schedule"\n - if: $CI_COMMIT_REF_NAME == "master"\n - if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs\n\n.common-refs:\n # these jobs run always*\n rules:\n - if: $CI_PIPELINE_SOURCE == "web"\n - if: $CI_PIPELINE_SOURCE == "schedule"\n - if: $CI_COMMIT_REF_NAME == "master"\n - if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs\n - if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1\n - if: $CI_COMMIT_REF_NAME =~ /^release-v[0-9]+\.[0-9]+.*$/ # i.e. release-v0.9.27\n\n.test-pr-refs:\n rules:\n - if: $CI_PIPELINE_SOURCE == "pipeline"\n when: never\n - if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs\n\n.zombienet-refs:\n rules:\n - if: $CI_PIPELINE_SOURCE == "pipeline"\n when: never\n - if: $CI_PIPELINE_SOURCE == "schedule"\n when: never\n - if: $CI_COMMIT_REF_NAME == "master"\n - if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs\n\n.deploy-testnet-refs:\n rules:\n - if: $CI_PIPELINE_SOURCE == "pipeline"\n when: never\n - if: $CI_PIPELINE_SOURCE == "schedule"\n - if: $CI_COMMIT_REF_NAME == "master"\n\n.publish-refs:\n rules:\n - if: $CI_PIPELINE_SOURCE == "pipeline"\n when: never\n - if: $CI_PIPELINE_SOURCE == "schedule"\n - if: $CI_PIPELINE_SOURCE == "web" &&\n $CI_COMMIT_REF_NAME == "master"\n - if: $CI_COMMIT_REF_NAME == "master"\n - if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1\n\n.build-push-image:\n variables:\n CI_IMAGE: "${BUILDAH_IMAGE}"\n\n REGISTRY: "docker.io"\n DOCKER_OWNER: "paritypr"\n DOCKER_USER: "${PARITYPR_USER}"\n DOCKER_PASS: "${PARITYPR_PASS}"\n IMAGE: "${REGISTRY}/${DOCKER_OWNER}/${IMAGE_NAME}"\n\n ENGINE: "${BUILDAH_COMMAND}"\n BUILDAH_FORMAT: "docker"\n SKIP_IMAGE_VALIDATION: 1\n\n PROJECT_ROOT: "."\n BIN_FOLDER: "./artifacts"\n VCS_REF: "${CI_COMMIT_SHA}"\n\n before_script:\n - !reference [.common-before-script, before_script]\n - test -s ./artifacts/VERSION || exit 1\n - test -s ./artifacts/EXTRATAG || exit 1\n - export VERSION="$(cat ./artifacts/VERSION)"\n - EXTRATAG="$(cat ./artifacts/EXTRATAG)"\n - echo "Polkadot version = ${VERSION} (EXTRATAG = ${EXTRATAG})"\n script:\n - test "$DOCKER_USER" -a "$DOCKER_PASS" ||\n ( echo "no docker credentials provided"; exit 1 )\n - TAGS="${VERSION},${EXTRATAG}" scripts/ci/dockerfiles/build-injected.sh\n - echo "$DOCKER_PASS" |\n buildah login --username "$DOCKER_USER" --password-stdin "${REGISTRY}"\n - $BUILDAH_COMMAND info\n - $BUILDAH_COMMAND push --format=v2s2 "$IMAGE:$VERSION"\n - $BUILDAH_COMMAND push --format=v2s2 "$IMAGE:$EXTRATAG"\n after_script:\n - buildah logout --all\n\n#### stage: .pre\n\n# By default our pipelines are interruptible, but some special pipelines shouldn't be interrupted:\n# * multi-project pipelines such as the ones triggered by the scripts repo\n#\n# In those cases, we add an uninterruptible .pre job; once that one has started,\n# the entire pipeline becomes uninterruptible.\nuninterruptible-pipeline:\n extends: .kubernetes-env\n variables:\n CI_IMAGE: "paritytech/tools:latest"\n stage: .pre\n interruptible: false\n rules:\n - if: $CI_PIPELINE_SOURCE == "pipeline"\n script: "true"\n\ninclude:\n # weights jobs\n - scripts/ci/gitlab/pipeline/weights.yml\n # check jobs\n - scripts/ci/gitlab/pipeline/check.yml\n # test jobs\n - scripts/ci/gitlab/pipeline/test.yml\n # build jobs\n - scripts/ci/gitlab/pipeline/build.yml\n # short-benchmarks jobs\n - scripts/ci/gitlab/pipeline/short-benchmarks.yml\n # publish jobs\n - scripts/ci/gitlab/pipeline/publish.yml\n # zombienet jobs\n - scripts/ci/gitlab/pipeline/zombienet.yml\n # timestamp handler\n - project: parity/infrastructure/ci_cd/shared\n ref: main\n file: /common/timestamp.yml\n - project: parity/infrastructure/ci_cd/shared\n ref: main\n file: /common/ci-unified.yml\n\n\n#### stage: .post\n\ndeploy-parity-testnet:\n stage: .post\n extends:\n - .deploy-testnet-refs\n variables:\n POLKADOT_CI_COMMIT_NAME: "${CI_COMMIT_REF_NAME}"\n POLKADOT_CI_COMMIT_REF: "${CI_COMMIT_SHORT_SHA}"\n allow_failure: false\n trigger: "parity/infrastructure/parity-testnet"\n\n# This job cancels the whole pipeline if any of provided jobs fail.\n# In a DAG, every jobs chain is executed independently of others. The `fail_fast` principle suggests\n# to fail the pipeline as soon as possible to shorten the feedback loop.\n.cancel-pipeline-template:\n stage: .post\n rules:\n - if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs\n when: on_failure\n variables:\n PROJECT_ID: "${CI_PROJECT_ID}"\n PROJECT_NAME: "${CI_PROJECT_NAME}"\n PIPELINE_ID: "${CI_PIPELINE_ID}"\n FAILED_JOB_URL: "${FAILED_JOB_URL}"\n FAILED_JOB_NAME: "${FAILED_JOB_NAME}"\n PR_NUM: "${PR_NUM}"\n trigger:\n project: "parity/infrastructure/ci_cd/pipeline-stopper"\n branch: "as-improve"\n\nremove-cancel-pipeline-message:\n stage: .post\n rules:\n - if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs\n variables:\n PROJECT_ID: "${CI_PROJECT_ID}"\n PROJECT_NAME: "${CI_PROJECT_NAME}"\n PIPELINE_ID: "${CI_PIPELINE_ID}"\n FAILED_JOB_URL: "https://gitlab.com"\n FAILED_JOB_NAME: "nope"\n PR_NUM: "${CI_COMMIT_REF_NAME}"\n trigger:\n project: "parity/infrastructure/ci_cd/pipeline-stopper"\n\ncancel-pipeline-test-linux-stable:\n extends: .cancel-pipeline-template\n needs:\n - job: test-linux-stable\n
dataset_sample\yaml\paritytech_polkadot\.gitlab-ci.yml
.gitlab-ci.yml
YAML
8,227
0.8
0.125436
0.13834
vue-tools
607
2024-06-28T06:39:46.404019
MIT
false
446282435878af02a6a99a43b5b5d4be
version: 2\nupdates:\n - package-ecosystem: "cargo"\n directory: "/"\n labels: ["A2-insubstantial", "B0-silent", "C1-low", "E2-dependencies"]\n # Handle updates for crates from github.com/paritytech/substrate manually.\n ignore:\n - dependency-name: "substrate-*"\n - dependency-name: "sc-*"\n - dependency-name: "sp-*"\n - dependency-name: "frame-*"\n - dependency-name: "fork-tree"\n - dependency-name: "frame-remote-externalities"\n - dependency-name: "pallet-*"\n - dependency-name: "beefy-*"\n - dependency-name: "try-runtime-*"\n - dependency-name: "test-runner"\n - dependency-name: "generate-bags"\n - dependency-name: "sub-tokens"\n schedule:\n interval: "daily"\n - package-ecosystem: github-actions\n directory: '/'\n labels: ["A2-insubstantial", "B0-silent", "C1-low", "E2-dependencies"]\n schedule:\n interval: daily\n
dataset_sample\yaml\paritytech_polkadot\.github\dependabot.yml
dependabot.yml
YAML
901
0.8
0.076923
0.038462
vue-tools
834
2025-05-20T21:16:12.050901
Apache-2.0
false
76a91e765a7036701b0f4032f736fdcc
# πŸ”’ PROTECTED: Changes to locks-review-team should be approved by the current locks-review-team\nlocks-review-team: locks-review\nteam-leads-team: polkadot-review\naction-review-team: ci\n\nrules:\n - name: Runtime files\n check_type: changed_files\n condition:\n include: ^runtime\/(kusama|polkadot)\/src\/.+\.rs$\n exclude: ^runtime\/(kusama|polkadot)\/src\/weights\/.+\.rs$\n all_distinct:\n - min_approvals: 1\n teams:\n - locks-review\n - min_approvals: 1\n teams:\n - polkadot-review\n\n - name: Core developers\n check_type: changed_files\n condition:\n include: .*\n # excluding files from 'Runtime files' and 'CI files' rules\n exclude: ^runtime/(kusama|polkadot)/src/[^/]+\.rs$|^\.gitlab-ci\.yml|^(?!.*\.dic$|.*spellcheck\.toml$)scripts/ci/.*|^\.github/.*\n min_approvals: 3\n teams:\n - core-devs\n\n - name: CI files\n check_type: changed_files\n condition:\n # dictionary files are excluded\n include: ^\.gitlab-ci\.yml|^(?!.*\.dic$|.*spellcheck\.toml$)scripts/ci/.*|^\.github/.*\n min_approvals: 2\n teams:\n - ci\n - release-engineering\n\nprevent-review-request:\n teams:\n - core-devs\n
dataset_sample\yaml\paritytech_polkadot\.github\pr-custom-review.yml
pr-custom-review.yml
YAML
1,196
0.8
0
0.078947
awesome-app
335
2025-01-07T06:12:00.169812
Apache-2.0
false
d7047f2b6f56d3598cd8df022618b8fe
name: Notify devops when burn-in label applied\non:\n pull_request:\n types: [labeled]\n\njobs:\n notify-devops:\n runs-on: ubuntu-latest\n strategy:\n matrix:\n channel:\n - name: 'Team: DevOps'\n room: '!lUslSijLMgNcEKcAiE:parity.io'\n\n steps:\n - name: Send Matrix message to ${{ matrix.channel.name }}\n if: startsWith(github.event.label.name, 'A1-')\n uses: s3krit/matrix-message-action@70ad3fb812ee0e45ff8999d6af11cafad11a6ecf # v0.0.3\n with:\n room_id: ${{ matrix.channel.room }}\n access_token: ${{ secrets.RELEASENOTES_MATRIX_V2_ACCESS_TOKEN }}\n server: m.parity.io\n message: |\n @room Burn-in request received for the following PR: ${{ github.event.pull_request.html_url }}\n
dataset_sample\yaml\paritytech_polkadot\.github\workflows\burnin-label-notification.yml
burnin-label-notification.yml
YAML
784
0.8
0.083333
0
react-lib
733
2025-05-16T15:03:18.253225
BSD-3-Clause
false
28afb4f468aa8135a3a00e995cd028cd
# checks all networks we care about (kusama, polkadot, westend) and ensures\n#Β the bootnodes in their respective chainspecs are contactable\n\nname: Check all bootnodes\non:\n push:\n branches:\n # Catches v1.2.3 and v1.2.3-rc1\n - release-v[0-9]+.[0-9]+.[0-9]+*\n\njobs:\n check_bootnodes:\n strategy:\n fail-fast: false\n matrix:\n runtime: [westend, kusama, polkadot]\n runs-on: ubuntu-latest\n steps:\n - name: Checkout sources\n uses: actions/checkout@v3\n - name: Install polkadot\n shell: bash\n run: |\n curl -L "$(curl -s https://api.github.com/repos/paritytech/polkadot/releases/latest \\n | jq -r '.assets | .[] | select(.name == "polkadot").browser_download_url')" \\n | sudo tee /usr/local/bin/polkadot > /dev/null\n sudo chmod +x /usr/local/bin/polkadot\n polkadot --version\n - name: Check ${{ matrix.runtime }} bootnodes\n shell: bash\n run: scripts/ci/github/check_bootnodes.sh node/service/chain-specs/${{ matrix.runtime }}.json\n
dataset_sample\yaml\paritytech_polkadot\.github\workflows\check-bootnodes.yml
check-bootnodes.yml
YAML
1,054
0.8
0
0.103448
vue-tools
234
2024-05-27T04:44:11.929475
BSD-3-Clause
false
361f3101c5b3498c83e1a0b6fd5261cc
name: Check D labels\n\non:\n pull_request:\n types: [labeled, opened, synchronize, unlabeled]\n paths:\n - runtime/polkadot/**\n - runtime/kusama/**\n - runtime/common/**\n - primitives/src/**\n\njobs:\n check-labels:\n runs-on: ubuntu-latest\n steps:\n - name: Pull image\n env:\n IMAGE: paritytech/ruled_labels:0.4.0\n run: docker pull $IMAGE\n\n - name: Check labels\n env:\n IMAGE: paritytech/ruled_labels:0.4.0\n MOUNT: /work\n GITHUB_PR: ${{ github.event.pull_request.number }}\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n API_BASE: https://api.github.com/repos\n REPO: ${{ github.repository }}\n RULES_PATH: labels/ruled_labels\n CHECK_SPECS: specs_polkadot.yaml\n run: |\n echo "REPO: ${REPO}"\n echo "GITHUB_PR: ${GITHUB_PR}"\n # Clone repo with labels specs\n git clone https://github.com/paritytech/labels\n # Fetch the labels for the PR under test\n labels=$( curl -H "Authorization: token ${GITHUB_TOKEN}" -s "$API_BASE/${REPO}/pulls/${GITHUB_PR}" | jq '.labels | .[] | .name' | tr "\n" ",")\n\n if [ -z "${labels}" ]; then\n docker run --rm -i -v $PWD/${RULES_PATH}/:$MOUNT $IMAGE check $MOUNT/$CHECK_SPECS --tags audit --no-label\n fi\n\n labels_args=${labels: :-1}\n printf "Checking labels: %s\n" "${labels_args}"\n\n # Prevent the shell from splitting labels with spaces\n IFS=","\n\n # --dev is more useful to debug mode to debug\n docker run --rm -i -v $PWD/${RULES_PATH}/:$MOUNT $IMAGE check $MOUNT/$CHECK_SPECS --labels ${labels_args} --dev --tags audit\n
dataset_sample\yaml\paritytech_polkadot\.github\workflows\check-D-labels.yml
check-D-labels.yml
YAML
1,719
0.8
0.04
0.093023
python-kit
719
2024-10-14T18:27:32.556303
GPL-3.0
false
c80c8aa2d87abb061c2f0481bc0fb5b2
name: Check labels\n\non:\n pull_request:\n types: [labeled, opened, synchronize, unlabeled]\n\njobs:\n check-labels:\n runs-on: ubuntu-latest\n steps:\n - name: Pull image\n env:\n IMAGE: paritytech/ruled_labels:0.4.0\n run: docker pull $IMAGE\n\n - name: Check labels\n env:\n IMAGE: paritytech/ruled_labels:0.4.0\n MOUNT: /work\n GITHUB_PR: ${{ github.event.pull_request.number }}\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n API_BASE: https://api.github.com/repos\n REPO: ${{ github.repository }}\n RULES_PATH: labels/ruled_labels\n CHECK_SPECS: specs_polkadot.yaml\n run: |\n echo "REPO: ${REPO}"\n echo "GITHUB_PR: ${GITHUB_PR}"\n # Clone repo with labels specs\n git clone https://github.com/paritytech/labels\n # Fetch the labels for the PR under test\n labels=$( curl -H "Authorization: token ${GITHUB_TOKEN}" -s "$API_BASE/${REPO}/pulls/${GITHUB_PR}" | jq '.labels | .[] | .name' | tr "\n" ",")\n\n if [ -z "${labels}" ]; then\n docker run --rm -i -v $PWD/${RULES_PATH}/:$MOUNT $IMAGE check $MOUNT/$CHECK_SPECS --tags PR --no-label\n fi\n\n labels_args=${labels: :-1}\n printf "Checking labels: %s\n" "${labels_args}"\n\n # Prevent the shell from splitting labels with spaces\n IFS=","\n\n # --dev is more useful to debug mode to debug\n docker run --rm -i -v $PWD/${RULES_PATH}/:$MOUNT $IMAGE check $MOUNT/$CHECK_SPECS --labels ${labels_args} --dev --tags PR\n
dataset_sample\yaml\paritytech_polkadot\.github\workflows\check-labels.yml
check-labels.yml
YAML
1,594
0.8
0.044444
0.105263
awesome-app
10
2024-07-05T16:09:22.910611
Apache-2.0
false
2e6ae3c1192ab7630d1825bbfefa79b0
name: Check licenses\n\non:\n pull_request:\n\njobs:\n check-licenses:\n runs-on: ubuntu-22.04\n steps:\n - name: Checkout sources\n uses: actions/checkout@v3\n - uses: actions/setup-node@v3.8.1\n with:\n node-version: '18.x'\n registry-url: 'https://npm.pkg.github.com'\n scope: '@paritytech'\n - name: Check the licenses\n run: |\n shopt -s globstar\n\n npx @paritytech/license-scanner@0.0.5 scan \\n --ensure-licenses=Apache-2.0 \\n --ensure-licenses=GPL-3.0-only \\n ./**/*.rs\n env:\n NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n
dataset_sample\yaml\paritytech_polkadot\.github\workflows\check-licenses.yml
check-licenses.yml
YAML
648
0.8
0
0
awesome-app
536
2024-03-25T01:01:41.913408
GPL-3.0
false
f7dcf094182fe790ef26613c1ed3c7bf
#Β If a chainspec file is updated with new bootnodes, we check to make sure those bootnodes are contactable\n\nname: Check new bootnodes\non:\n pull_request:\n paths:\n - 'node/service/chain-specs/*.json'\n\njobs:\n check_bootnodes:\n runs-on: ubuntu-latest\n steps:\n - name: Checkout sources\n uses: actions/checkout@v3\n with:\n fetch-depth: 0\n - name: Install polkadot\n shell: bash\n run: |\n curl -L "$(curl -s https://api.github.com/repos/paritytech/polkadot/releases/latest \\n | jq -r '.assets | .[] | select(.name == "polkadot").browser_download_url')" \\n | sudo tee /usr/local/bin/polkadot > /dev/null\n sudo chmod +x /usr/local/bin/polkadot\n polkadot --version\n - name: Check new bootnodes\n shell: bash\n run: |\n scripts/ci/github/check_new_bootnodes.sh\n
dataset_sample\yaml\paritytech_polkadot\.github\workflows\check-new-bootnodes.yml
check-new-bootnodes.yml
YAML
881
0.8
0
0.038462
vue-tools
221
2025-03-23T11:20:34.358230
MIT
false
56df03e37073a17a2dbf80844c2a7082
name: Check updated weights\n\non:\n pull_request:\n paths:\n Β - 'runtime/*/src/weights/**'\n\njobs:\n check_weights_files:\n strategy:\n fail-fast: false\n matrix:\n runtime: [westend, kusama, polkadot, rococo]\n runs-on: ubuntu-latest\n steps:\n - name: Checkout sources\n uses: actions/checkout@v3\n - name: Check weights files\n shell: bash\n run: |\n scripts/ci/github/verify_updated_weights.sh ${{ matrix.runtime }}\n\n #Β This job uses https://github.com/ggwpez/substrate-weight-compare to compare the weights of the current\n #Β release with the last release, then adds them as a comment to the PR.\n check_weight_changes:\n strategy:\n fail-fast: false\n matrix:\n runtime: [westend, kusama, polkadot, rococo]\n runs-on: ubuntu-latest\n steps:\n - name: Get latest release\n run: |\n LAST_RELEASE=$(curl -s https://api.github.com/repos/paritytech/polkadot/releases/latest | jq -r .tag_name)\n echo "LAST_RELEASE=$LAST_RELEASE" >> $GITHUB_ENV\n - name: Checkout current sources\n uses: actions/checkout@v3\n with:\n fetch-depth: 0\n - name: Check weight changes\n shell: bash\n run: |\n cargo install --git https://github.com/ggwpez/substrate-weight-compare swc\n ./scripts/ci/github/check_weights_swc.sh ${{ matrix.runtime }} "$LAST_RELEASE" | tee swc_output_${{ matrix.runtime }}.md\n - name: Add comment\n uses: thollander/actions-comment-pull-request@v2\n with:\n filePath: ./swc_output_${{ matrix.runtime }}.md\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
dataset_sample\yaml\paritytech_polkadot\.github\workflows\check-weights.yml
check-weights.yml
YAML
1,656
0.8
0
0.043478
node-utils
745
2025-06-20T09:17:59.445226
Apache-2.0
false
5a7391f12c8dcc7410d6b9863b16ac2b
name: Run nightly fuzzer jobs\n\non:\n schedule:\n - cron: '0 0 * * *'\n\njobs:\n xcm-fuzzer:\n runs-on: ubuntu-latest\n steps:\n - name: Checkout sources\n uses: actions/checkout@v3\n with:\n fetch-depth: 1\n\n - name: Install minimal stable Rust\n uses: actions-rs/toolchain@v1\n with:\n profile: minimal\n toolchain: stable\n override: true\n\n - name: Install minimal nightly Rust\n uses: actions-rs/toolchain@v1\n with:\n profile: minimal\n toolchain: nightly\n target: wasm32-unknown-unknown\n\n - name: Install honggfuzz deps\n run: sudo apt-get install --no-install-recommends binutils-dev libunwind8-dev\n\n - name: Install honggfuzz\n uses: actions-rs/cargo@v1\n with:\n command: install\n args: honggfuzz --version "0.5.54"\n\n - name: Build fuzzer binaries\n working-directory: xcm/xcm-simulator/fuzzer/\n run: cargo hfuzz build\n\n - name: Run fuzzer\n working-directory: xcm/xcm-simulator/fuzzer/\n run: bash $GITHUB_WORKSPACE/scripts/ci/github/run_fuzzer.sh xcm-fuzzer\n\n erasure-coding-round-trip:\n runs-on: ubuntu-latest\n steps:\n - name: Checkout sources\n uses: actions/checkout@v3\n with:\n fetch-depth: 1\n\n - name: Cache Seed\n id: cache-seed-round-trip\n uses: actions/cache@v3\n with:\n path: erasure-coding/fuzzer/hfuzz_workspace\n key: ${{ runner.os }}-erasure-coding\n\n - name: Install minimal stable Rust\n uses: actions-rs/toolchain@v1\n with:\n profile: minimal\n toolchain: stable\n override: true\n\n - name: Install minimal nightly Rust\n uses: actions-rs/toolchain@v1\n with:\n profile: minimal\n toolchain: nightly\n target: wasm32-unknown-unknown\n\n - name: Install honggfuzz deps\n run: sudo apt-get install --no-install-recommends binutils-dev libunwind8-dev\n\n - name: Install honggfuzz\n uses: actions-rs/cargo@v1\n with:\n command: install\n args: honggfuzz --version "0.5.54"\n\n - name: Build fuzzer binaries\n working-directory: erasure-coding/fuzzer\n run: cargo hfuzz build\n\n - name: Run fuzzer\n working-directory: erasure-coding/fuzzer\n run: bash $GITHUB_WORKSPACE/scripts/ci/github/run_fuzzer.sh round_trip\n\n erasure-coding-reconstruct:\n runs-on: ubuntu-latest\n steps:\n - name: Checkout sources\n uses: actions/checkout@v3\n with:\n fetch-depth: 1\n\n - name: Cache Seed\n id: cache-seed-reconstruct\n uses: actions/cache@v3\n with:\n path: erasure-coding/fuzzer/hfuzz_workspace\n key: ${{ runner.os }}-erasure-coding\n\n - name: Install minimal stable Rust\n uses: actions-rs/toolchain@v1\n with:\n profile: minimal\n toolchain: stable\n override: true\n\n - name: Install minimal nightly Rust\n uses: actions-rs/toolchain@v1\n with:\n profile: minimal\n toolchain: nightly\n target: wasm32-unknown-unknown\n\n - name: Install honggfuzz deps\n run: sudo apt-get install --no-install-recommends binutils-dev libunwind8-dev\n\n - name: Install honggfuzz\n uses: actions-rs/cargo@v1\n with:\n command: install\n args: honggfuzz --version "0.5.54"\n\n - name: Build fuzzer binaries\n working-directory: erasure-coding/fuzzer\n run: cargo hfuzz build\n\n - name: Run fuzzer\n working-directory: erasure-coding/fuzzer\n run: bash $GITHUB_WORKSPACE/scripts/ci/github/run_fuzzer.sh reconstruct\n
dataset_sample\yaml\paritytech_polkadot\.github\workflows\honggfuzz.yml
honggfuzz.yml
YAML
3,749
0.7
0
0
vue-tools
236
2025-02-05T17:26:08.365007
MIT
false
274e51ad62082f8374fc7dc1fae026e4
name: Assign reviewers\n\non:\n pull_request:\n branches:\n - master\n - main\n types:\n - opened\n - reopened\n - synchronize\n - review_requested\n - review_request_removed\n - ready_for_review\n - converted_to_draft\n pull_request_review:\n\njobs:\n pr-custom-review:\n runs-on: ubuntu-latest\n steps:\n - name: Skip if pull request is in Draft\n # `if: github.event.pull_request.draft == true` should be kept here, at\n # the step level, rather than at the job level. The latter is not\n # recommended because when the PR is moved from "Draft" to "Ready to\n # review" the workflow will immediately be passing (since it was skipped),\n # even though it hasn't actually ran, since it takes a few seconds for\n # the workflow to start. This is also disclosed in:\n # https://github.community/t/dont-run-actions-on-draft-pull-requests/16817/17\n # That scenario would open an opportunity for the check to be bypassed:\n # 1. Get your PR approved\n # 2. Move it to Draft\n # 3. Push whatever commits you want\n # 4. Move it to "Ready for review"; now the workflow is passing (it was\n # skipped) and "Check reviews" is also passing (it won't be updated\n # until the workflow is finished)\n if: github.event.pull_request.draft == true\n run: exit 1\n - name: pr-custom-review\n uses: paritytech/pr-custom-review@action-v3\n with:\n checks-reviews-api: http://pcr.parity-prod.parity.io/api/v1/check_reviews\n
dataset_sample\yaml\paritytech_polkadot\.github\workflows\pr-custom-review.yml
pr-custom-review.yml
YAML
1,576
0.8
0.142857
0.35
react-lib
240
2025-03-14T09:44:44.402503
MIT
false
b3ab1414ab47288643aec6f532e51a70
name: Release - Branch check\non:\n push:\n branches:\n # Catches v1.2.3 and v1.2.3-rc1\n - release-v[0-9]+.[0-9]+.[0-9]+*\n\n workflow_dispatch:\n\njobs:\n check_branch:\n runs-on: ubuntu-latest\n steps:\n - name: Checkout sources\n uses: actions/checkout@v3\n with:\n fetch-depth: 0\n\n - name: Run check\n shell: bash\n run: ./scripts/ci/github/check-rel-br\n
dataset_sample\yaml\paritytech_polkadot\.github\workflows\release-01_branch-check.yml
release-01_branch-check.yml
YAML
410
0.8
0
0.055556
vue-tools
751
2024-10-25T16:00:20.813790
MIT
false
a0a6de23c476d48d6dd55fbc867b1ca2
name: Release - RC automation\non:\n push:\n branches:\n # Catches v1.2.3 and v1.2.3-rc1\n - release-v[0-9]+.[0-9]+.[0-9]+*\njobs:\n tag_rc:\n runs-on: ubuntu-latest\n strategy:\n matrix:\n channel:\n - name: "RelEng: Polkadot Release Coordination"\n room: '!cqAmzdIcbOFwrdrubV:parity.io'\n\n steps:\n - name: Checkout sources\n uses: actions/checkout@v3\n with:\n fetch-depth: 0\n - id: compute_tag\n name: Compute next rc tag\n shell: bash\n run: |\n # Get last rc tag if exists, else set it to {version}-rc1\n version=${GITHUB_REF#refs/heads/release-}\n echo "$version"\n echo "version=$version" >> $GITHUB_OUTPUT\n git tag -l\n last_rc=$(git tag -l "$version-rc*" | sort -V | tail -n 1)\n if [ -n "$last_rc" ]; then\n suffix=$(echo "$last_rc" | grep -Eo '[0-9]+$')\n echo $suffix\n ((suffix++))\n echo $suffix\n echo "new_tag=$version-rc$suffix" >> $GITHUB_OUTPUT\n echo "first_rc=false" >> $GITHUB_OUTPUT\n else\n echo "new_tag=$version-rc1" >> $GITHUB_OUTPUT\n echo "first_rc=true" >> $GITHUB_OUTPUT\n fi\n\n - name: Apply new tag\n uses: tvdias/github-tagger@ed7350546e3e503b5e942dffd65bc8751a95e49d # v0.0.2\n with:\n # We can't use the normal GITHUB_TOKEN for the following reason:\n # https://docs.github.com/en/actions/reference/events-that-trigger-workflows#triggering-new-workflows-using-a-personal-access-token\n # RELEASE_BRANCH_TOKEN requires public_repo OAuth scope\n repo-token: "${{ secrets.RELEASE_BRANCH_TOKEN }}"\n tag: ${{ steps.compute_tag.outputs.new_tag }}\n\n - id: create-issue\n uses: JasonEtco/create-an-issue@e27dddc79c92bc6e4562f268fffa5ed752639abd # v2.9.1\n # Only create the issue if it's the first release candidate\n if: steps.compute_tag.outputs.first_rc == 'true'\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n VERSION: ${{ steps.compute_tag.outputs.version }}\n with:\n filename: .github/ISSUE_TEMPLATE/release.md\n\n - name: Send Matrix message to ${{ matrix.channel.name }}\n uses: s3krit/matrix-message-action@70ad3fb812ee0e45ff8999d6af11cafad11a6ecf # v0.0.3\n if: steps.create-issue.outputs.url != ''\n with:\n room_id: ${{ matrix.channel.room }}\n access_token: ${{ secrets.RELEASENOTES_MATRIX_V2_ACCESS_TOKEN }}\n server: m.parity.io\n message: |\n Release process for polkadot ${{ steps.compute_tag.outputs.version }} has been started.<br/>\n Tracking issue: ${{ steps.create-issue.outputs.url }}\n
dataset_sample\yaml\paritytech_polkadot\.github\workflows\release-10_candidate.yml
release-10_candidate.yml
YAML
2,775
0.95
0.098592
0.089552
awesome-app
695
2024-11-18T02:32:59.754617
GPL-3.0
false
c4c1729e745df16d4a3dbfafc14ef5a3
# This workflow performs the Extrinsic Ordering Check on demand using a binary\n\nname: Release - Extrinsic Ordering Check\non:\n workflow_dispatch:\n inputs:\n reference_url:\n description: The WebSocket url of the reference node\n default: wss://kusama-rpc.polkadot.io\n required: true\n binary_url:\n description: A url to a Linux binary for the node containing the runtime to test\n default: https://releases.parity.io/polkadot/x86_64-debian:stretch/v0.9.10/polkadot\n required: true\n chain:\n description: The name of the chain under test. Usually, you would pass a local chain\n default: kusama-local\n required: true\n\njobs:\n check:\n name: Run check\n runs-on: ubuntu-latest\n env:\n CHAIN: ${{github.event.inputs.chain}}\n BIN_URL: ${{github.event.inputs.binary_url}}\n REF_URL: ${{github.event.inputs.reference_url}}\n\n steps:\n - name: Checkout sources\n uses: actions/checkout@v3\n\n - name: Fetch binary\n run: |\n echo Fetching $BIN_URL\n wget $BIN_URL\n chmod a+x polkadot\n ./polkadot --version\n\n - name: Start local node\n run: |\n echo Running on $CHAIN\n ./polkadot --chain=$CHAIN &\n\n - name: Prepare output\n run: |\n VERSION=$(./polkadot --version)\n echo "Metadata comparison:" >> output.txt\n echo "Date: $(date)" >> output.txt\n echo "Reference: $REF_URL" >> output.txt\n echo "Target version: $VERSION" >> output.txt\n echo "Chain: $CHAIN" >> output.txt\n echo "----------------------------------------------------------------------" >> output.txt\n\n - name: Pull polkadot-js-tools image\n run: docker pull jacogr/polkadot-js-tools\n\n - name: Compare the metadata\n run: |\n CMD="docker run --pull always --network host jacogr/polkadot-js-tools metadata $REF_URL ws://localhost:9944"\n echo -e "Running:\n$CMD"\n $CMD >> output.txt\n sed -z -i 's/\n\n/\n/g' output.txt\n cat output.txt | egrep -n -i ''\n SUMMARY=$(./scripts/ci/github/extrinsic-ordering-filter.sh output.txt)\n echo -e $SUMMARY\n echo -e $SUMMARY >> output.txt\n\n - name: Show result\n run: |\n cat output.txt\n\n - name: Stop our local node\n run: pkill polkadot\n\n - name: Save output as artifact\n uses: actions/upload-artifact@v3\n with:\n name: ${{ env.CHAIN }}\n path: |\n output.txt\n
dataset_sample\yaml\paritytech_polkadot\.github\workflows\release-20_extrinsic-ordering-check-from-bin.yml
release-20_extrinsic-ordering-check-from-bin.yml
YAML
2,566
0.95
0.012346
0.014286
react-lib
699
2023-08-21T03:16:29.174009
Apache-2.0
false
446db9002515327244a5a2208e5edc28
# This workflow performs the Extrinsic Ordering Check on demand using two reference binaries\n\nname: Release - Extrinsic API Check with reference bins\non:\n workflow_dispatch:\n inputs:\n reference_binary_url:\n description: A url to a Linux binary for the node containing the reference runtime to test against\n default: https://releases.parity.io/polkadot/x86_64-debian:stretch/v0.9.26/polkadot\n required: true\n binary_url:\n description: A url to a Linux binary for the node containing the runtime to test\n default: https://releases.parity.io/polkadot/x86_64-debian:stretch/v0.9.27-rc1/polkadot\n required: true\n\njobs:\n check:\n name: Run check\n runs-on: ubuntu-latest\n env:\n BIN_URL: ${{github.event.inputs.binary_url}}\n REF_URL: ${{github.event.inputs.reference_binary_url}}\n strategy:\n fail-fast: false\n matrix:\n chain: [polkadot, kusama, westend, rococo]\n\n steps:\n - name: Checkout sources\n uses: actions/checkout@v3\n\n - name: Fetch reference binary\n run: |\n echo Fetching $REF_URL\n curl $REF_URL -o polkadot-ref\n chmod a+x polkadot-ref\n ./polkadot-ref --version\n\n - name: Fetch test binary\n run: |\n echo Fetching $BIN_URL\n curl $BIN_URL -o polkadot\n chmod a+x polkadot\n ./polkadot --version\n\n - name: Start local reference node\n run: |\n echo Running reference on ${{ matrix.chain }}-local\n ./polkadot-ref --chain=${{ matrix.chain }}-local --rpc-port=9934 --ws-port=9945 --base-path=polkadot-ref-base/ &\n\n - name: Start local test node\n run: |\n echo Running test on ${{ matrix.chain }}-local\n ./polkadot --chain=${{ matrix.chain }}-local &\n\n - name: Prepare output\n run: |\n REF_VERSION=$(./polkadot-ref --version)\n BIN_VERSION=$(./polkadot --version)\n echo "Metadata comparison:" >> output.txt\n echo "Date: $(date)" >> output.txt\n echo "Ref. binary: $REF_URL" >> output.txt\n echo "Test binary: $BIN_URL" >> output.txt\n echo "Ref. version: $REF_VERSION" >> output.txt\n echo "Test version: $BIN_VERSION" >> output.txt\n echo "Chain: ${{ matrix.chain }}-local" >> output.txt\n echo "----------------------------------------------------------------------" >> output.txt\n\n - name: Pull polkadot-js-tools image\n run: docker pull jacogr/polkadot-js-tools\n\n - name: Compare the metadata\n run: |\n CMD="docker run --pull always --network host jacogr/polkadot-js-tools metadata ws://localhost:9945 ws://localhost:9944"\n echo -e "Running:\n$CMD"\n $CMD >> output.txt\n sed -z -i 's/\n\n/\n/g' output.txt\n cat output.txt | egrep -n -i ''\n SUMMARY=$(./scripts/ci/github/extrinsic-ordering-filter.sh output.txt)\n echo -e $SUMMARY\n echo -e $SUMMARY >> output.txt\n\n - name: Show result\n run: |\n cat output.txt\n\n - name: Save output as artifact\n uses: actions/upload-artifact@v3\n with:\n name: ${{ matrix.chain }}\n path: |\n output.txt\n\n - name: Stop our local nodes\n run: |\n pkill polkadot-ref\n pkill polkadot\n
dataset_sample\yaml\paritytech_polkadot\.github\workflows\release-21_extrinsic-ordering-check-from-two.yml
release-21_extrinsic-ordering-check-from-two.yml
YAML
3,349
0.95
0.020619
0.011905
vue-tools
593
2024-02-14T14:21:39.311591
BSD-3-Clause
false
1a08a2cb966ce752db1647eeb7273e26
name: Release - Publish RC Container image\n# see https://github.com/paritytech/release-engineering/issues/97#issuecomment-1651372277\n\non:\n workflow_dispatch:\n inputs:\n release_id:\n description: |\n Release ID.\n You can find it using the command:\n curl -s \\n -H "Authorization: Bearer ${GITHUB_TOKEN}" https://api.github.com/repos/$OWNER/$REPO/releases | \\n jq '.[] | { name: .name, id: .id }'\n required: true\n type: string\n registry:\n description: "Container registry"\n required: true\n type: string\n default: docker.io\n owner:\n description: Owner of the container image repo\n required: true\n type: string\n default: parity\n\nenv:\n RELEASE_ID: ${{ inputs.release_id }}\n ENGINE: docker\n REGISTRY: ${{ inputs.registry }}\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n DOCKER_OWNER: ${{ inputs.owner || github.repository_owner }}\n REPO: ${{ github.repository }}\n\njobs:\n fetch-artifacts:\n runs-on: ubuntu-latest\n\n steps:\n - name: Checkout sources\n uses: actions/checkout@v3\n\n - name: Fetch all artifacts\n run: |\n . ./scripts/ci/common/lib.sh\n fetch_release_artifacts\n\n - name: Cache the artifacts\n uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1\n with:\n key: artifacts-${{ github.sha }}\n path: |\n ./release-artifacts/**/*\n\n build-container:\n runs-on: ubuntu-latest\n needs: fetch-artifacts\n\n strategy:\n matrix:\n binary: ["polkadot", "staking-miner"]\n\n steps:\n - name: Checkout sources\n uses: actions/checkout@v3\n\n - name: Get artifacts from cache\n uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1\n with:\n key: artifacts-${{ github.sha }}\n fail-on-cache-miss: true\n path: |\n ./release-artifacts/**/*\n\n - name: Check sha256 ${{ matrix.binary }}\n working-directory: ./release-artifacts\n run: |\n . ../scripts/ci/common/lib.sh\n\n echo "Checking binary ${{ matrix.binary }}"\n check_sha256 ${{ matrix.binary }} && echo "OK" || echo "ERR"\n\n - name: Check GPG ${{ matrix.binary }}\n working-directory: ./release-artifacts\n run: |\n . ../scripts/ci/common/lib.sh\n import_gpg_keys\n check_gpg ${{ matrix.binary }}\n\n - name: Fetch commit and tag\n id: fetch_refs\n run: |\n release=release-${{ inputs.release_id }} && \\n echo "release=${release}" >> $GITHUB_OUTPUT\n\n commit=$(git rev-parse --short HEAD) && \\n echo "commit=${commit}" >> $GITHUB_OUTPUT\n\n tag=$(git name-rev --tags --name-only $(git rev-parse HEAD)) && \\n [ "${tag}" != "undefined" ] && echo "tag=${tag}" >> $GITHUB_OUTPUT || \\n echo "No tag, doing without"\n\n - name: Build Injected Container image for ${{ matrix.binary }}\n env:\n BIN_FOLDER: ./release-artifacts\n BINARY: ${{ matrix.binary }}\n TAGS: ${{join(steps.fetch_refs.outputs.*, ',')}}\n run: |\n echo "Building container for ${{ matrix.binary }}"\n ./scripts/ci/dockerfiles/build-injected.sh\n\n - name: Login to Dockerhub\n uses: docker/login-action@v2\n with:\n username: ${{ secrets.DOCKERHUB_USERNAME }}\n password: ${{ secrets.DOCKERHUB_TOKEN }}\n\n - name: Push Container image for ${{ matrix.binary }}\n id: docker_push\n env:\n BINARY: ${{ matrix.binary }}\n run: |\n $ENGINE images | grep ${BINARY}\n $ENGINE push --all-tags ${REGISTRY}/${DOCKER_OWNER}/${BINARY}\n\n - name: Check version for the published image for ${{ matrix.binary }}\n env:\n BINARY: ${{ matrix.binary }}\n RELEASE_TAG: ${{ steps.fetch_refs.outputs.release }}\n run: |\n echo "Checking tag ${RELEASE_TAG} for image ${REGISTRY}/${DOCKER_OWNER}/${BINARY}"\n $ENGINE run -i ${REGISTRY}/${DOCKER_OWNER}/${BINARY}:${RELEASE_TAG} --version\n
dataset_sample\yaml\paritytech_polkadot\.github\workflows\release-40_publish-rc-image.yml
release-40_publish-rc-image.yml
YAML
4,161
0.95
0.045455
0.008929
react-lib
231
2023-07-17T03:13:42.615365
MIT
false
6d48d56c46d14b6069cf4bbc59793480
name: Release - Publish Docker image for new releases\n\non:\n release:\n types:\n - published\n\njobs:\n main:\n runs-on: ubuntu-latest\n steps:\n - name: Checkout sources\n uses: actions/checkout@v3\n - name: Set up Docker Buildx\n uses: docker/setup-buildx-action@95cb08cb2672c73d4ffd2f422e6d11953d2a9c70 # v2.1.0\n - name: Cache Docker layers\n uses: actions/cache@v3\n with:\n path: /tmp/.buildx-cache\n key: ${{ runner.os }}-buildx-${{ github.sha }}\n restore-keys: |\n ${{ runner.os }}-buildx-\n - name: Login to Dockerhub\n uses: docker/login-action@v2\n with:\n username: ${{ secrets.DOCKERHUB_USERNAME }}\n password: ${{ secrets.DOCKERHUB_TOKEN }}\n - name: Build and push\n id: docker_build\n uses: docker/build-push-action@v4\n with:\n push: true\n file: scripts/ci/dockerfiles/polkadot/polkadot_injected_debian.Dockerfile\n tags: |\n parity/polkadot:latest\n parity/polkadot:${{ github.event.release.tag_name }}\n build-args: |\n POLKADOT_VERSION=${{ github.event.release.tag_name }}\n VCS_REF=${{ github.ref }}\n BUILD_DATE=${{ github.event.release.published_at }}\n cache-from: type=local,src=/tmp/.buildx-cache\n cache-to: type=local,dest=/tmp/.buildx-cache\n - name: Image digest\n run: echo ${{ steps.docker_build.outputs.digest }}\n
dataset_sample\yaml\paritytech_polkadot\.github\workflows\release-50_publish-docker-release.yml
release-50_publish-docker-release.yml
YAML
1,486
0.8
0.022727
0
python-kit
248
2023-07-27T15:27:11.203259
MIT
false
3d1e8d11c226f0b5d7df63693a6ca939
name: Release - Publish Docker image (manual dispatch)\n\non:\n workflow_dispatch:\n inputs:\n version:\n description: version to build/release\n default: v0.9.18\n required: true\n date:\n description: release date of version\n default: "2022-02-23T19:11:58Z"\n required: true\n\njobs:\n main:\n runs-on: ubuntu-latest\n steps:\n - name: Checkout sources\n uses: actions/checkout@v3\n - name: Set up Docker Buildx\n uses: docker/setup-buildx-action@95cb08cb2672c73d4ffd2f422e6d11953d2a9c70 # v2.1.0\n - name: Cache Docker layers\n uses: actions/cache@v3\n with:\n path: /tmp/.buildx-cache\n key: ${{ runner.os }}-buildx-${{ github.sha }}\n restore-keys: |\n ${{ runner.os }}-buildx-\n - name: Login to Dockerhub\n uses: docker/login-action@v2\n with:\n username: ${{ secrets.DOCKERHUB_USERNAME }}\n password: ${{ secrets.DOCKERHUB_TOKEN }}\n - name: Build and push\n id: docker_build\n uses: docker/build-push-action@v4\n with:\n push: true\n file: scripts/ci/dockerfiles/polkadot/polkadot_injected_debian.Dockerfile\n tags: |\n parity/polkadot:latest\n parity/polkadot:${{ github.event.inputs.version }}\n build-args: |\n POLKADOT_VERSION=${{ github.event.inputs.version }}\n VCS_REF=${{ github.ref }}\n BUILD_DATE=${{ github.event.inputs.date }}\n cache-from: type=local,src=/tmp/.buildx-cache\n cache-to: type=local,dest=/tmp/.buildx-cache\n - name: Image digest\n run: echo ${{ steps.docker_build.outputs.digest }}\n
dataset_sample\yaml\paritytech_polkadot\.github\workflows\release-51_publish-docker-manual.yml
release-51_publish-docker-manual.yml
YAML
1,696
0.95
0
0
python-kit
181
2025-05-30T08:06:00.123821
GPL-3.0
false
88a883e0e6d9311b5c928cf5bdfe2fb5
name: Release - Send new release notification to matrix channels\non:\n release:\n types:\n - published\n\njobs:\n ping_matrix:\n strategy:\n matrix:\n channel:\n - name: '#KusamaValidatorLounge:polkadot.builders'\n room: '!LhjZccBOqFNYKLdmbb:polkadot.builders'\n pre-releases: false\n - name: '#kusama-announcements:matrix.parity.io'\n room: '!FMwxpQnYhRCNDRsYGI:matrix.parity.io'\n pre-release: false\n - name: '#polkadotvalidatorlounge:web3.foundation'\n room: '!NZrbtteFeqYKCUGQtr:matrix.parity.io'\n pre-release: false\n - name: '#polkadot-announcements:matrix.parity.io'\n room: '!UqHPWiCBGZWxrmYBkF:matrix.parity.io'\n pre-release: false\n - name: "RelEng: Polkadot Release Coordination"\n room: '!cqAmzdIcbOFwrdrubV:parity.io'\n pre-release: true\n - name: 'Ledger <> Polkadot Coordination'\n room: '!EoIhaKfGPmFOBrNSHT:web3.foundation'\n pre-release: true\n - name: 'General: Rust, Polkadot, Substrate'\n room: '!aJymqQYtCjjqImFLSb:parity.io'\n pre-release: false\n - name: 'Team: DevOps'\n room: '!lUslSijLMgNcEKcAiE:parity.io'\n pre-release: true\n\n runs-on: ubuntu-latest\n steps:\n - name: Send Matrix message to ${{ matrix.channel.name }}\n if: github.event.release.prerelease == false || matrix.channel.pre-release\n uses: s3krit/matrix-message-action@70ad3fb812ee0e45ff8999d6af11cafad11a6ecf # v0.0.3\n with:\n room_id: ${{ matrix.channel.room }}\n access_token: ${{ secrets.RELEASENOTES_MATRIX_V2_ACCESS_TOKEN }}\n server: m.parity.io\n message: |\n ***Polkadot ${{github.event.release.tag_name}} has been released!***<br/>\n ${{github.event.release.html_url}}<br/><br/>\n ${{github.event.release.body}}<br/>\n
dataset_sample\yaml\paritytech_polkadot\.github\workflows\release-99_bot.yml
release-99_bot.yml
YAML
1,953
0.8
0.020408
0.021277
vue-tools
106
2025-05-14T06:24:27.117742
BSD-3-Clause
false
2e6f082cbd2dd8afdd3183d40ba781e6
version: '3'\nservices:\n node_alice:\n ports:\n - "30333:30333"\n - "9933:9933"\n - "9944:9944"\n - "9615:9615"\n image: parity/polkadot:latest\n volumes:\n - "polkadot-data-alice:/data"\n command: |\n --chain=polkadot-local\n --alice\n -d /data\n --node-key 0000000000000000000000000000000000000000000000000000000000000001\n networks:\n testing_net:\n ipv4_address: 172.28.1.1\n\n node_bob:\n ports:\n - "30344:30333"\n - "9935:9933"\n - "9945:9944"\n - "29615:9615"\n image: parity/polkadot:latest\n volumes:\n - "polkadot-data-bob:/data"\n links:\n - "node_alice:alice"\n command: |\n --chain=polkadot-local\n --bob\n -d /data\n --bootnodes '/ip4/172.28.1.1/tcp/30333/p2p/QmRpheLN4JWdAnY7HGJfWFNbfkQCb6tFf4vvA6hgjMZKrR'\n networks:\n testing_net:\n ipv4_address: 172.28.1.2\n\nvolumes:\n polkadot-data-alice:\n polkadot-data-bob:\n\nnetworks:\n testing_net:\n ipam:\n driver: default\n config:\n - subnet: 172.28.0.0/16\n
dataset_sample\yaml\paritytech_polkadot\scripts\ci\dockerfiles\polkadot\docker-compose-local.yml
docker-compose-local.yml
YAML
1,052
0.7
0
0
vue-tools
60
2025-03-21T22:20:04.076758
GPL-3.0
false
9d5a4b9baafa991ed49515706b48964e
version: '3'\nservices:\n polkadot:\n image: parity/polkadot:latest\n\n ports:\n - "127.0.0.1:30333:30333/tcp"\n - "127.0.0.1:9933:9933/tcp"\n - "127.0.0.1:9944:9944/tcp"\n - "127.0.0.1:9615:9615/tcp"\n\n volumes:\n - "polkadot-data:/data"\n\n command: |\n --unsafe-rpc-external\n --unsafe-ws-external\n --rpc-cors all\n --prometheus-external\n\nvolumes:\n polkadot-data:\n
dataset_sample\yaml\paritytech_polkadot\scripts\ci\dockerfiles\polkadot\docker-compose.yml
docker-compose.yml
YAML
410
0.7
0
0
node-utils
305
2025-02-18T11:24:15.671300
Apache-2.0
false
f16224f3b99f65d02249a882011b6b69
# This file is part of .gitlab-ci.yml\n# Here are all jobs that are executed during "build" stage\n\nbuild-linux-stable:\n stage: build\n # this is an artificial job dependency, for pipeline optimization using GitLab's DAGs\n # the job can be found in check.yml\n needs:\n - job: job-starter\n artifacts: false\n extends:\n - .docker-env\n - .common-refs\n - .compiler-info\n - .collect-artifacts\n variables:\n RUST_TOOLCHAIN: stable\n # Enable debug assertions since we are running optimized builds for testing\n # but still want to have debug assertions.\n RUSTFLAGS: "-Cdebug-assertions=y -Dwarnings"\n # Ensure we run the UI tests.\n RUN_UI_TESTS: 1\n script:\n - time cargo build --locked --profile testnet --features pyroscope,fast-runtime --verbose --bins\n # pack artifacts\n - mkdir -p ./artifacts\n - VERSION="${CI_COMMIT_REF_NAME}" # will be tag or branch name\n - mv ./target/testnet/polkadot ./artifacts/.\n - mv ./target/testnet/polkadot-prepare-worker ./artifacts/.\n - mv ./target/testnet/polkadot-execute-worker ./artifacts/.\n - pushd artifacts\n - sha256sum polkadot | tee polkadot.sha256\n - shasum -c polkadot.sha256\n - popd\n - EXTRATAG="${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHORT_SHA}"\n - echo "Polkadot version = ${VERSION} (EXTRATAG = ${EXTRATAG})"\n - echo -n ${VERSION} > ./artifacts/VERSION\n - echo -n ${EXTRATAG} > ./artifacts/EXTRATAG\n - echo -n ${CI_JOB_ID} > ./artifacts/BUILD_LINUX_JOB_ID\n - RELEASE_VERSION=$(./artifacts/polkadot -V | awk '{print $2}'| awk -F "-" '{print $1}')\n - echo -n "v${RELEASE_VERSION}" > ./artifacts/BUILD_RELEASE_VERSION\n\nbuild-test-collators:\n stage: build\n # this is an artificial job dependency, for pipeline optimization using GitLab's DAGs\n # the job can be found in check.yml\n needs:\n - job: job-starter\n artifacts: false\n extends:\n - .docker-env\n - .common-refs\n - .compiler-info\n - .collect-artifacts\n script:\n - time cargo build --locked --profile testnet --verbose -p test-parachain-adder-collator\n - time cargo build --locked --profile testnet --verbose -p test-parachain-undying-collator\n # pack artifacts\n - mkdir -p ./artifacts\n - mv ./target/testnet/adder-collator ./artifacts/.\n - mv ./target/testnet/undying-collator ./artifacts/.\n - echo -n "${CI_COMMIT_REF_NAME}" > ./artifacts/VERSION\n - echo -n "${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHORT_SHA}" > ./artifacts/EXTRATAG\n - echo "adder-collator version = $(cat ./artifacts/VERSION) (EXTRATAG = $(cat ./artifacts/EXTRATAG))"\n - echo "undying-collator version = $(cat ./artifacts/VERSION) (EXTRATAG = $(cat ./artifacts/EXTRATAG))"\n\nbuild-malus:\n stage: build\n # this is an artificial job dependency, for pipeline optimization using GitLab's DAGs\n # the job can be found in check.yml\n needs:\n - job: job-starter\n artifacts: false\n extends:\n - .docker-env\n - .common-refs\n - .compiler-info\n - .collect-artifacts\n script:\n - time cargo build --locked --profile testnet --verbose -p polkadot-test-malus\n # pack artifacts\n - mkdir -p ./artifacts\n - mv ./target/testnet/malus ./artifacts/.\n - mv ./target/testnet/polkadot-execute-worker ./artifacts/.\n - mv ./target/testnet/polkadot-prepare-worker ./artifacts/.\n - echo -n "${CI_COMMIT_REF_NAME}" > ./artifacts/VERSION\n - echo -n "${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHORT_SHA}" > ./artifacts/EXTRATAG\n - echo "polkadot-test-malus = $(cat ./artifacts/VERSION) (EXTRATAG = $(cat ./artifacts/EXTRATAG))"\n\nbuild-staking-miner:\n stage: build\n # this is an artificial job dependency, for pipeline optimization using GitLab's DAGs\n # the job can be found in check.yml\n needs:\n - job: job-starter\n artifacts: false\n extends:\n - .docker-env\n - .common-refs\n - .compiler-info\n - .collect-artifacts\n script:\n - time cargo build --locked --release --package staking-miner\n # pack artifacts\n - mkdir -p ./artifacts\n - mv ./target/release/staking-miner ./artifacts/.\n - echo -n "${CI_COMMIT_REF_NAME}" > ./artifacts/VERSION\n - echo -n "${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHORT_SHA}" > ./artifacts/EXTRATAG\n - echo "staking-miner = $(cat ./artifacts/VERSION) (EXTRATAG = $(cat ./artifacts/EXTRATAG))"\n\nbuild-rustdoc:\n stage: build\n # this is an artificial job dependency, for pipeline optimization using GitLab's DAGs\n # the job can be found in test.yml\n needs:\n - job: test-deterministic-wasm\n artifacts: false\n extends:\n - .docker-env\n - .test-refs\n variables:\n SKIP_WASM_BUILD: 1\n artifacts:\n name: "${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}-doc"\n when: on_success\n expire_in: 1 days\n paths:\n - ./crate-docs/\n script:\n # FIXME: it fails with `RUSTDOCFLAGS="-Dwarnings"` and `--all-features`\n # FIXME: return to stable when https://github.com/rust-lang/rust/issues/96937 gets into stable\n - time cargo doc --workspace --verbose --no-deps\n - rm -f ./target/doc/.lock\n - mv ./target/doc ./crate-docs\n # FIXME: remove me after CI image gets nonroot\n - chown -R nonroot:nonroot ./crate-docs\n - echo "<meta http-equiv=refresh content=0;url=polkadot_service/index.html>" > ./crate-docs/index.html\n\nbuild-implementers-guide:\n stage: build\n # this is an artificial job dependency, for pipeline optimization using GitLab's DAGs\n # the job can be found in test.yml\n needs:\n - job: test-deterministic-wasm\n artifacts: false\n extends:\n - .kubernetes-env\n - .test-refs\n - .collect-artifacts-short\n # git depth is set on purpose: https://github.com/paritytech/polkadot/issues/6284\n variables:\n GIT_STRATEGY: clone\n GIT_DEPTH: 0\n CI_IMAGE: paritytech/mdbook-utils:e14aae4a-20221123\n script:\n - mdbook build ./roadmap/implementers-guide\n - mkdir -p artifacts\n - mv roadmap/implementers-guide/book artifacts/\n\nbuild-short-benchmark:\n stage: build\n # this is an artificial job dependency, for pipeline optimization using GitLab's DAGs\n # the job can be found in check.yml\n needs:\n - job: job-starter\n artifacts: false\n extends:\n - .docker-env\n - .test-refs\n - .collect-artifacts\n script:\n - cargo build --profile release --locked --features=runtime-benchmarks\n - mkdir artifacts\n - cp ./target/release/polkadot ./artifacts/\n
dataset_sample\yaml\paritytech_polkadot\scripts\ci\gitlab\pipeline\build.yml
build.yml
YAML
6,313
0.8
0.045977
0.161677
awesome-app
42
2024-05-16T16:18:07.055624
MIT
false
ef13b94416cda97876b57450dabc4b82
# This file is part of .gitlab-ci.yml\n# Here are all jobs that are executed during "check" stage\n\ncheck-runtime:\n stage: check\n image: paritytech/tools:latest\n extends:\n - .kubernetes-env\n rules:\n - if: $CI_COMMIT_REF_NAME =~ /^release-v[0-9]+\.[0-9]+.*$/ # i.e. release-v0.9.27\n variables:\n GITLAB_API: "https://gitlab.parity.io/api/v4"\n GITHUB_API_PROJECT: "parity%2Finfrastructure%2Fgithub-api"\n script:\n - ./scripts/ci/gitlab/check_runtime.sh\n allow_failure: true\n\ncargo-fmt:\n stage: check\n extends:\n - .docker-env\n - .test-refs\n script:\n - cargo +nightly --version\n - cargo +nightly fmt --all -- --check\n allow_failure: true\n\n# Disabled in https://github.com/paritytech/polkadot/pull/7512\n.spellcheck_disabled:\n stage: check\n extends:\n - .docker-env\n - .test-refs\n script:\n - cargo spellcheck --version\n # compare with the commit parent to the PR, given it's from a default branch\n - git fetch origin +${CI_DEFAULT_BRANCH}:${CI_DEFAULT_BRANCH}\n - echo "___Spellcheck is going to check your diff___"\n - cargo spellcheck list-files -vvv $(git diff --diff-filter=AM --name-only $(git merge-base ${CI_COMMIT_SHA} ${CI_DEFAULT_BRANCH} -- :^bridges))\n - time cargo spellcheck check -vvv --cfg=scripts/ci/gitlab/spellcheck.toml --checkers hunspell --code 1\n $(git diff --diff-filter=AM --name-only $(git merge-base ${CI_COMMIT_SHA} ${CI_DEFAULT_BRANCH} -- :^bridges))\n allow_failure: true\n\ncheck-try-runtime:\n stage: check\n extends:\n - .docker-env\n - .test-refs\n - .compiler-info\n script:\n # Check that everything compiles with `try-runtime` feature flag.\n - cargo check --locked --features try-runtime --all\n\n# More info can be found here: https://github.com/paritytech/polkadot/pull/5865\n.check-runtime-migration:\n stage: check\n extends:\n - .docker-env\n - .test-pr-refs\n - .compiler-info\n script:\n - |\n export RUST_LOG=remote-ext=debug,runtime=debug\n echo "---------- Running try-runtime for ${NETWORK} ----------"\n time cargo install --locked --git https://github.com/paritytech/try-runtime-cli --rev a93c9b5abe5d31a4cf1936204f7e5c489184b521\n time cargo build --release --locked -p "$NETWORK"-runtime --features try-runtime\n time try-runtime \\n --runtime ./target/release/wbuild/"$NETWORK"-runtime/target/wasm32-unknown-unknown/release/"$NETWORK"_runtime.wasm \\n on-runtime-upgrade --checks=pre-and-post live --uri wss://${NETWORK}-try-runtime-node.parity-chains.parity.io:443\n\ncheck-runtime-migration-polkadot:\n stage: check\n extends:\n - .docker-env\n - .test-pr-refs\n - .compiler-info\n - .check-runtime-migration\n variables:\n NETWORK: "polkadot"\n allow_failure: true # FIXME https://github.com/paritytech/substrate/issues/13107\n\ncheck-runtime-migration-kusama:\n stage: check\n extends:\n - .docker-env\n - .test-pr-refs\n - .compiler-info\n - .check-runtime-migration\n variables:\n NETWORK: "kusama"\n allow_failure: true # FIXME https://github.com/paritytech/substrate/issues/13107\n\ncheck-runtime-migration-westend:\n stage: check\n extends:\n - .docker-env\n - .test-pr-refs\n - .compiler-info\n - .check-runtime-migration\n variables:\n NETWORK: "westend"\n allow_failure: true # FIXME https://github.com/paritytech/substrate/issues/13107\n\ncheck-runtime-migration-rococo:\n stage: check\n extends:\n - .docker-env\n - .test-pr-refs\n - .compiler-info\n - .check-runtime-migration\n variables:\n NETWORK: "rococo"\n allow_failure: true # FIXME https://github.com/paritytech/substrate/issues/13107\n\n# is broken, need to fix\ncheck-no-default-features:\n stage: check\n extends:\n - .docker-env\n - .test-refs\n - .compiler-info\n script:\n # Check that polkadot-cli will compile no default features.\n - pushd ./node/service && cargo check --locked --no-default-features && popd\n - pushd ./cli && cargo check --locked --no-default-features --features "service" && popd\n - exit 0\n\n# this is artificial job to run some build and tests using DAG\njob-starter:\n stage: check\n image: paritytech/tools:latest\n extends:\n - .kubernetes-env\n - .common-refs\n script:\n - echo ok\n
dataset_sample\yaml\paritytech_polkadot\scripts\ci\gitlab\pipeline\check.yml
check.yml
YAML
4,196
0.8
0.073529
0.072
node-utils
204
2023-12-02T02:14:23.647131
MIT
false
e300166eafe529e792c0004fc5549a6e
# This file is part of .gitlab-ci.yml\n# Here are all jobs that are executed during "publish" stage\n\n# This image is used in testnets\n# Release image is handled by the Github Action here:\n# .github/workflows/publish-docker-release.yml\npublish-polkadot-debug-image:\n stage: publish\n extends:\n - .kubernetes-env\n - .build-push-image\n rules:\n # Don't run when triggered from another pipeline\n - if: $CI_PIPELINE_SOURCE == "pipeline"\n when: never\n - if: $CI_PIPELINE_SOURCE == "web"\n - if: $CI_PIPELINE_SOURCE == "schedule"\n - if: $CI_COMMIT_REF_NAME == "master"\n - if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs\n - if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1\n variables:\n IMAGE_NAME: "polkadot-debug"\n BINARY: "polkadot,polkadot-execute-worker,polkadot-prepare-worker"\n needs:\n - job: build-linux-stable\n artifacts: true\n after_script:\n - !reference [.build-push-image, after_script]\n # pass artifacts to the zombienet-tests job\n # https://docs.gitlab.com/ee/ci/multi_project_pipelines.html#with-variable-inheritance\n - echo "PARACHAINS_IMAGE_NAME=${IMAGE}" > ./artifacts/parachains.env\n - echo "PARACHAINS_IMAGE_TAG=$(cat ./artifacts/EXTRATAG)" >> ./artifacts/parachains.env\n artifacts:\n reports:\n # this artifact is used in zombienet-tests job\n dotenv: ./artifacts/parachains.env\n expire_in: 1 days\n\npublish-test-collators-image:\n # service image for Simnet\n stage: publish\n extends:\n - .kubernetes-env\n - .build-push-image\n - .zombienet-refs\n variables:\n IMAGE_NAME: "colander"\n BINARY: "adder-collator,undying-collator"\n needs:\n - job: build-test-collators\n artifacts: true\n after_script:\n - !reference [.build-push-image, after_script]\n # pass artifacts to the zombienet-tests job\n - echo "COLLATOR_IMAGE_NAME=${IMAGE}" > ./artifacts/collator.env\n - echo "COLLATOR_IMAGE_TAG=$(cat ./artifacts/EXTRATAG)" >> ./artifacts/collator.env\n artifacts:\n reports:\n # this artifact is used in zombienet-tests job\n dotenv: ./artifacts/collator.env\n\npublish-malus-image:\n # service image for Simnet\n stage: publish\n extends:\n - .kubernetes-env\n - .build-push-image\n - .zombienet-refs\n variables:\n IMAGE_NAME: "malus"\n BINARY: "malus,polkadot-execute-worker,polkadot-prepare-worker"\n needs:\n - job: build-malus\n artifacts: true\n after_script:\n - !reference [.build-push-image, after_script]\n # pass artifacts to the zombienet-tests job\n - echo "MALUS_IMAGE_NAME=${IMAGE}" > ./artifacts/malus.env\n - echo "MALUS_IMAGE_TAG=$(cat ./artifacts/EXTRATAG)" >> ./artifacts/malus.env\n artifacts:\n reports:\n # this artifact is used in zombienet-tests job\n dotenv: ./artifacts/malus.env\n\npublish-staking-miner-image:\n stage: publish\n extends:\n - .kubernetes-env\n - .build-push-image\n - .publish-refs\n variables:\n IMAGE_NAME: "staking-miner"\n BINARY: "staking-miner"\n DOCKER_OWNER: "paritytech"\n DOCKER_USER: "${Docker_Hub_User_Parity}"\n DOCKER_PASS: "${Docker_Hub_Pass_Parity}"\n needs:\n - job: build-staking-miner\n artifacts: true\n\npublish-polkadot-image-description:\n stage: publish\n image: paritytech/dockerhub-description\n variables:\n DOCKER_USERNAME: ${Docker_Hub_User_Parity}\n DOCKER_PASSWORD: ${Docker_Hub_Pass_Parity}\n DOCKERHUB_REPOSITORY: parity/polkadot\n SHORT_DESCRIPTION: "Polkadot Official Docker Image"\n README_FILEPATH: $CI_PROJECT_DIR/scripts/ci/dockerfiles/polkadot/polkadot_Dockerfile.README.md\n rules:\n - if: $CI_COMMIT_REF_NAME == "master"\n changes:\n - scripts/ci/dockerfiles/polkadot/polkadot_Dockerfile.README.md\n - if: $CI_PIPELINE_SOURCE == "schedule"\n when: never\n script:\n - cd / && sh entrypoint.sh\n tags:\n - kubernetes-parity-build\n\npublish-staking-miner-image-description:\n stage: publish\n image: paritytech/dockerhub-description\n variables:\n DOCKER_USERNAME: ${Docker_Hub_User_Parity}\n DOCKER_PASSWORD: ${Docker_Hub_Pass_Parity}\n DOCKERHUB_REPOSITORY: paritytech/staking-miner\n SHORT_DESCRIPTION: "Staking-miner Docker Image"\n README_FILEPATH: $CI_PROJECT_DIR/scripts/ci/dockerfiles/staking-miner/staking-miner_Dockerfile.README.md\n rules:\n - if: $CI_COMMIT_REF_NAME == "master"\n changes:\n - scripts/ci/dockerfiles/staking-miner/staking-miner_Dockerfile.README.md\n - if: $CI_PIPELINE_SOURCE == "schedule"\n when: never\n script:\n - cd / && sh entrypoint.sh\n tags:\n - kubernetes-parity-build\n\npublish-s3-release:\n stage: publish\n extends:\n - .kubernetes-env\n needs:\n - job: build-linux-stable\n artifacts: true\n variables:\n CI_IMAGE: paritytech/awscli:latest\n GIT_STRATEGY: none\n PREFIX: "builds/polkadot/${ARCH}-${DOCKER_OS}"\n rules:\n - if: $CI_PIPELINE_SOURCE == "pipeline"\n when: never\n # publishing binaries nightly\n - if: $CI_PIPELINE_SOURCE == "schedule"\n before_script:\n - !reference [.build-push-image, before_script]\n script:\n - echo "uploading objects to https://releases.parity.io/${PREFIX}/${VERSION}"\n - aws s3 sync --acl public-read ./artifacts/ s3://${AWS_BUCKET}/${PREFIX}/${VERSION}/\n - echo "update objects at https://releases.parity.io/${PREFIX}/${EXTRATAG}"\n - find ./artifacts -type f | while read file; do\n name="${file#./artifacts/}";\n aws s3api copy-object\n --copy-source ${AWS_BUCKET}/${PREFIX}/${VERSION}/${name}\n --bucket ${AWS_BUCKET} --key ${PREFIX}/${EXTRATAG}/${name};\n done\n - |\n cat <<-EOM\n |\n | polkadot binary paths:\n |\n | - https://releases.parity.io/${PREFIX}/${EXTRATAG}/polkadot\n | - https://releases.parity.io/${PREFIX}/${VERSION}/polkadot\n |\n EOM\n after_script:\n - aws s3 ls s3://${AWS_BUCKET}/${PREFIX}/${EXTRATAG}/\n --recursive --human-readable --summarize\n\npublish-rustdoc:\n stage: publish\n extends:\n - .kubernetes-env\n variables:\n CI_IMAGE: paritytech/tools:latest\n rules:\n - if: $CI_PIPELINE_SOURCE == "pipeline"\n when: never\n - if: $CI_PIPELINE_SOURCE == "web" && $CI_COMMIT_REF_NAME == "master"\n - if: $CI_COMMIT_REF_NAME == "master"\n # `needs:` can be removed after CI image gets nonroot. In this case `needs:` stops other\n # artifacts from being dowloaded by this job.\n needs:\n - job: build-rustdoc\n artifacts: true\n - job: build-implementers-guide\n artifacts: true\n script:\n # Save README and docs\n - cp -r ./crate-docs/ /tmp/doc/\n - cp -r ./artifacts/book/ /tmp/\n # setup ssh\n - eval $(ssh-agent)\n - ssh-add - <<< ${GITHUB_SSH_PRIV_KEY}\n - mkdir ~/.ssh && touch ~/.ssh/known_hosts\n - ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts\n # Set git config\n - git config user.email "devops-team@parity.io"\n - git config user.name "${GITHUB_USER}"\n - git config remote.origin.url "git@github.com:/paritytech/${CI_PROJECT_NAME}.git"\n - git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"\n - git fetch origin gh-pages\n - git checkout gh-pages\n # Remove everything and restore generated docs and README\n - cp index.html /tmp\n - cp README.md /tmp\n - rm -rf ./*\n # dir for rustdoc\n - mkdir -p doc\n # dir for implementors guide\n - mkdir -p book\n - mv /tmp/doc/* doc/\n - mv /tmp/book/html/* book/\n - mv /tmp/index.html .\n - mv /tmp/README.md .\n # Upload files\n - git add --all --force\n # `git commit` has an exit code of > 0 if there is nothing to commit.\n # This causes GitLab to exit immediately and marks this job failed.\n # We don't want to mark the entire job failed if there's nothing to\n # publish though, hence the `|| true`.\n - git commit -m "Updated docs for ${CI_COMMIT_REF_NAME}" ||\n echo "___Nothing to commit___"\n - git push origin gh-pages --force\n - echo "___Rustdoc was successfully published to https://paritytech.github.io/polkadot/___"\n after_script:\n - rm -rf .git/ ./*\n\n.update-substrate-template-repository:\n stage: publish\n extends: .kubernetes-env\n variables:\n GIT_STRATEGY: none\n rules:\n # The template is only updated for FINAL releases\n # i.e. the rule should not cover RC or patch releases\n - if: $CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+$/ # e.g. v1.0\n - if: $CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+$/ # e.g. v1.0.0\n script:\n - git clone --depth=1 --branch="$PIPELINE_SCRIPTS_TAG" https://github.com/paritytech/pipeline-scripts\n - export POLKADOT_BRANCH="polkadot-$CI_COMMIT_TAG"\n - git clone --depth=1 --branch="$POLKADOT_BRANCH" https://github.com/paritytech/"$TEMPLATE_SOURCE"\n - cd "$TEMPLATE_SOURCE"\n - ../pipeline-scripts/update_substrate_template.sh\n --repo-name "$TARGET_REPOSITORY"\n --template-path "$TEMPLATE_PATH"\n --github-api-token "$GITHUB_TOKEN"\n --polkadot-branch "$POLKADOT_BRANCH"\n\n# Ref: https://github.com/paritytech/opstooling/issues/111\nupdate-node-template:\n extends: .update-substrate-template-repository\n variables:\n TARGET_REPOSITORY: substrate-node-template\n TEMPLATE_SOURCE: substrate\n TEMPLATE_PATH: bin/node-template\n\n# Ref: https://github.com/paritytech/opstooling/issues/111\nupdate-parachain-template:\n extends: .update-substrate-template-repository\n variables:\n TARGET_REPOSITORY: substrate-parachain-template\n TEMPLATE_SOURCE: cumulus\n TEMPLATE_PATH: parachain-template\n
dataset_sample\yaml\paritytech_polkadot\scripts\ci\gitlab\pipeline\publish.yml
publish.yml
YAML
9,418
0.8
0.094203
0.124528
awesome-app
913
2024-10-13T19:47:37.543361
MIT
false
62425e139d85d865c5a62986a42f0b4c
# This file is part of .gitlab-ci.yml\n# Here are all jobs that are executed during "short-benchmarks" stage\n\n# Run all pallet benchmarks only once to check if there are any errors\nshort-benchmark-polkadot: &short-bench\n stage: short-benchmarks\n extends:\n - .test-pr-refs\n - .docker-env\n # this is an artificial job dependency, for pipeline optimization using GitLab's DAGs\n needs:\n - job: build-short-benchmark\n artifacts: true\n variables:\n RUNTIME: polkadot\n script:\n - ./artifacts/polkadot benchmark pallet --wasm-execution compiled --chain $RUNTIME-dev --pallet "*" --extrinsic "*" --steps 2 --repeat 1\n\nshort-benchmark-kusama:\n <<: *short-bench\n variables:\n RUNTIME: kusama\n\nshort-benchmark-westend:\n <<: *short-bench\n variables:\n RUNTIME: westend\n
dataset_sample\yaml\paritytech_polkadot\scripts\ci\gitlab\pipeline\short-benchmarks.yml
short-benchmarks.yml
YAML
788
0.8
0.074074
0.166667
node-utils
482
2024-06-23T11:15:02.466697
BSD-3-Clause
false
7ee41eb9e8dcb2387a4e8ea73e6f48fe