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
blank_issues_enabled: false\ncontact_links:\n - name: Feature Request\n url: https://github.com/rustdesk/rustdesk/discussions/categories/feature-request\n about: Discuss ideas for new features or enhancements, it will be converted to GitHub issue when we commit to building those changes or are helping a community member contribute their own changes\n - name: Ask a question\n url: https://github.com/rustdesk/rustdesk/discussions/category_choices\n about: Ask questions and discuss with other community members.\n
dataset_sample\yaml\rustdesk_rustdesk\.github\ISSUE_TEMPLATE\config.yml
config.yml
YAML
521
0.8
0.125
0
react-lib
338
2025-07-06T01:58:37.289032
Apache-2.0
false
6629e689fb9d3d2173f18de63c264444
# This yaml shares the build bridge steps with ci and nightly.\nname: Build flutter-rust-bridge\n# 2023-11-23 18:00:00+00:00\n\non:\n workflow_call:\n\nenv:\n CARGO_EXPAND_VERSION: "1.0.95"\n FLUTTER_VERSION: "3.22.3"\n FLUTTER_RUST_BRIDGE_VERSION: "1.80.1"\n RUST_VERSION: "1.75" # https://github.com/rustdesk/rustdesk/discussions/7503\n\njobs:\n generate_bridge:\n runs-on: ${{ matrix.job.os }}\n strategy:\n fail-fast: false\n matrix:\n job:\n - {\n target: x86_64-unknown-linux-gnu,\n os: ubuntu-22.04,\n extra-build-args: "",\n }\n steps:\n - name: Checkout source code\n uses: actions/checkout@v4\n with:\n submodules: recursive\n\n - name: Install prerequisites\n run: |\n sudo apt-get install ca-certificates -y\n sudo apt-get update -y\n sudo apt-get install -y \\n clang \\n cmake \\n curl \\n gcc \\n git \\n g++ \\n libclang-11-dev \\n libgtk-3-dev \\n llvm-11-dev \\n nasm \\n ninja-build \\n pkg-config \\n wget\n\n - name: Install Rust toolchain\n uses: dtolnay/rust-toolchain@v1\n with:\n toolchain: ${{ env.RUST_VERSION }}\n targets: ${{ matrix.job.target }}\n components: "rustfmt"\n\n - uses: Swatinem/rust-cache@v2\n with:\n prefix-key: bridge-${{ matrix.job.os }}\n\n - name: Cache Bridge\n id: cache-bridge\n uses: actions/cache@v3\n with:\n path: /tmp/flutter_rust_bridge\n key: vcpkg-${{ matrix.job.arch }}\n\n - name: Install flutter\n uses: subosito/flutter-action@v2\n with:\n channel: "stable"\n flutter-version: ${{ env.FLUTTER_VERSION }}\n cache: true\n\n - name: Install flutter rust bridge deps\n shell: bash\n run: |\n cargo install cargo-expand --version ${{ env.CARGO_EXPAND_VERSION }} --locked\n cargo install flutter_rust_bridge_codegen --version ${{ env.FLUTTER_RUST_BRIDGE_VERSION }} --features "uuid" --locked\n pushd flutter && sed -i -e 's/extended_text: 14.0.0/extended_text: 13.0.0/g' pubspec.yaml && flutter pub get && popd\n\n - name: Run flutter rust bridge\n run: |\n ~/.cargo/bin/flutter_rust_bridge_codegen --rust-input ./src/flutter_ffi.rs --dart-output ./flutter/lib/generated_bridge.dart --c-output ./flutter/macos/Runner/bridge_generated.h\n cp ./flutter/macos/Runner/bridge_generated.h ./flutter/ios/Runner/bridge_generated.h\n\n - name: Upload Artifact\n uses: actions/upload-artifact@master\n with:\n name: bridge-artifact\n path: |\n ./src/bridge_generated.rs\n ./src/bridge_generated.io.rs\n ./flutter/lib/generated_bridge.dart\n ./flutter/lib/generated_bridge.freezed.dart\n ./flutter/macos/Runner/bridge_generated.h\n ./flutter/ios/Runner/bridge_generated.h\n
dataset_sample\yaml\rustdesk_rustdesk\.github\workflows\bridge.yml
bridge.yml
YAML
3,059
0.8
0
0.022989
node-utils
509
2024-04-23T18:02:02.113955
GPL-3.0
false
4b67c657ecb80676f5ec4c058f5c1fdc
name: CI\n\nenv:\n# MIN_SUPPORTED_RUST_VERSION: "1.46.0"\n# CICD_INTERMEDIATES_DIR: "_cicd-intermediates"\n VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"\n # for multiarch gcc compatibility\n VCPKG_COMMIT_ID: "6f29f12e82a8293156836ad81cc9bf5af41fe836"\n\non:\n workflow_dispatch:\n pull_request:\n paths-ignore:\n - "docs/**"\n - "README.md"\n push:\n branches:\n - master\n paths-ignore:\n - ".github/**"\n - "docs/**"\n - "README.md"\n - "res/**"\n - "appimage/**"\n - "flatpak/**"\n\njobs:\n # ensure_cargo_fmt:\n # name: Ensure 'cargo fmt' has been run\n # runs-on: ubuntu-20.04\n # steps:\n # - uses: actions-rs/toolchain@v1\n # with:\n # toolchain: stable\n # default: true\n # profile: minimal\n # components: rustfmt\n # - uses: actions/checkout@v3\n # - run: cargo fmt -- --check\n\n # min_version:\n # name: Minimum supported rust version\n # runs-on: ubuntu-20.04\n # steps:\n # - name: Checkout source code\n # uses: actions/checkout@v3\n # with:\n # submodules: recursive\n\n # - name: Install rust toolchain (v${{ env.MIN_SUPPORTED_RUST_VERSION }})\n # uses: actions-rs/toolchain@v1\n # with:\n # toolchain: ${{ env.MIN_SUPPORTED_RUST_VERSION }}\n # default: true\n # profile: minimal # minimal component installation (ie, no documentation)\n # components: clippy\n # - name: Run clippy (on minimum supported rust version to prevent warnings we can't fix)\n # uses: actions-rs/cargo@v1\n # with:\n # command: clippy\n # args: --locked --all-targets --all-features -- --allow clippy::unknown_clippy_lints\n # - name: Run tests\n # uses: actions-rs/cargo@v1\n # with:\n # command: test\n # args: --locked\n\n build:\n name: ${{ matrix.job.target }} (${{ matrix.job.os }})\n runs-on: ${{ matrix.job.os }}\n strategy:\n fail-fast: false\n matrix:\n job:\n # - { target: aarch64-unknown-linux-gnu , os: ubuntu-20.04, use-cross: true }\n # - { target: arm-unknown-linux-gnueabihf , os: ubuntu-20.04, use-cross: true }\n # - { target: arm-unknown-linux-musleabihf, os: ubuntu-20.04, use-cross: true }\n # - { target: i686-pc-windows-msvc , os: windows-2022 }\n # - { target: i686-unknown-linux-gnu , os: ubuntu-20.04, use-cross: true }\n # - { target: i686-unknown-linux-musl , os: ubuntu-20.04, use-cross: true }\n # - { target: x86_64-apple-darwin , os: macos-10.15 }\n # - { target: x86_64-pc-windows-gnu , os: windows-2022 }\n # - { target: x86_64-pc-windows-msvc , os: windows-2022 }\n - { target: x86_64-unknown-linux-gnu , os: ubuntu-22.04 }\n # - { target: x86_64-unknown-linux-musl , os: ubuntu-20.04, use-cross: true }\n steps:\n - name: Export GitHub Actions cache environment variables\n uses: actions/github-script@v6\n with:\n script: |\n core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');\n core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');\n\n - name: Checkout source code\n uses: actions/checkout@v4\n with:\n submodules: recursive\n\n - name: Install prerequisites\n shell: bash\n run: |\n case ${{ matrix.job.target }} in\n x86_64-unknown-linux-gnu)\n sudo apt-get -y update\n sudo apt-get install -y \\n clang \\n cmake \\n curl \\n gcc \\n git \\n g++ \\n libpam0g-dev \\n libasound2-dev \\n libunwind-dev \\n libgstreamer1.0-dev \\n libgstreamer-plugins-base1.0-dev \\n libgtk-3-dev \\n libpulse-dev \\n libva-dev \\n libvdpau-dev \\n libxcb-randr0-dev \\n libxcb-shape0-dev \\n libxcb-xfixes0-dev \\n libxdo-dev \\n libxfixes-dev \\n nasm \\n wget\n ;;\n # arm-unknown-linux-*) sudo apt-get -y update ; sudo apt-get -y install gcc-arm-linux-gnueabihf ;;\n # aarch64-unknown-linux-gnu) sudo apt-get -y update ; sudo apt-get -y install gcc-aarch64-linux-gnu ;;\n esac\n\n - name: Setup vcpkg with Github Actions binary cache\n uses: lukka/run-vcpkg@v11\n with:\n vcpkgDirectory: /opt/artifacts/vcpkg\n vcpkgGitCommitId: ${{ env.VCPKG_COMMIT_ID }}\n\n - name: Install vcpkg dependencies\n run: |\n $VCPKG_ROOT/vcpkg install --x-install-root="$VCPKG_ROOT/installed"\n shell: bash\n\n - name: Install Rust toolchain\n uses: dtolnay/rust-toolchain@v1\n with:\n toolchain: stable\n targets: ${{ matrix.job.target }}\n components: ''\n\n - name: Show version information (Rust, cargo, GCC)\n shell: bash\n run: |\n gcc --version || true\n rustup -V\n rustup toolchain list\n rustup default\n cargo -V\n rustc -V\n\n - uses: Swatinem/rust-cache@v2\n\n - name: Build\n uses: actions-rs/cargo@v1\n with:\n use-cross: ${{ matrix.job.use-cross }}\n command: build\n args: --locked --target=${{ matrix.job.target }}\n\n - name: clean\n shell: bash\n run: |\n cargo clean\n\n # - name: Strip debug information from executable\n # id: strip\n # shell: bash\n # run: |\n # # Figure out suffix of binary\n # EXE_suffix=""\n # case ${{ matrix.job.target }} in\n # *-pc-windows-*) EXE_suffix=".exe" ;;\n # esac;\n\n # # Figure out what strip tool to use if any\n # STRIP="strip"\n # case ${{ matrix.job.target }} in\n # arm-unknown-linux-*) STRIP="arm-linux-gnueabihf-strip" ;;\n # aarch64-unknown-linux-gnu) STRIP="aarch64-linux-gnu-strip" ;;\n # *-pc-windows-msvc) STRIP="" ;;\n # esac;\n\n # # Setup paths\n # BIN_DIR="${{ env.CICD_INTERMEDIATES_DIR }}/stripped-release-bin/"\n # mkdir -p "${BIN_DIR}"\n # BIN_NAME="${{ env.PROJECT_NAME }}${EXE_suffix}"\n # BIN_PATH="${BIN_DIR}/${BIN_NAME}"\n\n # # Copy the release build binary to the result location\n # cp "target/${{ matrix.job.target }}/release/${BIN_NAME}" "${BIN_DIR}"\n\n # # Also strip if possible\n # if [ -n "${STRIP}" ]; then\n # "${STRIP}" "${BIN_PATH}"\n # fi\n\n # # Let subsequent steps know where to find the (stripped) bin\n # echo ::set-output name=BIN_PATH::${BIN_PATH}\n # echo ::set-output name=BIN_NAME::${BIN_NAME}\n\n - name: Set testing options\n id: test-options\n shell: bash\n run: |\n # test only library unit tests and binary for arm-type targets\n unset CARGO_TEST_OPTIONS\n\n case ${{ matrix.job.target }} in\n arm-* | aarch64-*)\n CARGO_TEST_OPTIONS="--lib --bin ${PROJECT_NAME}"\n ;;\n *)\n CARGO_TEST_OPTIONS="--workspace --no-fail-fast -- --skip test_get_cursor_pos --skip test_get_key_state"\n ;;\n esac;\n\n #deprecated echo ::set-output name=CARGO_TEST_OPTIONS::${CARGO_TEST_OPTIONS}\n echo "CARGO_TEST_OPTIONS=${CARGO_TEST_OPTIONS}" >> $GITHUB_ENV\n echo "CARGO_TEST_OPTIONS=${CARGO_TEST_OPTIONS}" >> $GITHUB_OUTPUT\n\n - name: Run tests\n uses: actions-rs/cargo@v1\n with:\n use-cross: ${{ matrix.job.use-cross }}\n command: test\n args: --locked --target=${{ matrix.job.target }} ${{ steps.test-options.outputs.CARGO_TEST_OPTIONS}}\n
dataset_sample\yaml\rustdesk_rustdesk\.github\workflows\ci.yml
ci.yml
YAML
7,786
0.8
0.021186
0.402844
vue-tools
13
2024-01-04T11:40:49.885190
GPL-3.0
false
f393f7007dc180cae6236b555cc87611
name: Clear cache\n\non:\n workflow_dispatch:\n\npermissions:\n actions: write\n\njobs:\n clear-cache:\n runs-on: ubuntu-latest\n steps:\n - name: Clear cache\n uses: actions/github-script@v7\n with:\n script: |\n console.log("About to clear")\n const caches = await github.rest.actions.getActionsCacheList({\n owner: context.repo.owner,\n repo: context.repo.repo,\n })\n for (const cache of caches.data.actions_caches) {\n console.log(cache)\n github.rest.actions.deleteActionsCacheById({\n owner: context.repo.owner,\n repo: context.repo.repo,\n cache_id: cache.id,\n })\n }\n console.log("Clear completed")\n \n - name: Purge cache # Above seems not clear thouroughly, so add this to double clear\n uses: MyAlbum/purge-cache@v2\n with:\n accessed: true # Purge caches by their last accessed time (default)\n created: false # Purge caches by their created time (default)\n max-age: 1 # in seconds\n
dataset_sample\yaml\rustdesk_rustdesk\.github\workflows\clear-cache.yml
clear-cache.yml
YAML
1,133
0.8
0.027027
0
python-kit
891
2024-06-10T19:12:05.690163
GPL-3.0
false
b0191131b93d49a5b092fe9a417befc9
name: Fdroid version file generation\n\non:\n workflow_dispatch:\n push:\n tags:\n - 'v[0-9]+.[0-9]+.[0-9]+'\n - '[0-9]+.[0-9]+.[0-9]+'\n - 'v[0-9]+.[0-9]+.[0-9]+-[0-9]+'\n - '[0-9]+.[0-9]+.[0-9]+-[0-9]+'\n\njobs:\n # https://gitlab.com/fdroid/fdroiddata/-/blob/master/metadata/com.carriez.flutter_hbb.yml\n # Finds latest release and transforms F-Droid version code from version as follows:\n # X.Y.Z-A => X * 1e6 + Y * 1e4 + Z * 1e2 + A\n update-fdroid-version-file:\n name: Publish RustDesk version file for F-Droid updater\n runs-on: ubuntu-latest\n steps:\n - name: Generate RustDesk version file\n run: |\n if [ "${GITHUB_REF_TYPE}" = "tag" ]; then\n UPSTREAM_VERNAME="${GITHUB_REF##refs/tags/}"\n UPSTREAM_VERNAME="${UPSTREAM_VERNAME##v}"\n else\n UPSTREAM_VERNAME="$(curl https://api.github.com/repos/rustdesk/rustdesk/releases/latest | jq -r .tag_name | sed 's/^v//')"\n fi\n UPSTREAM_VERCODE="$(echo "$UPSTREAM_VERNAME" | tr '.' ' ' | tr '-' ' ' | while read -r MAJOR MINOR PATCH REV; do [ -z "$MAJOR" ] && MAJOR=0; [ -z "$MINOR" ] && MINOR=0; [ -z "$PATCH" ] && PATCH=0; [ -z "$REV" ] && REV=0; echo "$(( 1000000 * $MAJOR + 10000 * $MINOR + 100 * $PATCH + $REV ))"; done)"\n echo "versionName=$UPSTREAM_VERNAME" > rustdesk-version.txt\n echo "versionCode=$UPSTREAM_VERCODE" >> rustdesk-version.txt\n shell: bash\n\n - name: Publish RustDesk version file\n uses: softprops/action-gh-release@v1\n with:\n prerelease: true\n tag_name: "fdroid-version"\n files: |\n ./rustdesk-version.txt\n
dataset_sample\yaml\rustdesk_rustdesk\.github\workflows\fdroid.yml
fdroid.yml
YAML
1,661
0.8
0.076923
0.083333
python-kit
152
2023-12-24T16:19:54.013188
GPL-3.0
false
405726bbef802343176dd3b8ec5dba69
name: Full Flutter CI\n\non:\n workflow_dispatch:\n pull_request:\n paths-ignore:\n - "docs/**"\n - "README.md"\n push:\n branches:\n - master\n paths-ignore:\n - ".github/**"\n - "docs/**"\n - "README.md"\n - "res/**"\n - "appimage/**"\n - "flatpak/**"\n\njobs:\n run-ci:\n uses: ./.github/workflows/flutter-build.yml\n with:\n upload-artifact: false\n
dataset_sample\yaml\rustdesk_rustdesk\.github\workflows\flutter-ci.yml
flutter-ci.yml
YAML
394
0.8
0
0
vue-tools
1,000
2024-06-17T16:53:20.725642
Apache-2.0
false
e806c9d8c88e2d17213ce1a1940300bd
name: Flutter Nightly Build\n\non:\n schedule:\n # schedule build every night\n - cron: "0 0 * * *"\n workflow_dispatch:\n\njobs:\n run-flutter-nightly-build:\n uses: ./.github/workflows/flutter-build.yml\n secrets: inherit\n with:\n upload-artifact: true\n upload-tag: "nightly"\n
dataset_sample\yaml\rustdesk_rustdesk\.github\workflows\flutter-nightly.yml
flutter-nightly.yml
YAML
294
0.8
0
0.076923
vue-tools
328
2024-10-03T14:50:14.137826
Apache-2.0
false
45372d303bd97a09e90351915ebd910c
name: Flutter Tag Build\n\non:\n workflow_dispatch:\n push:\n tags:\n - 'v[0-9]+.[0-9]+.[0-9]+'\n - '[0-9]+.[0-9]+.[0-9]+'\n - 'v[0-9]+.[0-9]+.[0-9]+-[0-9]+'\n - '[0-9]+.[0-9]+.[0-9]+-[0-9]+'\n\njobs:\n run-flutter-tag-build:\n uses: ./.github/workflows/flutter-build.yml\n secrets: inherit\n with:\n upload-artifact: true\n upload-tag: ${{ github.ref_name }}
dataset_sample\yaml\rustdesk_rustdesk\.github\workflows\flutter-tag.yml
flutter-tag.yml
YAML
387
0.7
0
0
vue-tools
845
2024-12-24T15:24:27.096417
Apache-2.0
false
cd59c249fa1848025737a8e13ec7d035
name: playground\n\non:\n #schedule:\n # schedule build every night\n # - cron: "0/6 * * * *"\n workflow_dispatch:\n\nenv:\n RUST_VERSION: "1.75" # https://github.com/rustdesk/rustdesk/discussions/7503\n CARGO_NDK_VERSION: "3.1.2"\n LLVM_VERSION: "15.0.6"\n FLUTTER_VERSION: "3.22.2"\n FLUTTER_RUST_BRIDGE_VERSION: "1.80.1"\n # for arm64 linux because official Dart SDK does not work\n FLUTTER_ELINUX_VERSION: "3.16.9"\n TAG_NAME: "nightly"\n VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"\n VCPKG_COMMIT_ID: "6f29f12e82a8293156836ad81cc9bf5af41fe836"\n VERSION: "1.3.9"\n NDK_VERSION: "r26d"\n #signing keys env variable checks\n ANDROID_SIGNING_KEY: "${{ secrets.ANDROID_SIGNING_KEY }}"\n MACOS_P12_BASE64: "${{ secrets.MACOS_P12_BASE64 }}"\n # To make a custom build with your own servers set the below secret values\n RS_PUB_KEY: "${{ secrets.RS_PUB_KEY }}"\n RENDEZVOUS_SERVER: "${{ secrets.RENDEZVOUS_SERVER }}"\n API_SERVER: "${{ secrets.API_SERVER }}"\n UPLOAD_ARTIFACT: "${{ inputs.upload-artifact }}"\n SIGN_BASE_URL: "${{ secrets.SIGN_BASE_URL }}"\n\njobs:\n build-for-macOS:\n name: ${{ matrix.job.target }}\n runs-on: ${{ matrix.job.os }}\n strategy:\n fail-fast: false\n matrix:\n job:\n - {\n target: x86_64-apple-darwin,\n os: macos-13, #macos-latest or macos-14 use M1 now, https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#:~:text=14%20GB-,macos%2Dlatest%20or%20macos%2D14,-The%20macos%2Dlatestlabel\n extra-build-args: "",\n arch: x86_64,\n flutter: "3.13.9",\n ref: "f6509e3fd6917aa976bad2fc684182601ebf2434",\n bridge: "1.80.1",\n date: "20231219"\n }\n - {\n target: x86_64-apple-darwin,\n os: macos-13, #macos-latest or macos-14 use M1 now, https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#:~:text=14%20GB-,macos%2Dlatest%20or%20macos%2D14,-The%20macos%2Dlatestlabel\n extra-build-args: "",\n arch: x86_64,\n flutter: "3.10.6",\n ref: "f6509e3fd6917aa976bad2fc684182601ebf2434",\n bridge: "1.80.1",\n date: "20231219"\n }\n - {\n target: x86_64-apple-darwin,\n os: macos-13, #macos-latest or macos-14 use M1 now, https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#:~:text=14%20GB-,macos%2Dlatest%20or%20macos%2D14,-The%20macos%2Dlatestlabel\n extra-build-args: "",\n arch: x86_64,\n flutter: "3.10.6",\n ref: "85ddfc0739f052cab0029c46b899b959ee94eeb8",\n bridge: "1.80.1",\n date: "20231119"\n }\n - {\n target: x86_64-apple-darwin,\n os: macos-13, #macos-latest or macos-14 use M1 now, https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#:~:text=14%20GB-,macos%2Dlatest%20or%20macos%2D14,-The%20macos%2Dlatestlabel\n extra-build-args: "",\n arch: x86_64,\n flutter: "3.13.9",\n ref: "85ddfc0739f052cab0029c46b899b959ee94eeb8",\n bridge: "1.80.1",\n date: "20231119"\n }\n steps:\n - name: Export GitHub Actions cache environment variables\n uses: actions/github-script@v6\n with:\n script: |\n core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');\n core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');\n\n - name: Checkout source code\n uses: actions/checkout@v3\n with:\n ref: ${{ matrix.job.ref }}\n submodules: recursive\n\n - name: Import the codesign cert\n if: env.MACOS_P12_BASE64 != null\n uses: apple-actions/import-codesign-certs@v1\n with:\n p12-file-base64: ${{ secrets.MACOS_P12_BASE64 }}\n p12-password: ${{ secrets.MACOS_P12_PASSWORD }}\n keychain: rustdesk\n\n - name: Check sign and import sign key\n if: env.MACOS_P12_BASE64 != null\n run: |\n security default-keychain -s rustdesk.keychain\n security find-identity -v\n\n - name: Import notarize key\n if: env.MACOS_P12_BASE64 != null\n uses: timheuer/base64-to-file@v1.2\n with:\n # https://gregoryszorc.com/docs/apple-codesign/stable/apple_codesign_rcodesign.html#notarizing-and-stapling\n fileName: rustdesk.json\n fileDir: ${{ github.workspace }}\n encodedString: ${{ secrets.MACOS_NOTARIZE_JSON }}\n\n - name: Install rcodesign tool\n if: env.MACOS_P12_BASE64 != null\n shell: bash\n run: |\n pushd /tmp\n wget https://github.com/indygreg/apple-platform-rs/releases/download/apple-codesign%2F0.22.0/apple-codesign-0.22.0-macos-universal.tar.gz\n tar -zxvf apple-codesign-0.22.0-macos-universal.tar.gz\n mv apple-codesign-0.22.0-macos-universal/rcodesign /usr/local/bin\n popd\n\n - name: Install build runtime\n run: |\n brew install llvm create-dmg nasm cmake gcc wget ninja pkg-config\n\n - name: Install flutter\n uses: subosito/flutter-action@v2\n with:\n channel: "stable"\n flutter-version: ${{ matrix.job.flutter }}\n\n - name: Install Rust toolchain\n uses: dtolnay/rust-toolchain@v1\n with:\n toolchain: ${{ env.RUST_VERSION }}\n targets: ${{ matrix.job.target }}\n components: "rustfmt"\n\n - uses: Swatinem/rust-cache@v2\n with:\n prefix-key: ${{ matrix.job.os }}\n\n - name: Install flutter rust bridge deps\n shell: bash\n run: |\n sed -i '' 's/3.1.0/2.17.0/g' flutter/pubspec.yaml;\n cargo install flutter_rust_bridge_codegen --version ${{ matrix.job.bridge }} --features "uuid" --locked\n # below works for mac to make buildable on 3.13.9\n # pushd flutter/lib; find . -name "*.dart" | xargs -I{} sed -i '' 's/textScaler: TextScaler.linear(\(.*\)),/textScaleFactor: \1,/g' {}; popd;\n pushd flutter && flutter pub get && popd\n ~/.cargo/bin/flutter_rust_bridge_codegen --rust-input ./src/flutter_ffi.rs --dart-output ./flutter/lib/generated_bridge.dart --c-output ./flutter/macos/Runner/bridge_generated.h\n\n - name: Setup vcpkg with Github Actions binary cache\n uses: lukka/run-vcpkg@v11\n with:\n vcpkgGitCommitId: ${{ env.VCPKG_COMMIT_ID }}\n\n - name: Install vcpkg dependencies\n run: |\n $VCPKG_ROOT/vcpkg install --x-install-root="$VCPKG_ROOT/installed"\n \n - name: Restore from cache and install vcpkg\n uses: lukka/run-vcpkg@v7\n if: false\n with:\n setupOnly: true\n vcpkgGitCommitId: ${{ env.VCPKG_COMMIT_ID }}\n\n - name: Install vcpkg dependencies\n if: false\n run: |\n $VCPKG_ROOT/vcpkg install libvpx libyuv opus aom\n\n - name: Show version information (Rust, cargo, Clang)\n shell: bash\n run: |\n clang --version || true\n rustup -V\n rustup toolchain list\n rustup default\n cargo -V\n rustc -V\n\n - name: Build rustdesk\n run: |\n ./build.py --flutter ${{ matrix.job.extra-build-args }}\n\n - name: create unsigned dmg\n run: |\n CREATE_DMG="$(command -v create-dmg)"\n CREATE_DMG="$(readlink -f "$CREATE_DMG")"\n sed -i -e 's/MAXIMUM_UNMOUNTING_ATTEMPTS=3/MAXIMUM_UNMOUNTING_ATTEMPTS=7/' "$CREATE_DMG"\n create-dmg --icon "RustDesk.app" 200 190 --hide-extension "RustDesk.app" --window-size 800 400 --app-drop-link 600 185 rustdesk-${{ env.VERSION }}-${{ matrix.job.arch }}.dmg ./flutter/build/macos/Build/Products/Release/RustDesk.app\n\n - name: Codesign app and create signed dmg\n if: env.MACOS_P12_BASE64 != null\n run: |\n # Patch create-dmg to give more attempts to unmount image\n CREATE_DMG="$(command -v create-dmg)"\n CREATE_DMG="$(readlink -f "$CREATE_DMG")"\n sed -i -e 's/MAXIMUM_UNMOUNTING_ATTEMPTS=3/MAXIMUM_UNMOUNTING_ATTEMPTS=7/' "$CREATE_DMG"\n # Unlock keychain\n security default-keychain -s rustdesk.keychain\n security unlock-keychain -p ${{ secrets.MACOS_P12_PASSWORD }} rustdesk.keychain\n # start sign the rustdesk.app and dmg\n rm -rf *.dmg || true\n codesign --force --options runtime -s ${{ secrets.MACOS_CODESIGN_IDENTITY }} --deep --strict ./flutter/build/macos/Build/Products/Release/RustDesk.app -vvv\n create-dmg --icon "RustDesk.app" 200 190 --hide-extension "RustDesk.app" --window-size 800 400 --app-drop-link 600 185 rustdesk-${{ env.VERSION }}.dmg ./flutter/build/macos/Build/Products/Release/RustDesk.app\n codesign --force --options runtime -s ${{ secrets.MACOS_CODESIGN_IDENTITY }} --deep --strict rustdesk-${{ env.VERSION }}.dmg -vvv\n # notarize the rustdesk-${{ env.VERSION }}.dmg\n rcodesign notary-submit --api-key-path ${{ github.workspace }}/rustdesk.json --staple rustdesk-${{ env.VERSION }}.dmg\n\n - name: Rename rustdesk\n run: |\n for name in rustdesk*??.dmg; do\n mv "$name" "${name%%.dmg}-${{ matrix.job.arch }}-flutter${{ matrix.job.flutter }}-flutter${{ matrix.job.date }}.dmg"\n done\n\n - name: Publish DMG package\n uses: softprops/action-gh-release@v1\n with:\n prerelease: true\n tag_name: ${{ env.TAG_NAME }}\n files: |\n rustdesk*-${{ matrix.job.arch }}*.dmg\n\n\n build-rustdesk-android:\n if: false\n name: build rustdesk android apk ${{ matrix.job.target }}\n runs-on: ${{ matrix.job.os }}\n strategy:\n fail-fast: false\n matrix:\n job:\n - {\n arch: aarch64,\n target: aarch64-linux-android,\n os: ubuntu-22.04,\n openssl-arch: android-arm64,\n ref: master, # latest\n }\n steps:\n - name: Checkout source code\n uses: actions/checkout@v3\n with:\n ref: ${{ matrix.job.ref }}\n submodules: recursive\n\n - name: Install dependencies\n run: |\n sudo apt-get update\n sudo apt-get install -y \\n clang \\n cmake \\n curl \\n gcc-multilib \\n git \\n g++ \\n g++-multilib \\n libayatana-appindicator3-dev\\n libasound2-dev \\n libc6-dev \\n libclang-11-dev \\n libunwind-dev \\n libgstreamer1.0-dev \\n libgstreamer-plugins-base1.0-dev \\n libgtk-3-dev \\n libpam0g-dev \\n libpulse-dev \\n libva-dev \\n libvdpau-dev \\n libxcb-randr0-dev \\n libxcb-shape0-dev \\n libxcb-xfixes0-dev \\n libxdo-dev \\n libxfixes-dev \\n llvm-11-dev \\n nasm \\n yasm \\n ninja-build \\n openjdk-11-jdk-headless \\n pkg-config \\n tree \\n wget\n\n - name: Install flutter\n uses: subosito/flutter-action@v2\n with:\n channel: "stable"\n flutter-version: ${{ env.FLUTTER_VERSION }}\n\n - name: Install Rust toolchain\n uses: dtolnay/rust-toolchain@v1\n with:\n toolchain: ${{ env.RUST_VERSION }}\n components: "rustfmt"\n\n - name: Install flutter rust bridge deps\n run: |\n git config --global core.longpaths true\n cargo install flutter_rust_bridge_codegen --version ${{ env.FLUTTER_RUST_BRIDGE_VERSION }} --features "uuid" --locked\n sed -i 's/uni_links_desktop/#uni_links_desktop/g' flutter/pubspec.yaml\n pushd flutter/lib; find . | grep dart | xargs sed -i 's/textScaler: TextScaler.linear(\(.*\)),/textScaleFactor: \1,/g'; popd;\n pushd flutter ; flutter pub get ; popd\n ~/.cargo/bin/flutter_rust_bridge_codegen --rust-input ./src/flutter_ffi.rs --dart-output ./flutter/lib/generated_bridge.dart\n\n - uses: nttld/setup-ndk@v1\n id: setup-ndk\n with:\n ndk-version: ${{ env.NDK_VERSION }}\n add-to-path: true\n\n - name: Setup vcpkg with Github Actions binary cache\n uses: lukka/run-vcpkg@v11\n with:\n vcpkgDirectory: /opt/artifacts/vcpkg\n vcpkgGitCommitId: ${{ env.VCPKG_COMMIT_ID }}\n\n - name: Install vcpkg dependencies\n run: |\n case ${{ matrix.job.target }} in\n aarch64-linux-android)\n ./flutter/build_android_deps.sh arm64-v8a\n ;;\n armv7-linux-androideabi)\n ./flutter/build_android_deps.sh armeabi-v7a\n ;;\n esac\n shell: bash\n\n - name: Clone deps\n shell: bash\n run: |\n pushd /opt\n git clone https://github.com/rustdesk-org/rustdesk_thirdparty_lib.git --depth=1\n ls -ls /opt/artifacts/vcpkg/installed/arm64-android/lib/\n # cp -rf /opt/rustdesk_thirdparty_lib/vcpkg/* /opt/artifacts/vcpkg/\n ls -ls /opt/artifacts/vcpkg/installed/arm64-android/lib/\n\n - name: Build rustdesk lib\n env:\n ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}\n ANDROID_NDK_ROOT: ${{ steps.setup-ndk.outputs.ndk-path }}\n run: |\n rustup target add ${{ matrix.job.target }}\n cargo install cargo-ndk --version ${{ env.CARGO_NDK_VERSION }} --locked\n case ${{ matrix.job.target }} in\n aarch64-linux-android)\n ./flutter/ndk_arm64.sh\n mkdir -p ./flutter/android/app/src/main/jniLibs/arm64-v8a\n cp ./target/${{ matrix.job.target }}/release/liblibrustdesk.so ./flutter/android/app/src/main/jniLibs/arm64-v8a/librustdesk.so\n ;;\n armv7-linux-androideabi)\n ./flutter/ndk_arm.sh\n mkdir -p ./flutter/android/app/src/main/jniLibs/armeabi-v7a\n cp ./target/${{ matrix.job.target }}/release/liblibrustdesk.so ./flutter/android/app/src/main/jniLibs/armeabi-v7a/librustdesk.so\n ;;\n esac\n\n - name: Build rustdesk\n shell: bash\n env:\n JAVA_HOME: /usr/lib/jvm/java-11-openjdk-amd64\n run: |\n export PATH=/usr/lib/jvm/java-11-openjdk-amd64/bin:$PATH\n # temporary use debug sign config\n sed -i "s/signingConfigs.release/signingConfigs.debug/g" ./flutter/android/app/build.gradle\n case ${{ matrix.job.target }} in\n aarch64-linux-android)\n mkdir -p ./flutter/android/app/src/main/jniLibs/arm64-v8a\n cp ${ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/aarch64-linux-android/libc++_shared.so ./flutter/android/app/src/main/jniLibs/arm64-v8a/\n cp ./target/${{ matrix.job.target }}/release/liblibrustdesk.so ./flutter/android/app/src/main/jniLibs/arm64-v8a/librustdesk.so\n # build flutter\n pushd flutter\n flutter build apk --release --target-platform android-arm64 --split-per-abi\n mv build/app/outputs/flutter-apk/app-arm64-v8a-release.apk ../rustdesk-${{ env.VERSION }}-${{ matrix.job.arch }}.apk\n ;;\n armv7-linux-androideabi)\n mkdir -p ./flutter/android/app/src/main/jniLibs/armeabi-v7a\n cp ${ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/arm-linux-androideabi/libc++_shared.so ./flutter/android/app/src/main/jniLibs/armeabi-v7a/\n cp ./target/${{ matrix.job.target }}/release/liblibrustdesk.so ./flutter/android/app/src/main/jniLibs/armeabi-v7a/librustdesk.so\n # build flutter\n pushd flutter\n flutter build apk --release --target-platform android-arm --split-per-abi\n mv build/app/outputs/flutter-apk/app-armeabi-v7a-release.apk ../rustdesk-${{ env.VERSION }}-${{ matrix.job.arch }}.apk\n ;;\n esac\n popd\n mkdir -p signed-apk; pushd signed-apk\n mv ../rustdesk-${{ env.VERSION }}-${{ matrix.job.arch }}.apk ./rustdesk-test-${{ matrix.job.ref }}-${{ matrix.job.ndk }}.apk\n\n - uses: r0adkll/sign-android-release@v1\n name: Sign app APK\n if: env.ANDROID_SIGNING_KEY != null\n id: sign-rustdesk\n with:\n releaseDirectory: ./signed-apk\n signingKeyBase64: ${{ secrets.ANDROID_SIGNING_KEY }}\n alias: ${{ secrets.ANDROID_ALIAS }}\n keyStorePassword: ${{ secrets.ANDROID_KEY_STORE_PASSWORD }}\n keyPassword: ${{ secrets.ANDROID_KEY_PASSWORD }}\n env:\n # override default build-tools version (29.0.3) -- optional\n BUILD_TOOLS_VERSION: "30.0.2"\n\n - name: Publish signed apk package\n uses: softprops/action-gh-release@v1\n with:\n prerelease: true\n tag_name: ${{ env.TAG_NAME }}\n files: |\n ${{steps.sign-rustdesk.outputs.signedReleaseFile}}\n
dataset_sample\yaml\rustdesk_rustdesk\.github\workflows\playground.yml
playground.yml
YAML
17,421
0.95
0.0311
0.047244
node-utils
870
2024-12-05T23:39:04.076426
GPL-3.0
false
befbcfe577d29fd5f9a9ca00d4d77cde
name: Publish to WinGet\non:\n release:\n types: [released]\njobs:\n publish:\n runs-on: ubuntu-latest\n steps:\n - uses: vedantmgoyal9/winget-releaser@main\n with:\n identifier: RustDesk.RustDesk\n version: ${{ github.event.release.tag_name }}\n token: ${{ secrets.WINGET_TOKEN }}\n
dataset_sample\yaml\rustdesk_rustdesk\.github\workflows\winget.yml
winget.yml
YAML
320
0.7
0
0
react-lib
352
2024-10-27T03:49:24.680996
BSD-3-Clause
false
08373890066aac8a5d591fdc7e80b627
# appimage-builder recipe see https://appimage-builder.readthedocs.io for details\nversion: 1\nscript:\n - rm -rf ./AppDir || true\n - bsdtar -zxvf rustdesk.deb\n - tar -xvf ./data.tar.xz\n - mkdir ./AppDir\n - mv ./usr ./AppDir/usr\n # 32x32 icon\n - for i in {32,64,128}; do mkdir -p ./AppDir/usr/share/icons/hicolor/$i\x$i/apps/; cp ../res/$i\x$i.png ./AppDir/usr/share/icons/hicolor/$i\x$i/apps/rustdesk.png; done\n - mkdir -p ./AppDir/usr/share/icons/hicolor/scalable/apps/; cp ../res/scalable.svg ./AppDir/usr/share/icons/hicolor/scalable/apps/rustdesk.svg\n # desktop file\n # - sed -i "s/Icon=\/usr\/share\/rustdesk\/files\/rustdesk.png/Icon=rustdesk/g" ./AppDir/usr/share/applications/rustdesk.desktop\n - rm -rf ./AppDir/usr/share/applications\nAppDir:\n path: ./AppDir\n app_info:\n id: rustdesk\n name: rustdesk\n icon: rustdesk\n version: 1.3.9\n exec: usr/share/rustdesk/rustdesk\n exec_args: $@\n apt:\n arch:\n - arm64\n allow_unauthenticated: true\n sources:\n - sourceline: deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ focal main restricted universe multiverse\n key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3b4fe6acc0b21f32'\n - sourceline: deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ focal-updates main restricted universe multiverse\n key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3b4fe6acc0b21f32'\n - sourceline: deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ focal-backports main restricted\n universe multiverse\n key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3b4fe6acc0b21f32'\n - sourceline: deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ focal-security main restricted\n universe multiverse\n key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3b4fe6acc0b21f32'\n include:\n - libc6:arm64\n - libgtk-3-0\n - libxcb-randr0\n - libxdo3\n - libxfixes3\n - libxcb-shape0\n - libxcb-xfixes0\n - libasound2\n - libsystemd0\n - curl\n - libva2\n - libva-drm2\n - libva-x11-2\n - libgstreamer-plugins-base1.0-0\n - gstreamer1.0-pipewire\n - libwayland-client0\n - libwayland-cursor0\n - libwayland-egl1\n - libpulse0\n - packagekit-gtk3-module\n - libcanberra-gtk3-module\n - libpam0g\n - libdrm2\n exclude:\n - humanity-icon-theme\n - hicolor-icon-theme\n - adwaita-icon-theme\n - ubuntu-mono\n files:\n include: []\n exclude:\n - usr/share/man\n - usr/share/doc/*/README.*\n - usr/share/doc/*/changelog.*\n - usr/share/doc/*/NEWS.*\n - usr/share/doc/*/TODO.*\n runtime:\n env:\n GIO_MODULE_DIR: /lib64/gio/modules:/usr/lib/aarch64-linux-gnu/gio/modules:$APPDIR/usr/lib/aarch64-linux-gnu/gio/modules\n GDK_BACKEND: x11\n APPDIR_LIBRARY_PATH: /lib64:/usr/lib/aarch64-linux-gnu:$APPDIR/lib/aarch64-linux-gnu:$APPDIR/lib/aarch64-linux-gnu/security:$APPDIR/lib/systemd:$APPDIR/usr/lib/aarch64-linux-gnu:$APPDIR/usr/lib/aarch64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders:$APPDIR/usr/lib/aarch64-linux-gnu/gstreamer-1.0:$APPDIR/usr/lib/aarch64-linux-gnu/gtk-3.0/3.0.0/immodules:$APPDIR/usr/lib/aarch64-linux-gnu/gtk-3.0/3.0.0/printbackends:$APPDIR/usr/lib/aarch64-linux-gnu/krb5/plugins/preauth:$APPDIR/usr/lib/aarch64-linux-gnu/libcanberra-0.30:$APPDIR/usr/lib/aarch64-linux-gnu/pulseaudio:$APPDIR/usr/lib/aarch64-linux-gnu/sasl2:$APPDIR/usr/lib/aarch64-linux-gnu/vdpau:$APPDIR/usr/share/rustdesk/lib:$APPDIR/lib/aarch64\n GST_PLUGIN_PATH: /lib64/gstreamer-1.0:/usr/lib/aarch64-linux-gnu/gstreamer-1.0:$APPDIR/usr/lib/aarch64-linux-gnu/gstreamer-1.0\n GST_PLUGIN_SYSTEM_PATH: /lib64/gstreamer-1.0:/usr/lib/aarch64-linux-gnu/gstreamer-1.0:$APPDIR/usr/lib/aarch64-linux-gnu/gstreamer-1.0\n test:\n fedora-30:\n image: appimagecrafters/tests-env:fedora-30\n command: ./AppRun\n debian-stable:\n image: appimagecrafters/tests-env:debian-stable\n command: ./AppRun\n archlinux-latest:\n image: appimagecrafters/tests-env:archlinux-latest\n command: ./AppRun\n centos-7:\n image: appimagecrafters/tests-env:centos-7\n command: ./AppRun\n ubuntu-xenial:\n image: appimagecrafters/tests-env:ubuntu-xenial\n command: ./AppRun\nAppImage:\n arch: aarch64\n update-information: guess\n
dataset_sample\yaml\rustdesk_rustdesk\appimage\AppImageBuilder-aarch64.yml
AppImageBuilder-aarch64.yml
YAML
4,279
0.8
0.019802
0.039604
react-lib
888
2024-02-26T18:01:19.432302
GPL-3.0
false
c3185c61b5c20c09d59bfcb668046005
# appimage-builder recipe see https://appimage-builder.readthedocs.io for details\nversion: 1\nscript:\n - rm -rf ./AppDir || true\n - bsdtar -zxvf rustdesk.deb\n - tar -xvf ./data.tar.xz\n - mkdir ./AppDir\n - mv ./usr ./AppDir/usr\n # 32x32 icon\n - for i in {32,64,128}; do mkdir -p ./AppDir/usr/share/icons/hicolor/$i\x$i/apps/; cp ../res/$i\x$i.png ./AppDir/usr/share/icons/hicolor/$i\x$i/apps/rustdesk.png; done\n - mkdir -p ./AppDir/usr/share/icons/hicolor/scalable/apps/; cp ../res/scalable.svg ./AppDir/usr/share/icons/hicolor/scalable/apps/rustdesk.svg\n # desktop file\n # - sed -i "s/Icon=\/usr\/share\/rustdesk\/files\/rustdesk.png/Icon=rustdesk/g" ./AppDir/usr/share/applications/rustdesk.desktop\n - rm -rf ./AppDir/usr/share/applications\nAppDir:\n path: ./AppDir\n app_info:\n id: rustdesk\n name: rustdesk\n icon: rustdesk\n version: 1.3.9\n exec: usr/share/rustdesk/rustdesk\n exec_args: $@\n apt:\n arch:\n - amd64\n allow_unauthenticated: true\n sources:\n - sourceline: deb http://archive.ubuntu.com/ubuntu/ focal main restricted\n - sourceline: deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted\n - sourceline: deb http://archive.ubuntu.com/ubuntu/ focal universe\n - sourceline: deb http://archive.ubuntu.com/ubuntu/ focal-updates universe\n - sourceline: deb http://archive.ubuntu.com/ubuntu/ focal multiverse\n - sourceline: deb http://archive.ubuntu.com/ubuntu/ focal-updates multiverse\n - sourceline: deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted\n universe multiverse\n - sourceline: deb http://archive.ubuntu.com/ubuntu/ focal-security main restricted\n universe multiverse\n include:\n # https://github.com/rustdesk/rustdesk/issues/9103\n # Because of APPDIR_LIBRARY_PATH, this libc6 is not used, use LD_PRELOAD: $APPDIR/usr/lib/x86_64-linux-gnu/libc.so.6 may help, If you have time, please have a try.\n # We modify APPDIR_LIBRARY_PATH to use system lib first because gst crashed if not doing so, but you can try to change it.\n - libc6:amd64\n - libgtk-3-0\n - libxcb-randr0\n - libxdo3\n - libxfixes3\n - libxcb-shape0\n - libxcb-xfixes0\n - libasound2\n - libsystemd0\n - curl\n - libva2\n - libva-drm2\n - libva-x11-2\n - libgstreamer-plugins-base1.0-0\n - gstreamer1.0-pipewire\n - libwayland-client0\n - libwayland-cursor0\n - libwayland-egl1\n - libpulse0\n - packagekit-gtk3-module\n - libcanberra-gtk3-module\n - libpam0g\n - libdrm2\n exclude:\n - humanity-icon-theme\n - hicolor-icon-theme\n - adwaita-icon-theme\n - ubuntu-mono\n files:\n include: []\n exclude:\n - usr/share/man\n - usr/share/doc/*/README.*\n - usr/share/doc/*/changelog.*\n - usr/share/doc/*/NEWS.*\n - usr/share/doc/*/TODO.*\n runtime:\n env:\n GIO_MODULE_DIR: /lib64/gio/modules:/usr/lib/x86_64-linux-gnu/gio/modules:$APPDIR/usr/lib/x86_64-linux-gnu/gio/modules\n GDK_BACKEND: x11\n APPDIR_LIBRARY_PATH: /lib64:/usr/lib/x86_64-linux-gnu:$APPDIR/lib/x86_64-linux-gnu:$APPDIR/lib/x86_64-linux-gnu/security:$APPDIR/lib/systemd:$APPDIR/usr/lib/x86_64-linux-gnu:$APPDIR/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders:$APPDIR/usr/lib/x86_64-linux-gnu/gstreamer-1.0:$APPDIR/usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules:$APPDIR/usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/printbackends:$APPDIR/usr/lib/x86_64-linux-gnu/krb5/plugins/preauth:$APPDIR/usr/lib/x86_64-linux-gnu/libcanberra-0.30:$APPDIR/usr/lib/x86_64-linux-gnu/pulseaudio:$APPDIR/usr/lib/x86_64-linux-gnu/sasl2:$APPDIR/usr/lib/x86_64-linux-gnu/vdpau:$APPDIR/usr/share/rustdesk/lib:$APPDIR/lib/x86_64\n GST_PLUGIN_PATH: /lib64/gstreamer-1.0:/usr/lib/x86_64-linux-gnu/gstreamer-1.0:$APPDIR/usr/lib/x86_64-linux-gnu/gstreamer-1.0\n GST_PLUGIN_SYSTEM_PATH: /lib64/gstreamer-1.0:/usr/lib/x86_64-linux-gnu/gstreamer-1.0:$APPDIR/usr/lib/x86_64-linux-gnu/gstreamer-1.0\n test:\n fedora-30:\n image: appimagecrafters/tests-env:fedora-30\n command: ./AppRun\n debian-stable:\n image: appimagecrafters/tests-env:debian-stable\n command: ./AppRun\n archlinux-latest:\n image: appimagecrafters/tests-env:archlinux-latest\n command: ./AppRun\n centos-7:\n image: appimagecrafters/tests-env:centos-7\n command: ./AppRun\n ubuntu-xenial:\n image: appimagecrafters/tests-env:ubuntu-xenial\n command: ./AppRun\nAppImage:\n arch: x86_64\n update-information: guess\n
dataset_sample\yaml\rustdesk_rustdesk\appimage\AppImageBuilder-x86_64.yml
AppImageBuilder-x86_64.yml
YAML
4,448
0.8
0.048077
0.067308
react-lib
354
2025-03-28T06:55:45.562207
BSD-3-Clause
false
6051ada1d63df0a2b3cb50145ff22215
language: rust\nrust:\n - stable\n - beta\n - nightly\nmatrix:\n allow_failures:\n - rust: nightly\nbefore_install:\n - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get -qq update; fi\n - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -y libxdo-dev; fi\nos:\n - linux\n - osx\n\n
dataset_sample\yaml\rustdesk_rustdesk\libs\enigo\.travis.yml
.travis.yml
YAML
297
0.7
0.133333
0
node-utils
229
2024-10-10T03:35:16.500042
Apache-2.0
false
ed2cd26ed9538656a9cf77848007a60c
# AppVeyor configuration template for Rust using rustup for Rust installation\n# https://github.com/starkat99/appveyor-rust\n\n## Operating System (VM environment) ##\n\n# Rust needs at least Visual Studio 2013 AppVeyor OS for MSVC targets.\nos: Visual Studio 2015\n\n## Build Matrix ##\n\n# This configuration will setup a build for each channel & target combination (12 windows\n# combinations in all).\n#\n# There are 3 channels: stable, beta, and nightly.\n#\n# Alternatively, the full version may be specified for the channel to build using that specific\n# version (e.g. channel: 1.5.0)\n#\n# The values for target are the set of windows Rust build targets. Each value is of the form\n#\n# ARCH-pc-windows-TOOLCHAIN\n#\n# Where ARCH is the target architecture, either x86_64 or i686, and TOOLCHAIN is the linker\n# toolchain to use, either msvc or gnu. See https://www.rust-lang.org/downloads.html#win-foot for\n# a description of the toolchain differences.\n# See https://github.com/rust-lang-nursery/rustup.rs/#toolchain-specification for description of\n# toolchains and host triples.\n#\n# Comment out channel/target combos you do not wish to build in CI.\n#\n# You may use the `cargoflags` and `RUSTFLAGS` variables to set additional flags for cargo commands\n# and rustc, respectively. For instance, you can uncomment the cargoflags lines in the nightly\n# channels to enable unstable features when building for nightly. Or you could add additional\n# matrix entries to test different combinations of features.\nenvironment:\n matrix:\n\n### MSVC Toolchains ###\n\n # Stable 64-bit MSVC\n - channel: stable\n target: x86_64-pc-windows-msvc\n # Stable 32-bit MSVC\n - channel: stable\n target: i686-pc-windows-msvc\n # Beta 64-bit MSVC\n - channel: beta\n target: x86_64-pc-windows-msvc\n # Beta 32-bit MSVC\n - channel: beta\n target: i686-pc-windows-msvc\n # Nightly 64-bit MSVC\n - channel: nightly\n target: x86_64-pc-windows-msvc\n #cargoflags: --features "unstable"\n # Nightly 32-bit MSVC\n - channel: nightly\n target: i686-pc-windows-msvc\n #cargoflags: --features "unstable"\n\n### GNU Toolchains ###\n\n # Stable 64-bit GNU\n - channel: stable\n target: x86_64-pc-windows-gnu\n # Stable 32-bit GNU\n - channel: stable\n target: i686-pc-windows-gnu\n # Beta 64-bit GNU\n - channel: beta\n target: x86_64-pc-windows-gnu\n # Beta 32-bit GNU\n - channel: beta\n target: i686-pc-windows-gnu\n # Nightly 64-bit GNU\n - channel: nightly\n target: x86_64-pc-windows-gnu\n #cargoflags: --features "unstable"\n # Nightly 32-bit GNU\n - channel: nightly\n target: i686-pc-windows-gnu\n #cargoflags: --features "unstable"\n\n### Allowed failures ###\n\n# See AppVeyor documentation for specific details. In short, place any channel or targets you wish\n# to allow build failures on (usually nightly at least is a wise choice). This will prevent a build\n# or test failure in the matching channels/targets from failing the entire build.\nmatrix:\n allow_failures:\n - channel: nightly\n\n# If you only care about stable channel build failures, uncomment the following line:\n #- channel: beta\n\n## Install Script ##\n\n# This is the most important part of the AppVeyor configuration. This installs the version of Rust\n# specified by the 'channel' and 'target' environment variables from the build matrix. This uses\n# rustup to install Rust.\n#\n# For simple configurations, instead of using the build matrix, you can simply set the\n# default-toolchain and default-host manually here.\ninstall:\n - appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe\n - rustup-init -yv --default-toolchain %channel% --default-host %target%\n - set PATH=%PATH%;%USERPROFILE%\.cargo\bin\n - rustc -vV\n - cargo -vV\n\n## Build Script ##\n\n# 'cargo test' takes care of building for us, so disable AppVeyor's build stage. This prevents\n# the "directory does not contain a project or solution file" error.\nbuild: false\n\n# Uses 'cargo test' to run tests and build. Alternatively, the project may call compiled programs\n#directly or perform other testing commands. Rust will automatically be placed in the PATH\n# environment variable.\ntest_script:\n - cargo test --verbose %cargoflags%\n
dataset_sample\yaml\rustdesk_rustdesk\libs\enigo\appveyor.yml
appveyor.yml
YAML
4,225
0.95
0.099174
0.628571
awesome-app
327
2024-12-19T16:12:44.246571
MIT
false
c01f3085081225e89a654b5a003cc9ff
image:\n file: .gitpod.Dockerfile\n\nvscode:\n extensions:\n - vadimcn.vscode-lldb@1.5.3:vTh/rWhvJ5nQpeAVsD20QA==
dataset_sample\yaml\RustPython_RustPython\.gitpod.yml
.gitpod.yml
YAML
113
0.7
0
0
python-kit
954
2024-04-24T10:03:51.770486
GPL-3.0
false
37bfd5f4dad6425c082291c9ea14de9b
# Keep GitHub Actions up to date with GitHub's Dependabot...\n# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot\n# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#package-ecosystem\nversion: 2\nupdates:\n - package-ecosystem: github-actions\n directory: /\n groups:\n github-actions:\n patterns:\n - "*" # Group all Actions updates into a single larger pull request\n schedule:\n interval: weekly\n
dataset_sample\yaml\RustPython_RustPython\.github\dependabot.yml
dependabot.yml
YAML
579
0.8
0.076923
0.230769
python-kit
742
2023-12-28T02:28:27.835908
BSD-3-Clause
false
9c35121daadb3e711e4daa87be2c98b6
name: Release\n\non:\n schedule:\n # 9 AM UTC on every Monday\n - cron: "0 9 * * Mon"\n workflow_dispatch:\n inputs:\n pre-release:\n type: boolean\n description: Mark "Pre-Release"\n required: false\n default: true\n\npermissions:\n contents: write\n\nenv:\n CARGO_ARGS: --no-default-features --features stdlib,importlib,encodings,sqlite,ssl\n\njobs:\n build:\n runs-on: ${{ matrix.platform.runner }}\n strategy:\n matrix:\n platform:\n - runner: ubuntu-latest\n target: x86_64-unknown-linux-gnu\n# - runner: ubuntu-latest\n# target: i686-unknown-linux-gnu\n# - runner: ubuntu-latest\n# target: aarch64-unknown-linux-gnu\n# - runner: ubuntu-latest\n# target: armv7-unknown-linux-gnueabi\n# - runner: ubuntu-latest\n# target: s390x-unknown-linux-gnu\n# - runner: ubuntu-latest\n# target: powerpc64le-unknown-linux-gnu\n - runner: macos-latest\n target: aarch64-apple-darwin\n# - runner: macos-latest\n# target: x86_64-apple-darwin\n - runner: windows-latest\n target: x86_64-pc-windows-msvc\n# - runner: windows-latest\n# target: i686-pc-windows-msvc\n# - runner: windows-latest\n# target: aarch64-pc-windows-msvc\n fail-fast: false\n steps:\n - uses: actions/checkout@v4\n - uses: dtolnay/rust-toolchain@stable\n - uses: cargo-bins/cargo-binstall@main\n\n - name: Set up Environment\n shell: bash\n run: rustup target add ${{ matrix.platform.target }}\n - name: Set up Windows Environment\n shell: bash\n run: |\n git config --global core.longpaths true\n cargo install --target-dir=target -v cargo-vcpkg\n cargo vcpkg -v build\n if: runner.os == 'Windows'\n - name: Set up MacOS Environment\n run: brew install autoconf automake libtool\n if: runner.os == 'macOS'\n\n - name: Build RustPython\n run: cargo build --release --target=${{ matrix.platform.target }} --verbose --features=threading ${{ env.CARGO_ARGS }}\n if: runner.os == 'macOS'\n - name: Build RustPython\n run: cargo build --release --target=${{ matrix.platform.target }} --verbose --features=threading ${{ env.CARGO_ARGS }},jit\n if: runner.os != 'macOS'\n\n - name: Rename Binary\n run: cp target/${{ matrix.platform.target }}/release/rustpython target/rustpython-release-${{ runner.os }}-${{ matrix.platform.target }}\n if: runner.os != 'Windows'\n - name: Rename Binary\n run: cp target/${{ matrix.platform.target }}/release/rustpython.exe target/rustpython-release-${{ runner.os }}-${{ matrix.platform.target }}.exe\n if: runner.os == 'Windows'\n\n - name: Upload Binary Artifacts\n uses: actions/upload-artifact@v4\n with:\n name: rustpython-release-${{ runner.os }}-${{ matrix.platform.target }}\n path: target/rustpython-release-${{ runner.os }}-${{ matrix.platform.target }}*\n\n build-wasm:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n - uses: dtolnay/rust-toolchain@stable\n with:\n targets: wasm32-wasip1\n\n - name: Build RustPython\n run: cargo build --target wasm32-wasip1 --no-default-features --features freeze-stdlib,stdlib --release\n\n - name: Rename Binary\n run: cp target/wasm32-wasip1/release/rustpython.wasm target/rustpython-release-wasm32-wasip1.wasm\n\n - name: Upload Binary Artifacts\n uses: actions/upload-artifact@v4\n with:\n name: rustpython-release-wasm32-wasip1\n path: target/rustpython-release-wasm32-wasip1.wasm\n\n - name: install wasm-pack\n run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh\n - uses: actions/setup-node@v4\n - uses: mwilliamson/setup-wabt-action@v3\n with: { wabt-version: "1.0.30" }\n - name: build demo\n run: |\n npm install\n npm run dist\n env:\n NODE_OPTIONS: "--openssl-legacy-provider"\n working-directory: ./wasm/demo\n - name: build notebook demo\n run: |\n npm install\n npm run dist\n mv dist ../demo/dist/notebook\n env:\n NODE_OPTIONS: "--openssl-legacy-provider"\n working-directory: ./wasm/notebook\n - name: Deploy demo to Github Pages\n uses: peaceiris/actions-gh-pages@v4\n with:\n deploy_key: ${{ secrets.ACTIONS_DEMO_DEPLOY_KEY }}\n publish_dir: ./wasm/demo/dist\n external_repository: RustPython/demo\n publish_branch: master\n\n release:\n runs-on: ubuntu-latest\n needs: [build, build-wasm]\n steps:\n - name: Download Binary Artifacts\n uses: actions/download-artifact@v4\n with:\n path: bin\n pattern: rustpython-*\n merge-multiple: true\n\n - name: List Binaries\n run: |\n ls -lah bin/\n file bin/*\n - name: Create Release\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n tag: ${{ github.ref_name }}\n run: ${{ github.run_number }}\n run: |\n if [[ "${{ github.event.inputs.pre-release }}" == "false" ]]; then\n RELEASE_TYPE_NAME=Release\n PRERELEASE_ARG=\n else\n RELEASE_TYPE_NAME=Pre-Release\n PRERELEASE_ARG=--prerelease\n fi\n \n today=$(date '+%Y-%m-%d')\n gh release create "$today-$tag-$run" \\n --repo="$GITHUB_REPOSITORY" \\n --title="RustPython $RELEASE_TYPE_NAME $today-$tag #$run" \\n --target="$tag" \\n --generate-notes \\n $PRERELEASE_ARG \\n bin/rustpython-release-*\n
dataset_sample\yaml\RustPython_RustPython\.github\workflows\release.yml
release.yml
YAML
5,829
0.95
0.040462
0.10828
awesome-app
230
2023-08-18T07:13:30.926415
MIT
false
9e355b850e2fac927d3e190931e48616
codecov:\n notify:\n require_ci_to_pass: yes\n\ncoverage:\n precision: 2\n round: down\n range: "70...100"\n\n status:\n project:\n default:\n target: 0%\n threshold: 5%\n base: parent\n branches: null\n if_no_uploads: error\n if_not_found: success\n if_ci_failed: error\n only_pulls: false\n flags: null\n paths: null\n patch: no\n changes: no\n\nparsers:\n gcov:\n branch_detection:\n conditional: yes\n loop: yes\n method: no\n macro: no\n\ncomment:\n layout: "header, diff"\n behavior: default\n require_changes: false\n\nignore:\n - "include/timezone/.*"\n - "include/SuiteGraphs/.*"\n - "include/social/.*"\n - "include/Smarty/.*"\n - "include/reCaptcha/.*"\n - "include/phpmailer/.*"\n - "include/Pear/.*"\n - "include/pclzip/.*"\n - "include/nusoap/.*"\n - "include/HTTP_WebDAV_Server/.*"\n - "include/HTMLPurifier/.*"\n - "include/ytree/.*"\n - "include/php-sql-parser.php"\n - "include/parsecsv.lib.php"\n - "modules/AOS_PDF_Templates/PDF_Lib/.*"\n - "Zend/.*"\n - "modules/AOD_Index/Lib/.*"\n - "modules/Users/authentication/SAML2Authenticate/lib/.*"\n - "install/demoData.en_us.php"\n - "include/tcpdf/.*"\n - "modules/AOR_Charts/lib/.*"\n # The old lowercase v8 API is deprecated/unsupported and the CI doesn't run the tests for it. The new API uses an upper-case V.\n - "lib/API/.*"\n
dataset_sample\yaml\salesagility_SuiteCRM\.codecov.yml
.codecov.yml
YAML
1,378
0.95
0.016129
0.017544
python-kit
470
2025-04-26T21:00:18.103644
MIT
false
c902990b57a4b9ef2376573c7bb80e15
language: php\nos: linux\n\nmatrix:\n fast_finish: true\n include:\n - name: "PHP 7.4 / MySQL 5.7"\n php: "7.4"\n dist: xenial\n # Run composer validate to make sure the composer.json and composer.lock are in sync.\n - name: "composer validate"\n php: "7.4"\n dist: xenial\n before_script: composer install\n script: composer validate\n - name: "code coverage"\n php: "7.4"\n dist: xenial\n script: ./vendor/bin/codecept run install --env travis-ci-hub -f --ext DotReporter; ./vendor/bin/robo code:coverage --ci; cat codeception.dist.yml; bash <(curl -s https://codecov.io/bash) -f tests/_output/coverage.xml\n\nservices:\n - mysql\n - elasticsearch\naddons:\n chrome: stable\n\ncache:\n directories:\n - $HOME/.composer/cache/files\n\nenv:\n - INSTANCE_URL=http://localhost DATABASE_DRIVER=MYSQL DATABASE_NAME=automated_tests DATABASE_HOST=localhost DATABASE_USER=automated_tests DATABASE_PASSWORD=automated_tests INSTANCE_ADMIN_USER=admin INSTANCE_ADMIN_PASSWORD=admin1 COMPOSER_MEMORY_LIMIT=-1\n\nbefore_install:\n # Install chrome driver#\n - whereis google-chrome-stable\n - wget https://chromedriver.storage.googleapis.com/2.36/chromedriver_linux64.zip\n - unzip -o chromedriver_linux64.zip\n - ./chromedriver --url-base=/wd/hub &\n # Lint PHP\n - for file in $(git diff --name-status HEAD~1 HEAD | egrep "^[ACMR].*\.php$" | cut -c 3-); do php -l $file; done\n\ninstall:\n - phpenv config-add travis.php.ini\n - composer self-update --stable && composer --version\n\nbefore_script:\n # Set up MySQL\n - mysql -e "CREATE DATABASE automated_tests CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;"\n - mysql -u root -e "CREATE USER 'automated_tests'@'localhost' IDENTIFIED BY 'automated_tests';"\n - mysql -u root -e "GRANT ALL PRIVILEGES ON automated_tests.* TO 'automated_tests'@'localhost';"\n # Install apache - images with PHP 7 or above\n - sudo apt-get update\n - sudo apt-get install apache2 libapache2-mod-fastcgi\n # Enable php-fpm - images with PHP 7 or above\n - sudo cp ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.d/www.conf.default ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.d/www.conf 2>/dev/null || true\n - sudo cp ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf.default ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf\n - sudo a2enmod rewrite actions fastcgi alias\n - echo "cgi.fix_pathinfo = 1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini\n - sudo sed -i -e "s,www-data,travis,g" /etc/apache2/envvars\n - sudo chown -R travis:travis /var/lib/apache2/fastcgi\n - ~/.phpenv/versions/$(phpenv version-name)/sbin/php-fpm\n # Configure apache virtual hosts - images with PHP 7 or above\n - sudo cp -f build/travis-ci-apache /etc/apache2/sites-available/000-default.conf\n - sudo sed -e "s?%TRAVIS_BUILD_DIR%?$(pwd)?g" --in-place /etc/apache2/sites-available/000-default.conf\n # Additional PHP config\n - phpenv config-add travis.php.ini\n - sudo service apache2 restart\n # Install composer\n - composer install\n - ./vendor/bin/codecept build\n\nscript:\n # Run the wizard installer\n - echo "using install wizard"\n - ./vendor/bin/codecept run install --env travis-ci-hub -f --ext DotReporter\n - ./build/push_output.sh\n\n # Run the unit tests\n - sudo chmod -R 777 .\n - ./vendor/bin/phpunit --stop-on-failure --stop-on-error --colors --configuration ./tests/phpunit.xml.dist ./tests/unit/phpunit\n # Install OAuth2 demo data\n - mysql -u root -D automated_tests -v -e "source tests/_data/api_data.sql"\n # Install demo user data\n - mysql -u root -D automated_tests -v -e "source tests/_data/demo_users.sql"\n # set the log level to error\n - echo "\$sugar_config['logger']['level'] = 'error';" >> config_override.php\n # add keys\n - sudo chmod -R 777 .\n - openssl genrsa -out Api/V8/OAuth2/private.key 2048\n - openssl rsa -in Api/V8/OAuth2/private.key -pubout -out Api/V8/OAuth2/public.key\n - sudo chmod 600 Api/V8/OAuth2/p*.key\n # - sudo chown www-data:www-data Api/V8/OAuth2/p*.key\n # Run API functional tests\n - ./vendor/bin/codecept run tests/api/V8/ -f --ext DotReporter\n # RUN Basic Acceptance test\n - echo "\$sugar_config['imap_test'] = true;" >> config_override.php\n - ./vendor/bin/codecept run acceptance --env travis-ci-hub -f --ext DotReporter\n\nafter_script:\n - ./build/push_output.sh\n # ElasticSearch Indexing logs\n - cat search_index.log\n - sudo cat /var/log/apache2/error.log\n - echo $TRAVIS_COMMIT_RANGE\n\nbranches:\n only:\n - master\n - develop\n - /hotfix.*/\n - /feature.*/\n - /fix.*/\n - /staging.*/\n
dataset_sample\yaml\salesagility_SuiteCRM\.travis.yml
.travis.yml
YAML
4,557
0.95
0.008772
0.184466
react-lib
54
2024-07-24T12:31:18.188561
Apache-2.0
false
434886246432992acea35bcc724610c6
exclude_paths:\n - 'include/timezone/**'\n - 'include/SuiteGraphs/**'\n - 'include/social/**'\n - 'include/Smarty/**'\n - 'include/reCaptcha/**'\n - 'include/phpmailer/**'\n - 'include/Pear/**'\n - 'include/pclzip/**'\n - 'include/nusoap/**'\n - 'include/HTTP_WebDAV_Server/**'\n - 'include/HTMLPurifier/**'\n - 'include/ytree/**'\n - 'include/php-sql-parser.php*'\n - 'include/parsecsv.lib.php*'\n - 'modules/AOS_PDF_Templates/PDF_Lib/**'\n - 'Zend/**'\n - 'modules/AOD_Index/Lib/**'\n - 'modules/Users/authentication/SAML2Authenticate/lib/**'\n - 'install/demoData.en_us.php*'\n - 'include/tcpdf/**'\n - 'modules/AOR_Charts/lib/**'\n
dataset_sample\yaml\salesagility_SuiteCRM\codacy.yml
codacy.yml
YAML
634
0.8
0
0
node-utils
50
2023-10-19T13:55:54.936536
GPL-3.0
false
75b3469c4689de9f54a55419f6de2759
actor: Tester\npaths:\n tests: tests\n log: tests/_output\n data: tests/_data\n support: tests/_support\n envs: tests/_envs\nsettings:\n bootstrap: _bootstrap.php\n colors: true\n memory_limit: 16000M\nextensions:\n enabled:\n - Codeception\Extension\RunFailed\ncoverage:\n enabled: true\n remote: false\n low_limit: 50\n high_limit: 90\n include:\n - ModuleInstall/*.php\n - data/*.php\n - include/*.php\n - install/*.php\n - jssource/*.php\n - lib/*.php\n - metadata/*.php\n - modules/*.php\n - service/*.php\n - soap/*.php\n - themes/*.php\n exclude:\n - include/SuiteGraphs/*\n - include/social/*\n - include/reCaptcha/*\n - include/phpmailer/*\n - include/Pear/*\n - include/pclzip/*\n - include/nusoap/*\n - include/HTTP_WebDAV_Server/*\n - include/HTMLPurifier/*\n - include/ytree/*\n - include/php-sql-parser.php\n - include/parsecsv.lib.php\n - modules/AOS_PDF_Templates/PDF_Lib/*\n - modules/AOD_Index/Lib/*\n - modules/Users/authentication/SAML2Authenticate/lib/*\n - install/demoData.en_us.php\n - include/tcpdf/*\n - modules/AOR_Charts/lib/*\nparams:\n - env\n - .env.test\n
dataset_sample\yaml\salesagility_SuiteCRM\codeception.dist.yml
codeception.dist.yml
YAML
1,141
0.8
0
0
awesome-app
961
2023-10-27T15:25:36.251463
GPL-3.0
false
729c998df113b4719fc49ce75bd69005
owner:\n - salesagility\n\nrepo:\n - SuiteCRM\n\nmembers:\n - cameronblaikie\n - CamoMacdonald\n - code-ph0y\n - craigpanton\n - Dillon-Brown\n - e-reeley\n - g-fantini\n - gregsoper\n - gymad\n - jack7anderson7\n - JackBuchanan\n - Jason-Dang\n - JimMackin\n - johnM2401\n - Mac-Rae\n - mattlorimer\n - MikeyJC\n - murdal\n - PedroErnst\n - pgorod\n - samus-aran\n - SuiteBot\n - willrennie\n\neolBranches:\n - 7.9.x,\n - 7.8.x,\n - hotfix-7.8.x\n\ninvalidBranches:\n - master\n - 7.10.x\n\ninvalid: >\n Hello and thanks for the contribution! would you be able to rebase this pull request to the hotfix-7.10.x branch?\n we currently don't accept pull requests directly to this branch\n (See [SuiteDocs](https://docs.suitecrm.com/community/contributing-code/bugs) for more information).\neol: >\n Hello and thanks for the contribution! unfortunately this branch is EOL\n (See our [blog post](https://suitecrm.com/7-8-x-end-of-life/) for more information).\ninvalidIssueTemplate: >\n Hello and thanks for raising this issue! I notice you don't seem to be following the standard issue template. If this is a bug report, would you be able to go back and edit this issue while following the template and including exact replication steps?\n\n\n Thanks.\nsprintPlanning: >\n Hello Everyone! :wave:\n\n\n We are 1 week away from commencing our Sprint. So we would like to take this opportunity to ask for your nominated issues here in this thread so we can assess, refine and coordinate with ourselves (the Core Team) and the community contributors on the upcoming priorities.\n\n\n If you are new to this sprint planning then essentially we are asking you, as the users, to post your issues (by referencing the GitHub hash/ID) that you would like to see being tackled. We, the Core Team, will review and select the achievable ones within the sprint and allocate them among ourselves. The others we may label them as Help Wanted which would make them up for grabs by our community code contributors. This process will help encourage ownership of these bugs and their bug fixes. [Find out more of the sprint concept here](https://docs.suitecrm.com/community/nominating-issues-in-sprint-planning) :point_left:\n\n\n Sprints are every 2 weeks with the aim to deliver a release every 2 Sprints (monthly).\n\n\n Just to re-iterate from previous posts, that the core team do have other tasks that may not be identified in the above sprints and these are usually from our own internal backlog i.e. improving the release process, CI/CD tools, security patches etc so that accounts for some ‘slack’ visible in the public sprints.\n\n\n Look forward to your nominations! :writing_hand:\nsprintRetrospective: >\n Hello Everyone!\n\n\n Welcome to the sprint retrospective, lets break down the previous sprint.\n\n\n To Do | In Progress | In Review | Done\n\n ------------ | ------------- | ------------- | -------------\n\n SPRINTMETRICS\n\n\n Again, to note, that we also tackle a lot of other issues that are high priorities, security patches and internal roadmap tasks\n\n\n List of the currently open "Help Wanted" issues:\n\n HELPWANTED\n\n\n\n Thanks everyone and comment below to start a discussion to improve the open sprint processes & gain feedback +1\n We are planning to open the next Sprint for nominations next week.\n
dataset_sample\yaml\salesagility_SuiteCRM\.github\config.yml
config.yml
YAML
3,277
0.8
0.106383
0
vue-tools
165
2025-02-26T18:44:51.770372
MIT
false
e8f93c54647745177a0f218b58175560
# These are supported funding model platforms\n\ngithub: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]\npatreon: # Replace with a single Patreon username\nopen_collective: suitecrm\nko_fi: # Replace with a single Ko-fi username\ntidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel\ncommunity_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry\nliberapay: # Replace with a single Liberapay username\nissuehunt: # Replace with a single IssueHunt username\notechie: # Replace with a single Otechie username\ncustom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']\n
dataset_sample\yaml\salesagility_SuiteCRM\.github\FUNDING.yml
FUNDING.yml
YAML
671
0.8
0
0.090909
react-lib
242
2024-09-22T23:01:34.242389
GPL-3.0
false
8f11ffbca9293c11837ab4a555af02b5
blank_issues_enabled: false\ncontact_links:\n - name: Request a Feature/Suggestion/Enhancement\n url: https://community.suitecrm.com/c/suggestion-box/13\n about: If you would like to request an enhancement/feature, please do so via the forum, as this allows community members to vote for the suggestions more easily\n - name: Raise a Documentation Issue\n url: https://github.com/salesagility/SuiteDocs/issues/new\n about: Please use this item if you would like to report a documentation issue\n button-text: Start\n - name: Raise a SuiteCRM 8 Bug\n url: https://github.com/salesagility/SuiteCRM-Core/issues/new/choose\n about: Use this item if your issue is specific to SuiteCRM 8 and above\n
dataset_sample\yaml\salesagility_SuiteCRM\.github\ISSUE_TEMPLATE\config.yml
config.yml
YAML
705
0.8
0.25
0
react-lib
512
2023-11-18T23:31:44.223824
Apache-2.0
false
e8fdfc33da9286ddcf62359f96830c0d
name: Add comment\non:\n issues:\n types:\n - labeled\njobs:\n add-comment:\n if: contains(github.event.label.name, 'Bug')\n runs-on: ubuntu-latest\n permissions:\n issues: write\n steps:\n - name: Add comment\n run: gh issue comment "$NUMBER" --body "$BODY"\n env:\n GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n GH_REPO: ${{ github.repository }}\n NUMBER: ${{ github.event.issue.number }}\n BODY: |\n Hey @${{ github.actor }}!\n Thanks for contributing to the SuiteCRM project :sparkles:\n\n > **Remember to support your issue by voting!**\n Get more information [here](https://docs.suitecrm.com/community/raising-issues/issues-voting/)\n reactions: '+1'\n
dataset_sample\yaml\salesagility_SuiteCRM\.github\workflows\add-comment.yml
add-comment.yml
YAML
762
0.8
0.08
0
awesome-app
409
2025-01-07T22:32:44.703251
MIT
false
ce7bedbbf9ec1a248f4925db7a2730b8
language: php\nphp:\n - 5.3\n - 5.4\n - 5.5\nscript: phpunit --stderr --bootstrap tests/bootstrap.php tests/tests.php\n
dataset_sample\yaml\salesagility_SuiteCRM\include\social\facebook\facebook_sdk\.travis.yml
.travis.yml
YAML
116
0.7
0
0
awesome-app
147
2024-08-19T05:30:27.605646
Apache-2.0
false
b50200162dd1758876be367e894194e6
mappings:\n # Name\n first_name: name.first\n last_name: name.last\n name: name.name\n # Metadata\n date_entered: meta.created.date\n created_by: meta.created.user_id\n date_modified: meta.modified.date\n modified_user_id: meta.modified.user_id\n assigned_user_id: meta.assigned.user_id\n modified_by_name: meta.modified.user_name\n created_by_name: meta.created.user_name\n assigned_user_name: meta.assigned.user_name\n assigned_user_name_owner: meta.assigned.owner_name\nregexMappings:\n /^phone\.phone_([a-zA-Z]*)$/: phone.@1\n /^address_([a-zA-Z]*)\.([a-zA-Z]*)_address_[a-zA-Z]*$/: address.@2.@1\nblacklist:\n- search_name\n- current_user_only
dataset_sample\yaml\salesagility_SuiteCRM\lib\Search\Index\Documentify\SearchDefsDocumentifier.yml
SearchDefsDocumentifier.yml
YAML
644
0.8
0
0.095238
react-lib
400
2024-10-16T07:40:47.351468
MIT
false
a44220c10c657f4721c2cdc7cd2ae379
mappings:\n # Name\n first_name: name.first\n last_name: name.last\n name: name.name\n salutation: name.salutation\n # Metadata\n date_entered: meta.created.date\n created_by: meta.created.user_id\n date_modified: meta.modified.date\n modified_user_id: meta.modified.user_id\n assigned_user_id: meta.assigned.user_id\n modified_by_name: meta.modified.user_name\n created_by_name: meta.created.user_name\n assigned_user_name: meta.assigned.user_name\n assigned_user_name_owner: meta.assigned.owner_name\n # Account\n account_id: account.id\n account_name: account.name\n account_description: account.description\n title: account.title\n department: account.department\n # Opportunity\n opportunity_id: opportunity.id\n opportunity_name: opportunity.name\n opportunity_amount: opportunity.amount\n # Reports to\n reports_to_id: reports_to.id\n report_to_name: reports_to.name\n reports_to_name: reports_to.name\n # Other\n assistant: assistant.name\n assistant_phone: assistant.phone\n campaign_id: campaign.id\n campaign_name: campaign.name\n parent_id: parent.id\n parent_name: parent.name\n messenger_id: messenger.id\n messenger_type: messenger.type\n lead_source: lead.type\n lead_source_description: lead.description\nregexMappings:\n /^email[0-9]*$/: +email\n /^phone\_([a-z_]+)$/: phone.@1\n /^address\_([a-z_]+)$/: address.primary.@1\n /^([a-z]+)\_address\_([a-z_]+)$/: address.@1.@2\nblacklist:\n- deleted\n- photo\n- do_not_call\n- lawful_basis\n- date_reviewed\n- lawful_basis_source\n- c_accept_status_fields\n- m_accept_status_fields\n- e_invite_status_fields\n- e_accept_status_fields\n- jjwg_maps_lng_c\n- jjwg_maps_lat_c\n- jjwg_maps_geocode_status_c\n- jjwg_maps_address_c\n- opportunity_role_fields\n- id_c\n- joomla_account_id\n- portal_account_disabled\n- portal_user_type\n- portal_only\n- portal_name\n- portal_app\n- user_hash\n- pwd_last_changed\n- authenticate_id\n- sugar_login\n- is_admin\n- external_auth_only\n- receive_notifications\n- status\n- show_on_employees\n- is_group\n- factor_auth\n- factor_auth_interface\n- securitygroup_noninher_fields\n- system_generated_password\n- full_name\n- modified_by_name_mod\n- created_by_name_mod\n- assigned_user_name_mod\n- parent_name_mod\n- report_to_name_mod\n- campaign_name_mod\n- email_opt_out
dataset_sample\yaml\salesagility_SuiteCRM\lib\Utility\BeanJsonSerializer.yml
BeanJsonSerializer.yml
YAML
2,225
0.8
0
0.065934
vue-tools
546
2024-07-10T00:54:46.678357
Apache-2.0
false
c9f6e3dae78a0061d5ed1612eb50c02d
# Codeception Test Suite Configuration\n#\n# Suite for acceptance tests.\n# Perform tests in browser using the SuiteCRM WebDriver\n#\n# Use the enviornmental config files to configure the driver\n\nclass_name: AcceptanceTester\nmodules:\n enabled:\n - \Helper\Acceptance\n - \Helper\WebDriverHelper\n - Filesystem\n - \SuiteCRM\Test\Driver\WebDriver\n config:\n \SuiteCRM\Test\Driver\WebDriver:\n url: '%INSTANCE_URL%'\n browser: '%BROWSER%'\n host: '%WEBDRIVER_HOST%'\n port: '%WEBDRIVER_PORT%'\nenv:\n chrome:\n modules:\n config:\n \SuiteCRM\Test\Driver\WebDriver:\n browser: chrome\n firefox:\n modules:\n config:\n \SuiteCRM\Test\Driver\WebDriver:\n browser: firefox\n edge:\n modules:\n config:\n \SuiteCRM\Test\Driver\WebDriver:\n browser: MicrosoftEdge
dataset_sample\yaml\salesagility_SuiteCRM\tests\acceptance.suite.yml
acceptance.suite.yml
YAML
975
0.8
0.028571
0.171429
awesome-app
865
2024-01-19T18:28:54.403180
Apache-2.0
true
3e990291810eaa169f5c76facbe0bcd8
actor: ApiTester\nmodules:\n enabled:\n - \Helper\api\n - Filesystem\n - Asserts\n - \Helper\PhpBrowserDriverHelper\n - PhpBrowser:\n url: 'http://localhost/api/v8/'\n - REST:\n depends: PhpBrowser\n url: 'http://localhost/api/v8/'
dataset_sample\yaml\salesagility_SuiteCRM\tests\api.suite.yml
api.suite.yml
YAML
298
0.8
0
0
vue-tools
517
2024-12-22T14:14:11.167750
MIT
true
00c4708e0d7eb2890f43531adb01c596
actor: InstallTester\nmodules:\n enabled:\n - \Helper\Acceptance\n - \Helper\WebDriverHelper\n - \Helper\Install\n - \SuiteCRM\Test\Driver\WebDriver\n - Filesystem\n config:\n \SuiteCRM\Test\Driver\WebDriver:\n url: '%INSTANCE_URL%'\n browser: '%BROWSER%'\n restart: true\n wait: 1\nenv:\n chrome:\n modules:\n config:\n \SuiteCRM\Test\Driver\WebDriver:\n browser: chrome\n firefox:\n modules:\n config:\n \SuiteCRM\Test\Driver\WebDriver:\n browser: firefox\n edge:\n modules:\n config:\n \SuiteCRM\Test\Driver\WebDriver:\n browser: MicrosoftEdge
dataset_sample\yaml\salesagility_SuiteCRM\tests\install.suite.yml
install.suite.yml
YAML
774
0.7
0
0
vue-tools
311
2023-08-17T06:08:58.968038
GPL-3.0
true
933de04482371006fe92f7c94a1036c7
# Codeception Test Suite Configuration\n#\n# Suite for unit or integration tests.\n\nactor: UnitTester\nmodules:\n enabled:\n - Asserts\n - \Helper\Acceptance\n\nbootstrap: _bootstrap.php\n
dataset_sample\yaml\salesagility_SuiteCRM\tests\unit.suite.dist.yml
unit.suite.dist.yml
YAML
185
0.8
0.090909
0.333333
node-utils
618
2025-07-04T14:58:51.196227
GPL-3.0
true
2d94905c5c744480c9a5df0f3670a1f0
# This is an example configuration file that should be copied to a file named custom.yml so\n# it can be customized without committing it to git. (custom.yml is ignored by the gitignore).\n# This configuration is meant to be used with the Install and Acceptance suites.\n# Make sure to install ChromeDriver (with ./vendor/bin/robo chromedriver:install)\n# before trying to use this.\n#\n# See the Codeception documentation for more information on how to configure this file:\n# - https://codeception.com/docs/reference/Configuration\n# - https://codeception.com/docs/modules/WebDriver\n# Also see the SuiteCRM Automated Testing documentation:\n# - https://docs.suitecrm.com/developer/automatedtesting/\n#\n\n# Uncomment this to run ChromeDriver as a background process whenever the tests are run.\n# extensions:\n# enabled:\n# # Run ChromeDriver in the background when acceptance tests are running.\n# - Codeception\Extension\RunProcess:\n# 0: ./build/tmp/webdriver/chromedriver --url-base=/wd/hub\n# sleep: 5 # wait 5 seconds for ChromeDriver to start up.\nmodules:\n enabled:\n - \SuiteCRM\Test\Driver\WebDriver\n config:\n \SuiteCRM\Test\Driver\WebDriver:\n # This URL should be the location of the CRM you want to run\n # tests on, for example "http://localhost:3000".\n url: "http://localhost/"\n # Don't wait before failing if an element isn't on the page.\n # Keep this at 0 to be consistent with how it's run in CI.\n wait: 0\n # ChromeDriver port\n port: 9515\n browser: chrome\n # Clear cookies between test runs to make sure state is reset between\n # every test.\n clear_cookies: true\n # Initial window size, this is set to false for Chrome so it can be\n # configured in the capabilities below.\n window_size: false\n # Set window size to 1920x1080 (you generally shouldn't modify this or it\n # will cause tests to fail). Also run the test suite with a 'headless'\n # Chrome browser, meaning the browser window won't show up while you're\n # running the test suite.\n capabilities:\n 'goog:chromeOptions':\n args: ["window-size=1920x1080", "--headless"]\n # If the test suite fails to find Chrome, you can uncomment the\n # line below and set the value to your Chrome executable.\n # binary: "/usr/bin/google-chrome"\n
dataset_sample\yaml\salesagility_SuiteCRM\tests\_envs\custom.dist.yml
custom.dist.yml
YAML
2,368
0.8
0.12
0.714286
vue-tools
385
2025-06-27T21:10:18.735091
MIT
true
4856fba342224f14e1a8c16c4419a47e
modules:\n enabled:\n - \SuiteCRM\Test\Driver\WebDriver\n config:\n \SuiteCRM\Test\Driver\WebDriver:\n url: "http://localhost/"\n wait: 0\n port: 9515 # ChromeDriver port\n browser: chrome\n window_size: false\n clear_cookies: true\n capabilities:\n chromeOptions:\n args: ["--headless", "--disable-gpu", "window-size=1920x1080"]\n binary: "/usr/bin/google-chrome-stable"\n\n#google-chrome-stable: /usr/bin/google-chrome-stable /usr/bin/X11/google-chrome-stable /usr/share/man/man1/google-chrome-stable.1.gz\n
dataset_sample\yaml\salesagility_SuiteCRM\tests\_envs\travis-ci-hub.yml
travis-ci-hub.yml
YAML
564
0.8
0
0.0625
vue-tools
479
2023-12-21T08:13:23.329844
GPL-3.0
true
87f3c34f50b5ebdfc58e57d99e2ce5b2
version: "2"\n\nlanguages:\n Ruby: false\n JavaScript: false\n Python: true\n PHP: false\n\nexclude_patterns:\n - "*.js"\n - "*.rb"\n - "*.php"\n - "tests/"\n\nplugins:\n radon:\n enabled: true\n exclude_patterns:\n - "templates/"\n config:\n threshold: "D"\n\nchecks:\n argument-count:\n enabled: false\n similar-code:\n config:\n threshold: 40\n
dataset_sample\yaml\saltstack_salt\.codeclimate.yml
.codeclimate.yml
YAML
364
0.7
0
0
awesome-app
802
2024-08-20T05:09:13.671713
MIT
false
b520da39da6ad1bc6f838b83439e2afa
codecov:\n ci:\n - github.com\n\n max_report_age: 72 # The age, in hours, you want coverage reports to expire at, or if you\n # want to disable this check. Expired reports will not be processed by codecov.\n require_ci_to_pass: false\n\n notify:\n wait_for_ci: true # Should Codecov wait for all CI statuses to complete before sending ours.\n # Note: Codecov considers all non-codecov statuses to be CI statuses\n# manual_trigger: true # We manually tell codecov to merge and process all uploaded coverage reports\n\n\nignore:\n - ^*.py$ # python files at the repo root, ie, setup.py\n - doc/.* # ignore any code under doc/\n - salt/ext/.* # ignore any code under salt/ext\n\ncoverage:\n round: up\n range: 70..100\n precision: 2\n\n status:\n project:\n default:\n target: auto # auto compares coverage to the previous base commit\n threshold: 5% # adjust accordingly based on how flaky your tests are\n # this allows a 5% drop from the previous base commit coverage\n flags:\n - salt\n - tests\n\n salt: # declare a new status context "salt"\n paths:\n - "!tests/" # remove all files in "tests/"\n target: auto # will use the coverage from the base commit (pull request base or parent commit) coverage to compare against.\n flags:\n - salt\n\n tests: # declare a new status context "tests"\n paths:\n - "!salt/" # only include coverage in "tests/" folder\n target: auto # auto while we get this going\n flags:\n - tests\n\n patch: # pull requests only: this commit status will measure the\n # entire pull requests Coverage Diff. Checking if the lines\n # adjusted are covered at least X%.\n default:\n target: auto # auto compares coverage to the previous base commit\n threshold: 5% # adjust accordingly based on how flaky your tests are\n # this allows a 5% drop from the previous base commit coverage\n\nflags:\n salt:\n paths:\n - salt/\n carryforward: false # https://docs.codecov.io/docs/carryforward-flags\n tests:\n paths:\n - tests/\n carryforward: false\n pkg:\n paths:\n - pkg/tests\n carryforward: false\n unit:\n paths:\n - tests/unit\n - tests/pytests/unit\n carryforward: false\n functional:\n paths:\n - tests/pytests/functional\n carryforward: false\n scenarios:\n paths:\n - tests/pytests/scenarios\n carryforward: false\n integration:\n paths:\n - tests/integration\n - tests/pytests/integration\n carryforward: false\n\ncomment:\n layout: "reach, diff, flags, files"\n behavior: new # Comment posting behaviour\n # default: update, if exists. Otherwise post new.\n # once: update, if exists. Otherwise post new. Skip if deleted.\n # new: delete old and post new.\n
dataset_sample\yaml\saltstack_salt\.codecov.yml
.codecov.yml
YAML
3,261
0.95
0.074468
0.120482
python-kit
300
2024-11-14T16:03:39.507069
MIT
false
da50385c0313df37a7a769c1847df66d
# Configuration for welcome - https://github.com/behaviorbot/welcome\n# Configuration for new-issue-welcome - https://github.com/behaviorbot/new-issue-welcome\n# Comment to be posted to on first time issues\nnewIssueWelcomeComment: >\n Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have\n a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as\n possible. In the meantime, here’s some information that may help as you continue your Salt\n journey.\n\n Please be sure to review our [Code of Conduct](https://github.com/saltstack/salt/blob/master/CODE_OF_CONDUCT.md).\n Also, check out some of our community\n resources including:\n\n - [Salt’s Contributor Guide](https://docs.saltproject.io/en/master/topics/development/contributing.html)\n - [Join our Community Discord](https://discord.com/invite/J7b7EscrAs)\n - [Salt Project YouTube channel](https://www.youtube.com/channel/UCpveTIucFx9ljGelW63-BWg)\n - [Community Wiki](https://github.com/saltstack/community/wiki)\n\n There are lots of ways to get involved in our community. Every month, there are around a dozen\n opportunities to meet with other contributors and the Salt Core team and collaborate in real\n time. The best way to keep track is by subscribing to the Salt Community Events Calendar.\n\n If you have additional questions, email us at saltproject.pdl@broadcom.com. We’re glad\n you’ve joined our community and look forward to doing awesome things with\n you!\n\n# Comment to be posted to on PRs from first time contributors in your repository\nnewPRWelcomeComment: >\n Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have\n a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as\n possible. In the meantime, here’s some information that may help as you continue your Salt\n journey.\n\n Please be sure to review our [Code of Conduct](https://github.com/saltstack/salt/blob/master/CODE_OF_CONDUCT.md).\n Also, check out some of our community\n resources including:\n\n - [Salt’s Contributor Guide](https://docs.saltproject.io/en/master/topics/development/contributing.html)\n - [Join our Community Discord](https://discord.com/invite/J7b7EscrAs)\n - [Salt Project YouTube channel](https://www.youtube.com/channel/UCpveTIucFx9ljGelW63-BWg)\n - [Community Wiki](https://github.com/saltstack/community/wiki)\n\n There are lots of ways to get involved in our community. Every month, there are around a dozen\n opportunities to meet with other contributors and the Salt Core team and collaborate in real\n time. The best way to keep track is by subscribing to the Salt Community Events Calendar.\n\n If you have additional questions, email us at saltproject.pdl@broadcom.com. We’re glad\n you’ve joined our community and look forward to doing awesome things with\n you!\n\n# Comment to be posted to on pull requests merged by a first time user\nfirstPRMergeComment: >\n Congratulations on your first PR being merged! :tada:\n
dataset_sample\yaml\saltstack_salt\.github\config.yml
config.yml
YAML
3,061
0.8
0.113208
0.116279
vue-tools
464
2025-02-13T08:55:53.017525
MIT
false
99bcf24878014aafc45489431ec74e00
version: 2\nupdates:\n # master branch\n - package-ecosystem: "pip"\n directory: "/"\n schedule:\n interval: "daily"\n target-branch: master\n labels:\n - "test:full"\n # Don't open PRs for regular version updates\n open-pull-requests-limit: 0\n\n # 3006.x release branch\n - package-ecosystem: "pip"\n directory: "/"\n schedule:\n interval: "daily"\n target-branch: 3006.x\n labels:\n - "test:full"\n # Don't open PRs for regular version updates\n open-pull-requests-limit: 0\n\n # freeze release branch\n - package-ecosystem: "pip"\n directory: "/"\n schedule:\n interval: "daily"\n target-branch: freeze\n labels:\n - "test:full"\n # Don't open PRs for regular version updates\n open-pull-requests-limit: 0\n
dataset_sample\yaml\saltstack_salt\.github\dependabot.yml
dependabot.yml
YAML
767
0.8
0.088235
0.1875
vue-tools
388
2024-04-27T02:09:15.108357
BSD-3-Clause
false
b825bb7b54c57dc4f46284c01860759d
# Probot Stale configuration file\n\n# Number of days of inactivity before an issue becomes stale\n# 600 is approximately 1 year and 8 months\ndaysUntilStale: 90\n\n# Number of days of inactivity before a stale issue is closed\ndaysUntilClose: false\n\n# Issues with these labels will never be considered stale\nexemptLabels:\n - Confirmed\n - Release Blocker\n - Critical\n - P1\n - P2\n - Bug\n - Feature\n - Test Failure\n -ZD\n\n# Label to use when marking an issue as stale\nstaleLabel: stale\n\n# Comment to post when marking an issue as stale. Set to `false` to disable\nmarkComment: |\n This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.\n\n If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.\n\n# Comment to post when removing the stale label. Set to `false` to disable\nunmarkComment: |\n Thank you for updating this issue. It is no longer marked as stale.\n\n# Comment to post when closing a stale issue. Set to `false` to disable\ncloseComment: false\n\n# Limit to only `issues` or `pulls`\nonly: issues\n
dataset_sample\yaml\saltstack_salt\.github\stale.yml
stale.yml
YAML
1,158
0.8
0.076923
0.333333
react-lib
193
2024-11-21T12:56:15.124965
Apache-2.0
false
af4052b312cdca42c19e031990c779fe
---\nname: build-onedir-deps\ndescription: Build Onedir Dependencies\n\ninputs:\n platform:\n required: true\n description: The platform to build\n arch:\n required: true\n description: The platform arch to build\n python-version:\n required: true\n description: The python version to build\n package-name:\n required: false\n description: The onedir package name to create\n default: salt\n cache-prefix:\n required: true\n description: Seed used to invalidate caches\n\n\nruns:\n using: composite\n\n steps:\n - name: Cache Deps Onedir Package Directory\n id: onedir-pkg-cache\n uses: ./.github/actions/cache\n with:\n path: artifacts/${{ inputs.package-name }}\n key: >\n ${{ inputs.cache-prefix }}|${{ inputs.python-version }}|deps|${{ inputs.platform }}|${{ inputs.arch }}|${{ inputs.package-name }}|${{\n hashFiles(\n format('{0}/.relenv/**/*.xz', github.workspace),\n 'requirements/static/pkg/*/*.txt',\n '.github/actions/build-onedir-deps/action.yml',\n '.github/workflows/build-deps-onedir-*.yml',\n 'cicd/shared-gh-workflows-context.yml'\n )\n }}\n\n - name: Install Salt Onedir Package Dependencies\n shell: bash\n if: steps.onedir-pkg-cache.outputs.cache-hit != 'true'\n env:\n RELENV_BUILDENV: "1"\n run: |\n tools pkg build onedir-dependencies --arch ${{ inputs.arch }} --python-version ${{ inputs.python-version }} --package-name artifacts/${{ inputs.package-name }} --platform ${{ inputs.platform }}\n\n - name: Cleanup Salt Onedir Directory\n shell: bash\n run: |\n tools pkg pre-archive-cleanup artifacts/${{ inputs.package-name }}\n
dataset_sample\yaml\saltstack_salt\.github\actions\build-onedir-deps\action.yml
action.yml
YAML
1,730
0.95
0.018182
0
node-utils
785
2023-08-30T12:37:29.128748
GPL-3.0
false
6f2fdad60f2cfd3fd12825d2a96d9677
---\nname: build-onedir-salt\ndescription: Build Onedir Package\n\ninputs:\n platform:\n required: true\n description: The platform to build\n arch:\n required: true\n description: The platform arch to build\n package-name:\n required: false\n description: The onedir package name to create\n default: salt\n cache-prefix:\n required: true\n description: Seed used to invalidate caches\n python-version:\n required: true\n description: The python version to build\n salt-version:\n required: true\n description: The Salt version to set prior to building packages.\n\n\nruns:\n using: composite\n\n steps:\n\n - name: Install Salt Packaging Dependencies into Relenv Onedir\n uses: ./.github/actions/build-onedir-deps\n with:\n platform: ${{ inputs.platform }}\n arch: ${{ inputs.arch }}\n python-version: "${{ inputs.python-version }}"\n cache-prefix: ${{ inputs.cache-seed }}|relenv|${{ inputs.salt-version }}\n\n - name: Download Source Tarball\n uses: actions/download-artifact@v4\n with:\n name: salt-${{ inputs.salt-version }}.tar.gz\n\n - name: Install Salt Into Onedir\n shell: bash\n env:\n RELENV_BUILDENV: "1"\n run: |\n tools pkg build salt-onedir salt-${{ inputs.salt-version }}.tar.gz --platform ${{ inputs.platform }} --package-name artifacts/${{ inputs.package-name }}\n\n - name: Cleanup Salt Onedir Directory\n shell: bash\n run: |\n tools pkg pre-archive-cleanup artifacts/${{ inputs.package-name }}\n\n - name: Create Archive\n shell: bash\n run: |\n cd artifacts/\n tar -cJf ${{ inputs.package-name }}-${{ inputs.salt-version }}-onedir-${{ inputs.platform }}-${{ inputs.arch }}.tar.xz ${{ inputs.package-name }}\n\n - name: Create Archive (Zipfile)\n if: ${{ inputs.platform == 'windows' }}\n shell: powershell\n run: |\n cd artifacts\n py -3 -m zipfile -c "${{ inputs.package-name }}-${{ inputs.salt-version }}-onedir-${{ inputs.platform }}-${{ inputs.arch }}.zip" ${{ inputs.package-name }}\n\n - name: Create Hash Files\n shell: bash\n run: |\n tools pkg generate-hashes artifacts/${{ inputs.package-name }}-${{ inputs.salt-version }}-onedir-${{ inputs.platform }}-${{ inputs.arch }}.*\n\n - name: Upload Onedir Tarball as an Artifact\n uses: actions/upload-artifact@v4\n with:\n name: ${{ inputs.package-name }}-${{ inputs.salt-version }}-onedir-${{ inputs.platform }}-${{ inputs.arch }}.tar.xz\n path: artifacts/${{ inputs.package-name }}-${{ inputs.salt-version }}-onedir-${{ inputs.platform }}-${{ inputs.arch }}.tar.xz*\n retention-days: 7\n if-no-files-found: error\n\n - name: Upload Onedir Zipfile as an Artifact\n if: ${{ inputs.platform == 'windows' }}\n uses: actions/upload-artifact@v4\n with:\n name: ${{ inputs.package-name }}-${{ inputs.salt-version }}-onedir-${{ inputs.platform }}-${{ inputs.arch }}.zip\n path: artifacts/${{ inputs.package-name }}-${{ inputs.salt-version }}-onedir-${{ inputs.platform }}-${{ inputs.arch }}.zip*\n retention-days: 7\n if-no-files-found: error\n
dataset_sample\yaml\saltstack_salt\.github\actions\build-onedir-salt\action.yml
action.yml
YAML
3,154
0.85
0.044444
0
awesome-app
472
2024-10-28T10:18:04.384060
Apache-2.0
false
21679ed1645554a854b1fd56a421bac4
---\nname: build-source-tarball\ndescription: Build Source Tarball\n\ninputs:\n salt-version:\n required: true\n description: The Salt version to set prior to building the tarball.\n nox-version:\n required: false\n description: The version of Nox to install\n default: "2022.8.7"\n\n\nruns:\n using: composite\n\n steps:\n\n - name: Download Release Patch\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n uses: actions/download-artifact@v4\n with:\n name: salt-${{ inputs.salt-version }}.patch\n\n - name: Configure Git\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n shell: bash\n run: |\n tools pkg configure-git\n\n - name: Apply Release Patch\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n shell: bash\n run: |\n tools pkg apply-release-patch salt-${{ inputs.salt-version }}.patch --delete\n\n - name: Create Source Tarball\n shell: bash\n run: |\n tools pkg source-tarball\n\n - name: Create Hash Files\n shell: bash\n run: |\n tools pkg generate-hashes dist/salt-${{ inputs.salt-version }}.tar.gz\n\n - name: Upload Source Tarball as an Artifact\n uses: actions/upload-artifact@v4\n with:\n name: salt-${{ inputs.salt-version }}.tar.gz\n path: dist/salt-*.tar.gz*\n retention-days: 7\n if-no-files-found: error\n
dataset_sample\yaml\saltstack_salt\.github\actions\build-source-tarball\action.yml
action.yml
YAML
1,394
0.85
0.074074
0
node-utils
717
2025-01-17T16:06:38.496549
GPL-3.0
false
017c80b0d3e93fdc41700571802e4b75
---\nname: cache\ndescription: GitHub Actions Cache\ninputs:\n path:\n description: 'A list of files, directories, and wildcard patterns to cache and restore'\n required: true\n key:\n description: 'An explicit key for restoring and saving the cache'\n required: true\n restore-keys:\n description: 'An ordered list of keys to use for restoring stale cache if no cache hit occurred for key. Note `cache-hit` returns false in this case.'\n required: false\n upload-chunk-size:\n description: 'The chunk size used to split up large files during upload, in bytes'\n required: false\n enableCrossOsArchive:\n description: 'An optional boolean when enabled, allows windows runners to save or restore caches that can be restored or saved respectively on other platforms'\n default: 'false'\n required: false\n fail-on-cache-miss:\n description: 'Fail the workflow if cache entry is not found'\n default: 'false'\n required: false\n lookup-only:\n description: 'Check if a cache entry exists for the given input(s) (key, restore-keys) without downloading the cache'\n default: 'false'\n required: false\n\noutputs:\n cache-hit:\n description: 'A boolean value to indicate an exact match was found for the primary key'\n value: ${{ steps.github-cache.outputs.cache-hit || steps.s3-cache.outputs.cache-hit }}\n\nruns:\n using: composite\n\n steps:\n\n - name: Map inputs to environment variables\n shell: bash\n run: |\n echo "GHA_CACHE_PATH=${{ inputs.path }}" | tee -a "${GITHUB_ENV}"\n echo "GHA_CACHE_KEY=${{ inputs.key }}" | tee -a "${GITHUB_ENV}"\n echo "GHA_CACHE_ENABLE_CROSS_OS_ARCHIVE=${{ inputs.enableCrossOsArchive }}" | tee -a "${GITHUB_ENV}"\n echo "GHA_CACHE_FAIL_ON_CACHE_MISS=${{ inputs.fail-on-cache-miss }}" | tee -a "${GITHUB_ENV}"\n echo "GHA_CACHE_LOOKUP_ONLY=${{ inputs.lookup-only }}" | tee -a "${GITHUB_ENV}"\n echo "GHA_CACHE_RESTORE_KEYS=${{ inputs.restore-keys }}" | tee -a "${GITHUB_ENV}"\n echo "GHA_CACHE_UPLOAD_CHUNK_SIZE=${{ inputs.upload-chunk-size }}" | tee -a "${GITHUB_ENV}"\n\n - name: Cache Provided Path (GitHub Actions)\n id: github-cache\n if: ${{ env.USE_S3_CACHE != 'true' }}\n uses: actions/cache@v4\n with:\n path: ${{ env.GHA_CACHE_PATH }}\n key: ${{ env.GHA_CACHE_KEY }}\n enableCrossOsArchive: ${{ env.GHA_CACHE_ENABLE_CROSS_OS_ARCHIVE }}\n fail-on-cache-miss: ${{ env.GHA_CACHE_FAIL_ON_CACHE_MISS }}\n lookup-only: ${{ env.GHA_CACHE_LOOKUP_ONLY }}\n restore-keys: ${{ env.GHA_CACHE_RESTORE_KEYS }}\n upload-chunk-size: ${{ env.GHA_CACHE_UPLOAD_CHUNK_SIZE }}\n\n - name: Get Salt Project GitHub Actions Bot Environment\n if: ${{ env.USE_S3_CACHE == 'true' }}\n shell: bash\n run: |\n TOKEN=$(curl -sS -f -X PUT "http://169.254.169.254/latest/api/token" -H "X-aws-ec2-metadata-token-ttl-seconds: 30")\n SPB_ENVIRONMENT=$(curl -sS -f -H "X-aws-ec2-metadata-token: $TOKEN" http://169.254.169.254/latest/meta-data/tags/instance/spb:environment)\n echo "SPB_ENVIRONMENT=$SPB_ENVIRONMENT" | tee -a "$GITHUB_ENV"\n REGION=$(curl -sS -f -H "X-aws-ec2-metadata-token: $TOKEN" http://169.254.169.254/latest/meta-data/placement/region)\n echo "GHA_CACHE_AWS_REGION=$REGION" | tee -a "$GITHUB_ENV"\n\n - name: Configure AWS Credentials to access cache bucket\n id: creds\n if: ${{ env.USE_S3_CACHE == 'true' }}\n uses: aws-actions/configure-aws-credentials@v4\n with:\n aws-region: ${{ env.GHA_CACHE_AWS_REGION }}\n\n - name: Cache Provided Path (S3)\n if: ${{ env.USE_S3_CACHE == 'true' }}\n id: s3-cache\n env:\n AWS_REGION: ${{ env.GHA_CACHE_AWS_REGION }}\n RUNS_ON_S3_BUCKET_CACHE: salt-project-${{ env.SPB_ENVIRONMENT}}-salt-github-actions-s3-cache\n uses: runs-on/cache@v4\n with:\n path: ${{ env.GHA_CACHE_PATH }}\n key: ${{ env.GHA_CACHE_KEY }}\n enableCrossOsArchive: ${{ env.GHA_CACHE_ENABLE_CROSS_OS_ARCHIVE }}\n fail-on-cache-miss: ${{ env.GHA_CACHE_FAIL_ON_CACHE_MISS }}\n lookup-only: ${{ env.GHA_CACHE_LOOKUP_ONLY }}\n restore-keys: ${{ env.GHA_CACHE_RESTORE_KEYS }}\n upload-chunk-size: ${{ env.GHA_CACHE_UPLOAD_CHUNK_SIZE }}\n\n - name: Verify 'fail-on-cache-miss'\n if: ${{ inputs.fail-on-cache-miss == 'true' }}\n shell: bash\n run: |\n CACHE_HIT="${{ steps.github-cache.outputs.cache-hit || steps.s3-cache.outputs.cache-hit }}"\n if [ "$CACHE_HIT" != "true" ]; then\n echo "No cache hit and fail-on-cache-miss is set to true."\n exit 1\n fi\n
dataset_sample\yaml\saltstack_salt\.github\actions\cache\action.yml
action.yml
YAML
4,617
0.95
0.133333
0
node-utils
269
2023-10-08T18:56:46.718882
GPL-3.0
false
81978ce2827b0d1145fd567e4dff6c35
---\nname: cached-virtualenv\ndescription: Setup a cached python virtual environment\n\ninputs:\n name:\n required: true\n description: The Virtualenv Name\n cache-seed:\n required: true\n description: Seed used to invalidate caches\n\noutputs:\n cache-hit:\n description: 'A boolean value to indicate an exact match was found for the primary key'\n value: ${{ steps.cache-virtualenv.outputs.cache-hit }}\n cache-key:\n description: The value of the cache key\n value: ${{ steps.setup-cache-key.outputs.cache-key }}\n python-executable:\n description: The path to the virtualenv's python executable\n value: ${{ steps.define-python-executable.outputs.python-executable }}\n\n\nruns:\n using: composite\n\n steps:\n\n - name: Get Python Version\n id: get-python-version\n uses: ./.github/actions/get-python-version\n with:\n python-binary: python3\n\n - name: Setup Cache Key\n shell: bash\n id: setup-cache-key\n run: |\n echo "cache-key=${{ inputs.cache-seed }}|${{ runner.os }}|${{ runner.arch }}|cached-venv|${{ steps.get-python-version.outputs.version }}|${{ inputs.name }}" >> "${GITHUB_OUTPUT}"\n\n - name: Define VirtualEnv path\n shell: bash\n id: virtualenv-path\n run: |\n cd ${{ github.workspace }} > /dev/null 2>&1 || true\n VENVS_PATH=$(echo ".venvs/py${{ steps.get-python-version.outputs.version }}" | python3 -c 'import sys, pathlib; sys.stdout.write(pathlib.Path.cwd().joinpath(sys.stdin.read()).as_posix())')\n echo "venvs-path=$VENVS_PATH" | tee -a "$GITHUB_OUTPUT"\n VENV_PATH=$(echo ".venvs/py${{ steps.get-python-version.outputs.version }}/${{ inputs.name }}" | python3 -c 'import sys, pathlib; sys.stdout.write(pathlib.Path.cwd().joinpath(sys.stdin.read()).as_posix())')\n echo "venv-path=$VENV_PATH" | tee -a "$GITHUB_OUTPUT"\n\n - name: Cache VirtualEnv\n id: cache-virtualenv\n uses: ./.github/actions/cache\n with:\n key: ${{ steps.setup-cache-key.outputs.cache-key }}\n path: ${{ steps.virtualenv-path.outputs.venv-path }}\n\n - name: Create Virtualenv\n shell: bash\n if: ${{ steps.cache-virtualenv.outputs.cache-hit != 'true' }}\n run: |\n mkdir -p ${{ steps.virtualenv-path.outputs.venvs-path }}\n python3 -m venv --upgrade ${{ steps.virtualenv-path.outputs.venv-path }}\n\n - name: Define python executable output\n shell: bash\n id: define-python-executable\n run: |\n shopt -s nocasematch\n if [[ "${{ runner.os }}" =~ "win" ]]; then\n BIN_DIR="${{ steps.virtualenv-path.outputs.venv-path }}/Scripts"\n PY_EXE="$BIN_DIR/python.exe"\n else\n BIN_DIR="${{ steps.virtualenv-path.outputs.venv-path }}/bin"\n PY_EXE="$BIN_DIR/python3"\n if [ ! -f "$PY_EXE" ]; then\n echo "The '${PY_EXE}' binary does not exist. Setting it to '$BIN_DIR/python' ..."\n PY_EXE="$BIN_DIR/python"\n fi\n if [ ! -f "$PY_EXE" ]; then\n echo "The '${PY_EXE}' binary does not exist. Showing the tree output for '${BIN_DIR}' ..."\n tree -a "$BIN_DIR"\n exit 1\n fi\n fi\n shopt -u nocasematch\n $PY_EXE --version\n echo "python-executable=$PY_EXE" | tee -a "${GITHUB_OUTPUT}"\n echo "${BIN_DIR}" | tee -a "${GITHUB_PATH}"\n
dataset_sample\yaml\saltstack_salt\.github\actions\cached-virtualenv\action.yml
action.yml
YAML
3,340
0.85
0.066667
0
node-utils
184
2023-10-22T07:16:29.938755
Apache-2.0
false
6e99c546c2c4ce1de37ec263b532b2f1
---\nname: get-python-version\ndescription: Setup Relenv\n\ninputs:\n python-binary:\n required: true\n description: The python binary to get the version from\n\noutputs:\n binary:\n description: The python binary executable\n value: ${{ steps.get-python-version.outputs.binary }}\n version:\n description: The python version\n value: ${{ steps.get-python-version.outputs.version }}\n full-version:\n description: The full python version\n value: ${{ steps.get-python-version.outputs.full-version }}\n version-sha256sum:\n description: The sha256sum of the version\n value: ${{ steps.get-python-version.outputs.version-sha256sum }}\n\n\nruns:\n using: composite\n\n steps:\n\n - name: Install System Packages\n if: ${{ runner.os == 'macOS' }}\n shell: bash\n run: |\n brew install coreutils\n\n - name: Get Python Version\n id: get-python-version\n shell: bash\n run: |\n echo "Python Binary: ${{ inputs.python-binary }}"\n echo "binary=${{ inputs.python-binary }}" >> "$GITHUB_OUTPUT"\n PY_VERSION=$(${{ inputs.python-binary }} -c "import sys; sys.stdout.write('{}.{}'.format(*sys.version_info))")\n echo "PY_VERSION=$PY_VERSION"\n echo "version=$PY_VERSION" >> "$GITHUB_OUTPUT"\n PY_FULL_VERSION=$(${{ inputs.python-binary }} -c "import sys; sys.stdout.write('{}.{}.{}'.format(*sys.version_info))")\n echo "PY_FULL_VERSION=$PY_FULL_VERSION"\n echo "full-version=$PY_FULL_VERSION" >> "$GITHUB_OUTPUT"\n VERSION_SHA256SUM=$(${{ inputs.python-binary }} --version --version | sha256sum | cut -d ' ' -f 1)\n echo "VERSION_SHA256SUM=$VERSION_SHA256SUM"\n echo "version-sha256sum=$VERSION_SHA256SUM" >> "$GITHUB_OUTPUT"\n
dataset_sample\yaml\saltstack_salt\.github\actions\get-python-version\action.yml
action.yml
YAML
1,723
0.85
0.02
0
react-lib
199
2024-08-15T16:23:05.105721
BSD-3-Clause
false
8888151626aedbab11ca69293bc53edf
---\nname: setup-actionlint\ndescription: Setup actionlint\n\ninputs:\n version:\n description: The version of actionlint\n default: 1.7.7\n cache-seed:\n required: true\n description: Seed used to invalidate caches\n\n\nruns:\n using: composite\n steps:\n\n - name: Cache actionlint Binary\n uses: ./.github/actions/cache\n with:\n path: /usr/local/bin/actionlint\n key: ${{ inputs.cache-seed }}|${{ runner.os }}|${{ runner.arch }}|actionlint|${{ inputs.version }}\n\n - name: Setup actionlint\n shell: bash\n run: |\n if ! command -v actionlint; then\n bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) ${{ inputs.version }}\n mv ./actionlint /usr/local/bin/actionlint\n fi\n - name: Show actionlint Version\n shell: bash\n run: |\n actionlint --version\n
dataset_sample\yaml\saltstack_salt\.github\actions\setup-actionlint\action.yml
action.yml
YAML
883
0.95
0.029412
0
react-lib
638
2024-03-28T01:40:29.519480
BSD-3-Clause
false
b85fc74cd8e032d38209034cf9dc4b1e
---\nname: setup-pre-commit\ndescription: Setup 'pre-commit'\n\ninputs:\n version:\n description: Pre-commit version to install\n required: true\n default: 3.0.3\n cache-seed:\n required: true\n description: Seed used to invalidate caches\n\n\nruns:\n using: composite\n\n steps:\n\n - uses: ./.github/actions/cached-virtualenv\n id: pre-commit-virtualenv\n with:\n name: pre-commit\n cache-seed: ${{ inputs.cache-seed }}\n\n - name: Install Pre-Commit\n if: ${{ steps.pre-commit-virtualenv.outputs.cache-hit != 'true' }}\n shell: bash\n run: |\n ${{ steps.pre-commit-virtualenv.outputs.python-executable }} -m pip install pre-commit==${{ inputs.version }}\n\n - name: Cache Pre-Commit Hooks\n uses: ./.github/actions/cache\n id: pre-commit-hooks-cache\n with:\n key: ${{ steps.pre-commit-virtualenv.outputs.cache-key }}|${{ inputs.version }}|${{ hashFiles('.pre-commit-config.yaml') }}\n path: ~/.cache/pre-commit\n\n - name: Install Pre-Commit Hooks\n shell: bash\n run: |\n pre-commit install --install-hooks\n
dataset_sample\yaml\saltstack_salt\.github\actions\setup-pre-commit\action.yml
action.yml
YAML
1,094
0.85
0.02381
0
node-utils
118
2024-08-01T07:05:39.633167
BSD-3-Clause
false
d54bb3a8cc020d87bca871ffb2679576
---\nname: setup-python-tools-scripts\ndescription: Setup 'python-tools-scripts'\n\ninputs:\n cache-prefix:\n required: true\n description: Seed used to invalidate caches\n cwd:\n description: The directory the salt checkout is located in\n default: "."\n\noutputs:\n version:\n description: "Return the python-tools-scripts version"\n value: ${{ steps.get-version.outputs.version }}\n\n\nruns:\n using: composite\n\n steps:\n\n - name: Get Python Version\n id: get-python-version\n uses: ./.github/actions/get-python-version\n with:\n python-binary: python3\n\n - name: Define Cache Hash\n id: venv-hash\n shell: bash\n run: |\n VENV_NAME_HASH=$(echo "${{ inputs.cache-prefix }}|${{ github.workflow }}|${{\n steps.get-python-version.outputs.version-sha256sum }}|${{\n hashFiles('requirements/**/*.txt', 'tools/**/*.py') }}" | sha256sum | cut -d ' ' -f 1)\n echo "TOOLS_VIRTUALENV_CACHE_SEED=$VENV_NAME_HASH" | tee -a "${GITHUB_ENV}"\n echo "venv-hash=$VENV_NAME_HASH" | tee -a "${GITHUB_OUTPUT}"\n\n - uses: ./.github/actions/cached-virtualenv\n id: tools-virtualenv\n with:\n name: tools.${{ steps.venv-hash.outputs.venv-hash }}\n cache-seed: tools|${{ steps.venv-hash.outputs.venv-hash }}\n\n - name: Restore Python Tools Virtualenvs Cache\n uses: ./.github/actions/cache\n with:\n path: ${{ inputs.cwd }}/.tools-venvs\n key: ${{ inputs.cache-prefix }}|${{ steps.venv-hash.outputs.venv-hash }}\n\n - name: Install 'python-tools-scripts'\n shell: bash\n working-directory: ${{ inputs.cwd }}\n run: |\n PYTHON_EXE=${{ steps.tools-virtualenv.outputs.python-executable }}\n ${PYTHON_EXE} -m ensurepip --upgrade\n (${PYTHON_EXE} -m pip install --help | grep break-system-packages > /dev/null 2>&1) && exitcode=0 || exitcode=1\n if [ $exitcode -eq 0 ]; then\n ${PYTHON_EXE} -m pip install --break-system-packages --upgrade setuptools\n ${PYTHON_EXE} -m pip install --break-system-packages -r requirements/static/ci/py${{ steps.get-python-version.outputs.version }}/tools.txt\n else\n ${PYTHON_EXE} -m pip install --upgrade setuptools\n ${PYTHON_EXE} -m pip install -r requirements/static/ci/py${{ steps.get-python-version.outputs.version }}/tools.txt\n fi\n\n - name: Get 'python-tools-scripts' Version\n id: get-version\n shell: bash\n working-directory: ${{ inputs.cwd }}\n run: |\n # The first time `tools` runs with newer virtual enviroments we need to disregard the output\n tools --debug --version\n VERSION=$(tools --version | tail -n 1)\n echo "version=$VERSION" >> "${GITHUB_OUTPUT}"\n
dataset_sample\yaml\saltstack_salt\.github\actions\setup-python-tools-scripts\action.yml
action.yml
YAML
2,723
0.95
0.013333
0.015625
awesome-app
61
2024-10-18T16:22:55.438660
Apache-2.0
false
e084fb8ce529e8ca634ccd79e358bfb6
---\nname: setup-relenv\ndescription: Setup Relenv\n\ninputs:\n platform:\n required: true\n description: The platform to build\n arch:\n required: true\n description: The platform arch to build\n python-version:\n required: true\n description: The version of python to build\n cache-seed:\n required: true\n description: Seed used to invalidate caches\n version:\n required: false\n description: The version of relenv to use\n default: 0.13.2\n\noutputs:\n version:\n description: The relenv version\n value: ${{ inputs.version }}\n\n\nruns:\n using: composite\n\n steps:\n\n - name: Install Relenv\n shell: bash\n run: |\n python3 -m pip install relenv==${{ inputs.version }}\n\n - name: Cache Relenv Data Directory\n uses: ./.github/actions/cache\n with:\n path: ${{ github.workspace }}/.relenv\n key: ${{ inputs.cache-seed }}|relenv|${{ inputs.version }}|${{ inputs.python-version }}|${{ inputs.platform }}|${{ inputs.arch }}\n\n - name: Fetch Toolchain\n if: ${{ inputs.platform == 'linux' }}\n shell: bash\n env:\n RELENV_FETCH_VERSION: "${{ inputs.version }}"\n run: |\n python3 -m relenv toolchain fetch --arch=${{ inputs.arch }}\n\n - name: Fetch Native Python Build\n shell: bash\n env:\n RELENV_FETCH_VERSION: "${{ inputs.version }}"\n run: |\n python3 -m relenv fetch --arch=${{ inputs.arch }} --python=${{ inputs.python-version }}\n
dataset_sample\yaml\saltstack_salt\.github\actions\setup-relenv\action.yml
action.yml
YAML
1,450
0.85
0.017241
0
awesome-app
791
2024-12-14T11:13:43.573311
BSD-3-Clause
false
1c4a731e682a91d04730be29c2035fc0
---\nname: setup-salt-version\ndescription: Setup Salt Version\n\ninputs:\n cwd:\n default: ""\n description: The current working directory to use\n salt-version:\n default: ""\n description: >\n The Salt version to set prior to running tests or building packages.\n If not set, it is discover at run time, like, for example, capturing\n the output of running `python3 salt/version.py`\n validate-version:\n default: "false"\n description: Validate the passed version.\n release:\n default: "false"\n description: This is a release of salt.\n\noutputs:\n salt-version:\n value: ${{ steps.setup-salt-version.outputs.salt-version }}\n description: The Salt version written to `salt/_version.txt`\n\n\nruns:\n using: composite\n\n steps:\n\n - name: Setup Salt Version\n id: setup-salt-version\n shell: bash\n run: |\n if [ "${{ inputs.cwd }}" != "" ]; then\n cd "${{ inputs.cwd }}"\n fi\n tools pkg set-salt-version ${{ inputs.validate-version == 'true' && '--validate-version' || '' }} ${{ inputs.release == 'true' && '--release' || '' }} ${{ inputs.salt-version }}\n
dataset_sample\yaml\saltstack_salt\.github\actions\setup-salt-version\action.yml
action.yml
YAML
1,126
0.7
0.05
0
react-lib
131
2024-03-14T09:43:34.675186
Apache-2.0
false
31f88ab7833b5a146e84d6264f2f768f
---\nname: setup-shellcheck\ndescription: Setup shellcheck\n\ninputs:\n version:\n description: The version of shellcheck\n default: v0.9.0\n cache-seed:\n required: true\n description: Seed used to invalidate caches\n\n\nruns:\n using: composite\n steps:\n\n - name: Cache shellcheck Binary\n uses: ./.github/actions/cache\n with:\n path: /usr/local/bin/shellcheck\n key: ${{ inputs.cache-seed }}|${{ runner.os }}|${{ runner.arch }}|shellcheck|${{ inputs.version }}\n\n - name: Setup shellcheck\n shell: bash\n run: |\n if ! command -v shellcheck; then\n wget https://github.com/koalaman/shellcheck/releases/download/${{ inputs.version }}/shellcheck-${{ inputs.version }}.${{ runner.os }}.x86_64.tar.xz\n tar xf shellcheck-${{ inputs.version }}.${{ runner.os }}.x86_64.tar.xz\n mv shellcheck-${{ inputs.version }}/shellcheck /usr/local/bin/shellcheck\n rm -rf shellcheck-${{ inputs.version }}.${{ runner.os }}.x86_64.tar.xz shellcheck-${{ inputs.version }}\n fi\n - name: Show shellcheck Version\n shell: bash\n run: |\n shellcheck --version\n
dataset_sample\yaml\saltstack_salt\.github\actions\setup-shellcheck\action.yml
action.yml
YAML
1,134
0.95
0.027778
0
awesome-app
696
2023-08-25T13:56:11.737466
Apache-2.0
false
7c673982b58c943fd88d2eec5aa10b02
name: ssh-tunnel\ndescription: SSH Reverse Tunnel\n\ninputs:\n public_key:\n required: true\n type: string\n description: Public key to accept for reverse tunnel. Warning, this should not be the public key for the 'private_key' input.\n offer:\n required: true\n type: string\n description: RTC offer\n debug:\n required: false\n type: bool\n default: false\n description: Run sshd with debug enabled.\n\nruns:\n using: composite\n steps:\n - uses: actions/checkout@v4\n\n - uses: actions/setup-python@v5\n with:\n python-version: '3.10'\n\n - name: Install ssh\n if: ${{ runner.os == 'Windows' }}\n shell: powershell\n run: |\n python3.exe -m pip install requests\n python3.exe .github/actions/ssh-tunnel/installssh.py\n\n - name: Start SSH\n shell: bash\n run: |\n if [ "$RUNNER_OS" = "Windows" ]; then\n powershell.exe -command "Start-Service sshd"\n elif [ "$RUNNER_OS" = "macOS" ]; then\n sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist\n else\n sudo systemctl start ssh\n fi\n\n - name: Show sshd configuration\n shell: bash\n run: |\n if [ "$RUNNER_OS" = "Linux" ]; then\n cat /etc/ssh/sshd_config\n elif [ "$RUNNER_OS" = "macOS" ]; then\n cat /private/etc/ssh/sshd_config\n else\n cat "C:\ProgramData\ssh\sshd_config"\n fi\n\n - name: Add ssh public key\n shell: bash\n run: |\n if [ "$RUNNER_OS" = "Linux" ]; then\n mkdir -p /home/runner/.ssh\n chmod 700 /home/runner/.ssh\n touch /home/runner/.ssh/authorized_keys\n echo "${{ inputs.public_key }}" | tee -a /home/runner/.ssh/authorized_keys\n elif [ "$RUNNER_OS" = "macOS" ]; then\n mkdir -p /Users/runner/.ssh\n chmod 700 /Users/runner/.ssh\n touch /Users/runner/.ssh/authorized_keys\n echo "${{ inputs.public_key }}" | tee -a /Users/runner/.ssh/authorized_keys\n else\n echo "${{ inputs.public_key }}" | tee -a "C:\ProgramData\ssh\administrators_authorized_keys"\n fi\n\n - name: Stop SSHD\n if: ${{ inputs.debug }}\n shell: bash\n run: |\n if [ "${{ inputs.debug }}" = "true" ]; then\n if [ "$RUNNER_OS" = "Windows" ]; then\n powershell.exe -command "Stop-Service sshd"\n elif [ "$RUNNER_OS" = "macOS" ]; then\n sudo launchctl unload /System/Library/LaunchDaemons/ssh.plist\n else\n sudo systemctl stop ssh\n fi\n fi\n\n - name: Create rtc tunnel\n shell: bash\n run: |\n if [ "${{ inputs.debug }}" = "true" ]; then\n if [ "$RUNNER_OS" = "Windows" ]; then\n ./OpenSSH-Win64/sshd.exe -d &\n elif [ "$RUNNER_OS" = "macOS" ]; then\n sudo /usr/sbin/sshd -d &\n else\n sudo mkdir -p /run/sshd\n sudo chmod 755 /run/sshd\n sudo /usr/sbin/sshd -d &\n fi\n fi\n if [ "$RUNNER_OS" = "Windows" ]; then\n python3 -m pip install aiortc\n else\n python3 -m pip install aiortc uvloop\n fi\n echo '${{ inputs.offer }}' | python .github/actions/ssh-tunnel/rtcforward.py --port 22 answer\n
dataset_sample\yaml\saltstack_salt\.github\actions\ssh-tunnel\action.yml
action.yml
YAML
3,256
0.85
0.11215
0
react-lib
527
2023-12-29T17:40:20.788676
BSD-3-Clause
false
43322809773278bebe60895c31c32204
# This actions was inspired by https://github.com/alehechka/upload-tartifact\n---\nname: Upload Tar Artifact\ndescription: Compress files with tar prior to artifacting to keep file privileges.\n\ninputs:\n name:\n description: Artifact name\n default: artifact\n required: false\n path:\n description: >\n A file, directory or wildcard pattern that describes what to upload.\n Note: The path provided will be maintained through tar, so after\n download-tartifact, and subfolder structure will remain intact.\n required: true\n if-no-files-found:\n description: >\n The desired behavior if no files are found using the provided path.\n Available Options:\n warn: Output a warning but do not fail the action\n error: Fail the action with an error message\n ignore: Do not output any warnings or errors, the action does not fail\n default: 'warn'\n required: false\n retention-days:\n description: >\n Duration after which artifact will expire in days. 0 means using default retention.\n Minimum 1 day.\n Maximum 90 days unless changed from the repository settings page.\n required: false\n archive-name:\n description: >\n By default `archive` is what's used to name the archive. This parameter\n allows a customizing that archive name. This will allow uploading multiple\n archives under the same 'name', like the underlying official action does\n without overriding the existing archives.\n required: false\n\n\nruns:\n using: composite\n steps:\n - shell: bash\n run: |\n shopt -s globstar || echo "'globstar' not available"\n tar -cavf ${{ inputs.archive-name || inputs.name || 'archive' }}.tar.gz ${{ inputs.path }}\n\n - uses: actions/upload-artifact@v4\n with:\n name: ${{ inputs.name }}\n path: ${{ inputs.archive-name || inputs.name || 'archive' }}.tar.gz\n if-no-files-found: ${{ inputs.if-no-files-found }}\n retention-days: ${{ inputs.retention-days }}\n\n - shell: bash\n run: |\n rm -f ${{ inputs.archive-name || inputs.name || 'archive' }}.tar.gz\n
dataset_sample\yaml\saltstack_salt\.github\actions\upload-artifact\action.yml
action.yml
YAML
2,100
0.95
0.068966
0.018868
node-utils
770
2024-01-30T17:26:29.524615
BSD-3-Clause
false
5175353e13f0bd69c7b761ad6f5b97b7
blank_issues_enabled: true\ncontact_links:\n - name: Salt Community Discord\n url: https://discord.com/invite/J7b7EscrAs\n about: Please ask and answer questions here.\n - name: Salt-Users Forum\n url: https://groups.google.com/forum/#!forum/salt-users\n about: Please ask and answer questions here.\n
dataset_sample\yaml\saltstack_salt\.github\ISSUE_TEMPLATE\config.yml
config.yml
YAML
307
0.8
0
0
awesome-app
990
2024-04-05T03:13:06.521516
BSD-3-Clause
false
853d9e4e65a147c01f56849e4bbc9163
name: Backport PR\nrun-name: "Backport PR #${{ github.event.number }}"\n\non:\n pull_request_target:\n types:\n - "labeled"\n - "closed"\n\npermissions:\n contents: write\n pull-requests: write\n\njobs:\n backport:\n name: Backport PR\n runs-on:\n - ubuntu-latest\n if: |\n github.event.pull_request.merged == true\n && (\n contains(github.event.pull_request.labels.*.name, 'backport:master') ||\n contains(github.event.pull_request.labels.*.name, 'backport:3007.x') ||\n contains(github.event.pull_request.labels.*.name, 'backport:3006.x') ||\n contains(github.event.pull_request.labels.*.name, 'backport:3005.x')\n )\n && (\n (github.event.action == 'labeled' && (\n contains(github.event.pull_request.labels.*.name, 'backport:master') ||\n contains(github.event.pull_request.labels.*.name, 'backport:3007.x') ||\n contains(github.event.pull_request.labels.*.name, 'backport:3006.x') ||\n contains(github.event.pull_request.labels.*.name, 'backport:3005.x')\n ))\n || (github.event.action == 'closed')\n )\n steps:\n - name: Backport Action\n uses: sorenlouv/backport-github-action@v8.9.7\n with:\n github_token: ${{ secrets.GITHUB_TOKEN }}\n auto_backport_label_prefix: "backport:"\n add_original_reviewers: true\n\n - name: Info log\n if: ${{ success() }}\n run: jq -C '.' ~/.backport/backport.info.log\n\n - name: Debug log\n if: ${{ failure() }}\n run: jq -C '.' ~/.backport/backport.debug.log\n
dataset_sample\yaml\saltstack_salt\.github\workflows\backport.yml
backport.yml
YAML
1,579
0.8
0.06
0
react-lib
700
2024-09-21T15:34:24.106626
MIT
false
f0021677ad324ab7fa7a3377d225f248
---\nname: Install Test Dependencies\n\non:\n workflow_call:\n inputs:\n nox-session:\n required: true\n type: string\n description: The nox session to run\n salt-version:\n type: string\n required: true\n description: The Salt version to set prior to running tests.\n cache-prefix:\n required: true\n type: string\n description: Seed used to invalidate caches\n nox-version:\n required: true\n type: string\n description: The nox version to install\n nox-archive-hash:\n required: true\n type: string\n description: Nox Tarball Cache Hash\n python-version:\n required: false\n type: string\n description: The python version to run tests with\n default: "3.10"\n package-name:\n required: false\n type: string\n description: The onedir package name to use\n default: salt\n matrix:\n required: true\n type: string\n description: Json job matrix config\n linux_arm_runner:\n required: true\n type: string\n description: Json job matrix config\n\n\nenv:\n COLUMNS: 190\n AWS_MAX_ATTEMPTS: "10"\n AWS_RETRY_MODE: "adaptive"\n PIP_INDEX_URL: ${{ vars.PIP_INDEX_URL }}\n PIP_TRUSTED_HOST: ${{ vars.PIP_TRUSTED_HOST }}\n PIP_EXTRA_INDEX_URL: ${{ vars.PIP_EXTRA_INDEX_URL }}\n PIP_DISABLE_PIP_VERSION_CHECK: "1"\n RAISE_DEPRECATIONS_RUNTIME_ERRORS: "1"\n\njobs:\n\n linux-dependencies:\n name: Linux\n if: ${{ toJSON(fromJSON(inputs.matrix)['linux']) != '[]' }}\n runs-on:\n - ${{ matrix.arch == 'x86_64' && 'ubuntu-24.04' || inputs.linux_arm_runner }}\n env:\n USE_S3_CACHE: 'false'\n timeout-minutes: 90\n strategy:\n fail-fast: false\n matrix:\n include: ${{ fromJSON(inputs.matrix)['linux'] }}\n steps:\n - uses: actions/setup-python@v5\n with:\n python-version: '3.10'\n\n - name: "Throttle Builds"\n shell: bash\n run: |\n t=$(shuf -i 1-30 -n 1); echo "Sleeping $t seconds"; sleep "$t"\n\n - name: Checkout Source Code\n uses: actions/checkout@v4\n\n - uses: actions/setup-python@v5\n with:\n python-version: '3.10'\n\n - name: Cache nox.linux.${{ matrix.arch }}.tar.* for session ${{ inputs.nox-session }}\n id: nox-dependencies-cache\n uses: ./.github/actions/cache\n with:\n path: nox.linux.${{ matrix.arch }}.tar.*\n key: ${{ inputs.cache-prefix }}|testrun-deps|${{ matrix.arch }}|linux|${{ inputs.nox-session }}|${{ inputs.python-version }}|${{ inputs.nox-archive-hash }}\n\n - name: Download Onedir Tarball as an Artifact\n if: steps.nox-dependencies-cache.outputs.cache-hit != 'true'\n uses: actions/download-artifact@v4\n with:\n name: ${{ inputs.package-name }}-${{ inputs.salt-version }}-onedir-linux-${{ matrix.arch }}.tar.xz\n path: artifacts/\n\n - name: Decompress Onedir Tarball\n if: steps.nox-dependencies-cache.outputs.cache-hit != 'true'\n shell: bash\n run: |\n python3 -c "import os; os.makedirs('artifacts', exist_ok=True)"\n cd artifacts\n tar xvf ${{ inputs.package-name }}-${{ inputs.salt-version }}-onedir-linux-${{ matrix.arch }}.tar.xz\n\n - name: PyPi Proxy\n if: steps.nox-dependencies-cache.outputs.cache-hit != 'true'\n run: |\n sed -i '7s;^;--index-url=${{ vars.PIP_INDEX_URL }} --trusted-host ${{ vars.PIP_TRUSTED_HOST }} --extra-index-url=${{ vars.PIP_EXTRA_INDEX_URL }}\n;' requirements/static/ci/*/*.txt\n\n - name: Setup Python Tools Scripts\n if: steps.nox-dependencies-cache.outputs.cache-hit != 'true'\n uses: ./.github/actions/setup-python-tools-scripts\n with:\n cache-prefix: ${{ inputs.cache-prefix }}-build-deps-ci\n\n - name: Install System Dependencies\n if: steps.nox-dependencies-cache.outputs.cache-hit != 'true'\n run: |\n echo true\n\n - name: Install Nox\n if: steps.nox-dependencies-cache.outputs.cache-hit != 'true'\n run: |\n python3 -m pip install 'nox==${{ inputs.nox-version }}'\n\n - name: Install Dependencies\n if: steps.nox-dependencies-cache.outputs.cache-hit != 'true'\n env:\n PRINT_TEST_SELECTION: "0"\n PRINT_SYSTEM_INFO: "0"\n RELENV_BUILDENV: "1"\n run: |\n nox --install-only -e ${{ inputs.nox-session }}\n\n - name: Cleanup .nox Directory\n if: steps.nox-dependencies-cache.outputs.cache-hit != 'true'\n run: |\n nox --force-color -e "pre-archive-cleanup(pkg=False)"\n\n - name: Compress .nox Directory\n if: steps.nox-dependencies-cache.outputs.cache-hit != 'true'\n run: |\n nox --force-color -e compress-dependencies -- linux ${{ matrix.arch }}\n\n - name: Upload Nox Requirements Tarball\n uses: actions/upload-artifact@v4\n with:\n name: nox-linux-${{ matrix.arch }}-${{ inputs.nox-session }}\n path: nox.linux.${{ matrix.arch }}.tar.*\n\n macos-dependencies:\n name: MacOS\n runs-on: ${{ matrix.arch == 'x86_64' && 'macos-13' || 'macos-14' }}\n if: ${{ toJSON(fromJSON(inputs.matrix)['macos']) != '[]' }}\n timeout-minutes: 90\n strategy:\n fail-fast: false\n matrix:\n include: ${{ fromJSON(inputs.matrix)['macos'] }}\n env:\n PIP_INDEX_URL: https://pypi.org/simple\n steps:\n\n - name: "Throttle Builds"\n shell: bash\n run: |\n t=$(python3 -c 'import random, sys; sys.stdout.write(str(random.randint(1, 15)))'); echo "Sleeping $t seconds"; sleep "$t"\n\n - name: Checkout Source Code\n uses: actions/checkout@v4\n\n - name: Cache nox.macos.${{ matrix.arch }}.tar.* for session ${{ inputs.nox-session }}\n id: nox-dependencies-cache\n uses: ./.github/actions/cache\n with:\n path: nox.macos.${{ matrix.arch }}.tar.*\n key: ${{ inputs.cache-prefix }}|testrun-deps|${{ matrix.arch }}|macos|${{ inputs.nox-session }}|${{ inputs.python-version }}|${{ inputs.nox-archive-hash }}\n\n - name: Download Onedir Tarball as an Artifact\n if: steps.nox-dependencies-cache.outputs.cache-hit != 'true'\n uses: actions/download-artifact@v4\n with:\n name: ${{ inputs.package-name }}-${{ inputs.salt-version }}-onedir-macos-${{ matrix.arch }}.tar.xz\n path: artifacts/\n\n - name: Decompress Onedir Tarball\n if: steps.nox-dependencies-cache.outputs.cache-hit != 'true'\n shell: bash\n run: |\n python3 -c "import os; os.makedirs('artifacts', exist_ok=True)"\n cd artifacts\n tar xvf ${{ inputs.package-name }}-${{ inputs.salt-version }}-onedir-macos-${{ matrix.arch }}.tar.xz\n\n - name: Set up Python ${{ inputs.python-version }}\n if: steps.nox-dependencies-cache.outputs.cache-hit != 'true'\n uses: actions/setup-python@v5\n with:\n python-version: "${{ inputs.python-version }}"\n\n - name: Install System Dependencies\n if: steps.nox-dependencies-cache.outputs.cache-hit != 'true'\n run: |\n brew install openssl@3\n\n - name: Install Nox\n if: steps.nox-dependencies-cache.outputs.cache-hit != 'true'\n run: |\n python3 -m pip install 'nox==${{ inputs.nox-version }}'\n\n - name: Install Dependencies\n if: steps.nox-dependencies-cache.outputs.cache-hit != 'true'\n env:\n PRINT_TEST_SELECTION: "0"\n PRINT_SYSTEM_INFO: "0"\n run: |\n export PYCURL_SSL_LIBRARY=openssl\n export LDFLAGS="-L/usr/local/opt/openssl@3/lib"\n export CPPFLAGS="-I/usr/local/opt/openssl@3/include"\n export PKG_CONFIG_PATH="/usr/local/opt/openssl@3/lib/pkgconfig"\n nox --install-only -e ${{ inputs.nox-session }}\n\n - name: Cleanup .nox Directory\n if: steps.nox-dependencies-cache.outputs.cache-hit != 'true'\n run: |\n nox --force-color -e "pre-archive-cleanup(pkg=False)"\n\n - name: Compress .nox Directory\n if: steps.nox-dependencies-cache.outputs.cache-hit != 'true'\n run: |\n nox --force-color -e compress-dependencies -- macos ${{ matrix.arch }}\n\n - name: Upload Nox Requirements Tarball\n uses: actions/upload-artifact@v4\n with:\n name: nox-macos-${{ matrix.arch }}-${{ inputs.nox-session }}\n path: nox.macos.${{ matrix.arch }}.tar.*\n\n\n windows-dependencies:\n name: Windows\n runs-on: windows-latest\n if: ${{ toJSON(fromJSON(inputs.matrix)['windows']) != '[]' }}\n env:\n USE_S3_CACHE: 'false'\n GITHUB_WORKSPACE: 'C:\Windows\Temp\testing'\n timeout-minutes: 90\n strategy:\n fail-fast: false\n matrix:\n include: ${{ fromJSON(inputs.matrix)['windows'] }}\n steps:\n\n - name: "Throttle Builds"\n shell: bash\n run: |\n t=$(shuf -i 1-30 -n 1); echo "Sleeping $t seconds"; sleep "$t"\n\n - name: "Show environment"\n run: |\n env\n\n - name: Checkout Source Code\n uses: actions/checkout@v4\n\n - name: Cache nox.windows.${{ matrix.arch }}.tar.* for session ${{ inputs.nox-session }}\n id: nox-dependencies-cache\n uses: ./.github/actions/cache\n with:\n path: nox.windows.${{ matrix.arch }}.tar.*\n key: ${{ inputs.cache-prefix }}|testrun-deps|${{ matrix.arch }}|windows|${{ inputs.nox-session }}|${{ inputs.python-version }}|${{ inputs.nox-archive-hash }}\n\n - name: Download Onedir Tarball as an Artifact\n if: steps.nox-dependencies-cache.outputs.cache-hit != 'true'\n uses: actions/download-artifact@v4\n with:\n name: ${{ inputs.package-name }}-${{ inputs.salt-version }}-onedir-windows-${{ matrix.arch }}.tar.xz\n path: artifacts/\n\n - name: Decompress Onedir Tarball\n if: steps.nox-dependencies-cache.outputs.cache-hit != 'true'\n shell: bash\n run: |\n python3 -c "import os; os.makedirs('artifacts', exist_ok=True)"\n cd artifacts\n tar xvf ${{ inputs.package-name }}-${{ inputs.salt-version }}-onedir-windows-${{ matrix.arch }}.tar.xz\n\n - name: Set up Python ${{ inputs.python-version }}\n if: steps.nox-dependencies-cache.outputs.cache-hit != 'true'\n uses: actions/setup-python@v5\n with:\n python-version: "${{ inputs.python-version }}"\n\n - name: Setup Python Tools Scripts\n if: steps.nox-dependencies-cache.outputs.cache-hit != 'true'\n uses: ./.github/actions/setup-python-tools-scripts\n with:\n cache-prefix: ${{ inputs.cache-prefix }}-build-deps-ci\n\n - name: Install System Dependencies\n if: steps.nox-dependencies-cache.outputs.cache-hit != 'true'\n run: |\n echo true\n\n - name: Install Nox\n if: steps.nox-dependencies-cache.outputs.cache-hit != 'true'\n run: |\n python3 -m pip install 'nox==${{ inputs.nox-version }}'\n\n - name: Install Dependencies\n if: steps.nox-dependencies-cache.outputs.cache-hit != 'true'\n env:\n PRINT_TEST_SELECTION: "0"\n PRINT_SYSTEM_INFO: "0"\n run: |\n nox --install-only -e ${{ inputs.nox-session }}\n\n - name: Cleanup .nox Directory\n if: steps.nox-dependencies-cache.outputs.cache-hit != 'true'\n run: |\n nox --force-color -e "pre-archive-cleanup(pkg=False)"\n\n - name: Compress .nox Directory\n if: steps.nox-dependencies-cache.outputs.cache-hit != 'true'\n run: |\n nox --force-color -e compress-dependencies -- windows ${{ matrix.arch }}\n\n - name: Upload Nox Requirements Tarball\n uses: actions/upload-artifact@v4\n with:\n name: nox-windows-${{ matrix.arch }}-${{ inputs.nox-session }}\n path: nox.windows.${{ matrix.arch }}.tar.*\n
dataset_sample\yaml\saltstack_salt\.github\workflows\build-deps-ci-action.yml
build-deps-ci-action.yml
YAML
11,872
0.95
0.095238
0
python-kit
125
2025-04-19T00:35:21.875364
GPL-3.0
false
e2fd5830ef91f375cc895bced0082701
---\nname: Build Documentation\n\non:\n workflow_call:\n inputs:\n salt-version:\n type: string\n required: true\n description: The Salt version to set prior to building packages.\n cache-seed:\n required: true\n type: string\n description: Seed used to invalidate caches\n\nenv:\n COLUMNS: 190\n AWS_MAX_ATTEMPTS: "10"\n AWS_RETRY_MODE: "adaptive"\n PIP_INDEX_URL: https://pypi.org/simple\n PIP_DISABLE_PIP_VERSION_CHECK: "1"\n\njobs:\n build:\n name: Build\n runs-on:\n - ubuntu-22.04\n strategy:\n fail-fast: false\n matrix:\n docs-output:\n # XXX re-enable lintcheck and spellcheck then fix the errors\n # - linkcheck\n # - spellcheck\n - html\n\n steps:\n - uses: actions/checkout@v4\n - uses: actions/setup-python@v5\n with:\n python-version: '3.10'\n\n - name: Download Release Patch\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n uses: actions/download-artifact@v4\n with:\n name: salt-${{ inputs.salt-version }}.patch\n\n - name: Get Python Version\n id: get-python-version\n uses: ./.github/actions/get-python-version\n with:\n python-binary: python3\n\n - name: Setup Python Tools Scripts\n id: python-tools-scripts\n uses: ./.github/actions/setup-python-tools-scripts\n with:\n cache-prefix: ${{ inputs.cache-seed }}\n\n - name: Configure Git\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n run: |\n tools pkg configure-git\n\n - name: Apply release patch\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n run: |\n tools pkg apply-release-patch salt-${{ inputs.salt-version }}.patch --delete\n\n - name: Cache Python Tools Docs Virtualenv\n id: tools-venvs-dependencies-cache\n uses: ./.github/actions/cache\n with:\n path: .tools-venvs/docs\n key: ${{ inputs.cache-seed }}|${{ github.workflow }}|${{ github.job }}|tools-venvs|${{ steps.python-tools-scripts.outputs.version }}|docs|${{ steps.get-python-version.outputs.version }}|${{ hashFiles('requirements/**/docs.txt') }}\n\n - name: Prepare Docs Build\n run: |\n git clone https://gitlab.com/saltstack/open/docs/builddocs-fonts.git .builddocs-fonts\n sudo mkdir -p /usr/share/fonts/truetype /usr/share/fonts/opentype\n sudo cp -rfv .builddocs-fonts/truetype/*.ttf /usr/share/fonts/truetype/\n sudo cp -rfv .builddocs-fonts/opentype/*.otf /usr/share/fonts/opentype/\n sudo fc-cache -f -v\n\n - name: Build Documentation (${{ matrix.docs-output }})\n id: build-docs\n shell: bash\n continue-on-error: ${{ matrix.docs-output == 'linkcheck' || matrix.docs-output == 'spellcheck' }}\n env:\n LATEST_RELEASE: "${{ inputs.salt-version }}"\n SALT_ON_SALTSTACK: "1"\n ARCHIVE_FILENAME: "${{ format('salt-{0}-docs-{1}.tar.xz', inputs.salt-version, matrix.docs-output) }}"\n run: |\n tools docs ${{ matrix.docs-output }}\n\n - name: Upload Built Documentation Artifact(${{ matrix.docs-output }})\n if: ${{ steps.build-docs.outputs.has-artifacts == 'true' }}\n uses: actions/upload-artifact@v4\n with:\n name: ${{ steps.build-docs.outputs.artifact-name }}\n path: ${{ steps.build-docs.outputs.artifact-path }}\n retention-days: 7\n if-no-files-found: error\n
dataset_sample\yaml\saltstack_salt\.github\workflows\build-docs.yml
build-docs.yml
YAML
3,516
0.95
0.048077
0.032967
vue-tools
275
2024-05-28T17:08:09.969668
GPL-3.0
false
aa852487aa3dfc8c122fef6b1fa286b0
---\nname: Build Packages\n\non:\n workflow_call:\n inputs:\n salt-version:\n type: string\n required: true\n description: The Salt version to set prior to building packages.\n relenv-version:\n type: string\n required: true\n description: The relenv version to set prior to building packages.\n python-version:\n required: true\n type: string\n description: The version of python to use with relenv\n sign-macos-packages:\n type: boolean\n default: false\n description: Sign MacOS Packages\n sign-windows-packages:\n type: boolean\n default: false\n description: Sign Windows Packages\n environment:\n type: string\n description: The GitHub Environment where this workflow should run\n default: ci\n source:\n required: true\n type: string\n description: The backend to build the packages with\n cache-prefix:\n required: true\n type: string\n description: Seed used to invalidate caches\n matrix:\n required: true\n type: string\n description: Json job matrix config\n linux_arm_runner:\n required: true\n type: string\n description: Json job matrix config\n\nenv:\n COLUMNS: 190\n PIP_INDEX_URL: ${{ vars.PIP_INDEX_URL }}\n PIP_TRUSTED_HOST: ${{ vars.PIP_TRUSTED_HOST }}\n PIP_EXTRA_INDEX_URL: ${{ vars.PIP_EXTRA_INDEX_URL }}\n PIP_DISABLE_PIP_VERSION_CHECK: "1"\n\njobs:\n\n build-deb-packages:\n name: DEB\n if: ${{ toJSON(fromJSON(inputs.matrix)['linux']) != '[]' }}\n runs-on:\n - ${{ matrix.arch == 'x86_64' && 'ubuntu-24.04' || inputs.linux_arm_runner }}\n strategy:\n fail-fast: false\n matrix:\n include: ${{ fromJSON(inputs.matrix)['linux'] }}\n\n container:\n image: ghcr.io/saltstack/salt-ci-containers/packaging:debian-12\n\n steps:\n # Checkout here so we can easily use custom actions\n - uses: actions/checkout@v4\n\n # We need a more recent rustc\n - name: Install a more recent `rustc`\n if: ${{ inputs.source == 'src' }}\n uses: actions-rust-lang/setup-rust-toolchain@v1\n\n - name: Set rust environment variables\n if: ${{ inputs.source == 'src' }}\n run: |\n CARGO_HOME=${CARGO_HOME:-${HOME}/.cargo}\n export CARGO_HOME\n echo "CARGO_HOME=${CARGO_HOME}" | tee -a "${GITHUB_ENV}"\n echo "${CARGO_HOME}/bin" | tee -a "${GITHUB_PATH}"\n\n # Checkout here for the build process\n - name: Checkout in build directory\n uses: actions/checkout@v4\n with:\n path:\n pkgs/checkout/\n\n - name: Download Onedir Tarball as an Artifact\n uses: actions/download-artifact@v4\n with:\n name: salt-${{ inputs.salt-version }}-onedir-linux-${{ matrix.arch }}.tar.xz\n path: pkgs/checkout/artifacts/\n\n - name: Download Release Patch\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n uses: actions/download-artifact@v4\n with:\n name: salt-${{ inputs.salt-version }}.patch\n path: pkgs/checkout/\n\n - name: Setup Python Tools Scripts\n uses: ./.github/actions/setup-python-tools-scripts\n with:\n cwd: pkgs/checkout/\n cache-prefix: ${{ inputs.cache-prefix }}\n\n - name: Setup Salt Version\n id: setup-salt-version\n uses: ./.github/actions/setup-salt-version\n with:\n salt-version: "${{ inputs.salt-version }}"\n cwd: pkgs/checkout/\n\n - name: Configure Git\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n working-directory: pkgs/checkout/\n run: |\n tools pkg configure-git\n\n - name: Apply release patch\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n working-directory: pkgs/checkout/\n run: |\n tools pkg apply-release-patch salt-${{ inputs.salt-version }}.patch --delete\n\n - name: Build Deb\n working-directory: pkgs/checkout/\n run: |\n tools pkg build deb --relenv-version=${{ inputs.relenv-version }} --python-version=${{ inputs.python-version }} ${{\n inputs.source == 'onedir' &&\n format('--onedir=salt-{0}-onedir-linux-{1}.tar.xz', inputs.salt-version, matrix.arch)\n ||\n format('--arch={0}', matrix.arch)\n }}\n\n - name: Cleanup\n run: |\n rm -rf pkgs/checkout/\n\n - name: Set Artifact Name\n id: set-artifact-name\n run: |\n if [ "${{ inputs.source }}" != "src" ]; then\n echo "artifact-name=salt-${{ inputs.salt-version }}-${{ matrix.arch }}-deb" >> "$GITHUB_OUTPUT"\n else\n echo "artifact-name=salt-${{ inputs.salt-version }}-${{ matrix.arch }}-deb-from-src" >> "$GITHUB_OUTPUT"\n fi\n\n - name: Upload DEBs\n uses: actions/upload-artifact@v4\n with:\n name: ${{ steps.set-artifact-name.outputs.artifact-name }}\n path: ${{ github.workspace }}/pkgs/*\n retention-days: 7\n if-no-files-found: error\n\n build-rpm-packages:\n name: RPM\n if: ${{ toJSON(fromJSON(inputs.matrix)['linux']) != '[]' }}\n runs-on:\n - ${{ matrix.arch == 'x86_64' && 'ubuntu-24.04' || inputs.linux_arm_runner }}\n strategy:\n fail-fast: false\n matrix:\n include: ${{ fromJSON(inputs.matrix)['linux'] }}\n\n container:\n image: ghcr.io/saltstack/salt-ci-containers/packaging:rockylinux-9\n\n steps:\n - uses: actions/checkout@v4\n\n - name: Download Onedir Tarball as an Artifact\n uses: actions/download-artifact@v4\n with:\n name: salt-${{ inputs.salt-version }}-onedir-linux-${{ matrix.arch }}.tar.xz\n path: artifacts/\n\n - name: Download Release Patch\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n uses: actions/download-artifact@v4\n with:\n name: salt-${{ inputs.salt-version }}.patch\n\n - name: Setup Python Tools Scripts\n uses: ./.github/actions/setup-python-tools-scripts\n with:\n cache-prefix: ${{ inputs.cache-prefix }}\n\n - name: Setup Salt Version\n id: setup-salt-version\n uses: ./.github/actions/setup-salt-version\n with:\n salt-version: "${{ inputs.salt-version }}"\n\n - name: Configure Git\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n run: |\n tools pkg configure-git\n\n - name: Apply release patch\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n run: |\n tools pkg apply-release-patch salt-${{ inputs.salt-version }}.patch --delete\n\n - name: Build RPM\n run: |\n tools pkg build rpm --relenv-version=${{ inputs.relenv-version }} --python-version=${{ inputs.python-version }} ${{\n inputs.source == 'onedir' &&\n format('--onedir=salt-{0}-onedir-linux-{1}.tar.xz', inputs.salt-version, matrix.arch)\n ||\n format('--arch={0}', matrix.arch)\n }}\n\n - name: Set Artifact Name\n id: set-artifact-name\n run: |\n if [ "${{ inputs.source }}" != "src" ]; then\n echo "artifact-name=salt-${{ inputs.salt-version }}-${{ matrix.arch }}-rpm" >> "$GITHUB_OUTPUT"\n else\n echo "artifact-name=salt-${{ inputs.salt-version }}-${{ matrix.arch }}-rpm-from-src" >> "$GITHUB_OUTPUT"\n fi\n\n - name: Upload RPMs\n uses: actions/upload-artifact@v4\n with:\n name: ${{ steps.set-artifact-name.outputs.artifact-name }}\n path: ~/rpmbuild/RPMS/${{ matrix.arch == 'arm64' && 'aarch64' || matrix.arch }}/*.rpm\n retention-days: 7\n if-no-files-found: error\n\n build-macos-pkgs:\n name: macOS\n if: ${{ toJSON(fromJSON(inputs.matrix)['macos']) != '[]' }}\n environment: ${{ inputs.environment }}\n strategy:\n fail-fast: false\n matrix:\n include: ${{ fromJSON(inputs.matrix)['macos'] }}\n env:\n PIP_INDEX_URL: https://pypi.org/simple\n runs-on:\n - ${{ matrix.arch == 'arm64' && 'macos-14' || 'macos-13' }}\n\n steps:\n - name: Check Package Signing Enabled\n shell: bash\n id: check-pkg-sign\n run: |\n if [ "${{ inputs.sign-macos-packages }}" == "true" ]; then\n if [ "${{ (secrets.MAC_SIGN_APPLE_ACCT != '' && contains(fromJSON('["nightly", "staging"]'), inputs.environment)) && 'true' || 'false' }}" != "true" ]; then\n MSG="Secrets for signing packages are not available. The packages created will NOT be signed."\n echo "${MSG}"\n echo "${MSG}" >> "${GITHUB_STEP_SUMMARY}"\n echo "sign-pkgs=false" >> "$GITHUB_OUTPUT"\n else\n MSG="The packages created WILL be signed."\n echo "${MSG}"\n echo "${MSG}" >> "${GITHUB_STEP_SUMMARY}"\n echo "sign-pkgs=true" >> "$GITHUB_OUTPUT"\n fi\n else\n MSG="The sign-macos-packages input is false. The packages created will NOT be signed."\n echo "${MSG}"\n echo "${MSG}" >> "${GITHUB_STEP_SUMMARY}"\n echo "sign-pkgs=false" >> "$GITHUB_OUTPUT"\n fi\n\n - uses: actions/checkout@v4\n - uses: actions/setup-python@v5\n with:\n python-version: 3.11\n\n - name: Setup Python Tools Scripts\n uses: ./.github/actions/setup-python-tools-scripts\n with:\n cache-prefix: ${{ inputs.cache-prefix }}\n\n - name: Setup Salt Version\n id: setup-salt-version\n uses: ./.github/actions/setup-salt-version\n with:\n salt-version: "${{ inputs.salt-version }}"\n\n - name: Download Onedir Tarball as an Artifact\n uses: actions/download-artifact@v4\n with:\n name: salt-${{ inputs.salt-version }}-onedir-macos-${{ matrix.arch }}.tar.xz\n path: artifacts/\n\n - name: Prepare Package Signing\n if: ${{ steps.check-pkg-sign.outputs.sign-pkgs == 'true' }}\n run: |\n echo ${{ secrets.MAC_SIGN_DEV_APP_CERT_B64 }} | base64 --decode > app-cert.p12\n echo ${{ secrets.MAC_SIGN_DEV_INSTALL_CERT_B64 }} | base64 --decode > install-cert.p12\n # Create SaltSigning keychain. This will contain the certificates for signing\n security create-keychain -p "${{ secrets.MAC_SIGN_DEV_PASSWORD }}" "${{ secrets.MAC_SIGN_DEV_KEYCHAIN }}"\n # Append SaltSigning keychain to the search list\n security list-keychains -d user -s "${{ secrets.MAC_SIGN_DEV_KEYCHAIN }}" "$(security list-keychains -d user | sed s/\"//g)"\n # Unlock the keychain so we can import certs\n security unlock-keychain -p "${{ secrets.MAC_SIGN_DEV_PASSWORD }}" "${{ secrets.MAC_SIGN_DEV_KEYCHAIN }}"\n # Developer Application Certificate\n security import "app-cert.p12" -t agg -k "${{ secrets.MAC_SIGN_DEV_KEYCHAIN }}" -P "${{ secrets.MAC_SIGN_DEV_PASSWORD }}" -A\n rm app-cert.p12\n # Developer Installer Certificate\n security import "install-cert.p12" -t agg -k "${{ secrets.MAC_SIGN_DEV_KEYCHAIN }}" -P "${{ secrets.MAC_SIGN_DEV_PASSWORD }}" -A\n rm install-cert.p12\n security set-key-partition-list -S apple-tool:,apple: -k "${{ secrets.MAC_SIGN_DEV_PASSWORD }}" "${{ secrets.MAC_SIGN_DEV_KEYCHAIN }}" &> /dev/null\n\n - name: Build MacOS Package\n env:\n DEV_APP_CERT: "${{ secrets.MAC_SIGN_DEV_APP_CERT }}"\n DEV_INSTALL_CERT: "${{ secrets.MAC_SIGN_DEV_INSTALL_CERT }}"\n APPLE_ACCT: "${{ secrets.MAC_SIGN_APPLE_ACCT }}"\n APPLE_TEAM_ID: "${{ secrets.MAC_SIGN_APPLE_TEAM_ID }}"\n APP_SPEC_PWD: "${{ secrets.MAC_SIGN_APP_SPEC_PWD }}"\n run: |\n tools pkg build macos --relenv-version=${{ inputs.relenv-version }} --python-version=${{ inputs.python-version }} ${{\n inputs.source == 'onedir' &&\n format(\n '--onedir salt-{0}-onedir-macos-{1}.tar.xz --salt-version {0} {2}',\n inputs.salt-version,\n matrix.arch,\n steps.check-pkg-sign.outputs.sign-pkgs == 'true' && '--sign' || ''\n )\n ||\n format('--salt-version {0}', inputs.salt-version)\n }}\n\n - name: Set Artifact Name\n id: set-artifact-name\n run: |\n if [ "${{ inputs.source }}" != "src" ]; then\n echo "artifact-name=salt-${{ inputs.salt-version }}-${{ matrix.arch }}-macos" >> "$GITHUB_OUTPUT"\n else\n echo "artifact-name=salt-${{ inputs.salt-version }}-${{ matrix.arch }}-macos-from-src" >> "$GITHUB_OUTPUT"\n fi\n\n - name: Upload ${{ matrix.arch }} Package\n uses: actions/upload-artifact@v4\n with:\n name: ${{ steps.set-artifact-name.outputs.artifact-name }}\n path: pkg/macos/salt-${{ inputs.salt-version }}-py3-*.pkg\n retention-days: 7\n if-no-files-found: error\n\n build-windows-pkgs:\n name: Windows\n if: ${{ toJSON(fromJSON(inputs.matrix)['windows']) != '[]' }}\n environment: ${{ inputs.environment }}\n strategy:\n fail-fast: false\n max-parallel: 2\n matrix:\n include: ${{ fromJSON(inputs.matrix)['windows'] }}\n runs-on:\n - windows-latest\n env:\n SM_HOST: "${{ secrets.WIN_SIGN_HOST_PROD }}"\n SM_API_KEY: "${{ secrets.WIN_SIGN_API_KEY }}"\n SM_CLIENT_CERT_FILE: "D:\\Certificate_pkcs12.p12"\n SM_CLIENT_CERT_PASSWORD: "${{ secrets.WIN_SIGN_CERT_PASSWORD }}"\n SM_CLIENT_CERT_FILE_B64: "${{ secrets.WIN_SIGN_CERT_FILE_B64 }}"\n WIN_SIGN_CERT_SHA1_HASH: "${{ secrets.WIN_SIGN_CERT_SHA1_HASH }}"\n PIP_INDEX_URL: https://pypi.org/simple\n\n steps:\n - name: Check Package Signing Enabled\n shell: bash\n id: check-pkg-sign\n run: |\n if [ "${{ inputs.sign-windows-packages }}" == "true" ]; then\n if [ "${{ (secrets.WIN_SIGN_API_KEY != '' && env.SM_HOST != '' && inputs.environment == 'staging') && 'true' || 'false' }}" != "true" ]; then\n MSG="Secrets for signing packages are not available. The packages created will NOT be signed."\n echo "${MSG}"\n echo "${MSG}" >> "${GITHUB_STEP_SUMMARY}"\n echo "sign-pkgs=false" >> "$GITHUB_OUTPUT"\n else\n MSG="The packages created WILL be signed."\n echo "${MSG}"\n echo "${MSG}" >> "${GITHUB_STEP_SUMMARY}"\n echo "sign-pkgs=true" >> "$GITHUB_OUTPUT"\n fi\n else\n MSG="The sign-windows-packages input is false. The packages created will NOT be signed."\n echo "${MSG}"\n echo "${MSG}" >> "${GITHUB_STEP_SUMMARY}"\n echo "sign-pkgs=false" >> "$GITHUB_OUTPUT"\n fi\n\n - uses: actions/checkout@v4\n - uses: actions/setup-python@v5\n with:\n python-version: 3.11\n\n - name: Setup Python Tools Scripts\n uses: ./.github/actions/setup-python-tools-scripts\n with:\n cache-prefix: ${{ inputs.cache-prefix }}\n\n - name: Setup Salt Version\n id: setup-salt-version\n uses: ./.github/actions/setup-salt-version\n with:\n salt-version: "${{ inputs.salt-version }}"\n\n - name: Download Onedir Tarball as an Artifact\n uses: actions/download-artifact@v4\n with:\n name: salt-${{ inputs.salt-version }}-onedir-windows-${{ matrix.arch }}.zip\n path: artifacts/\n\n - name: Code signing with Software Trust Manager\n if: ${{ steps.check-pkg-sign.outputs.sign-pkgs == 'true' }}\n uses: digicert/ssm-code-signing@v0.0.2\n\n - name: Setup Certificate\n if: ${{ steps.check-pkg-sign.outputs.sign-pkgs == 'true' }}\n shell: bash\n run: |\n echo "${{ secrets.WIN_SIGN_CERT_FILE_B64 }}" | base64 --decode > /d/Certificate_pkcs12.p12\n\n - name: Build Windows Packages\n run: |\n tools pkg build windows --relenv-version=${{ inputs.relenv-version }} --python-version=${{ inputs.python-version }} ${{\n inputs.source == 'onedir' &&\n format(\n '--onedir salt-{0}-onedir-windows-{1}.zip --salt-version {0} --arch {1} {2}',\n inputs.salt-version,\n matrix.arch,\n steps.check-pkg-sign.outputs.sign-pkgs == 'true' && '--sign' || ''\n )\n ||\n format('--salt-version {0} --arch {1}', inputs.salt-version, matrix.arch)\n }}\n\n - name: Set Artifact Name\n id: set-artifact-name\n shell: bash\n run: |\n if [ "${{ inputs.source }}" != "src" ]; then\n echo "artifact-name-nsis=salt-${{ inputs.salt-version }}-${{ matrix.arch }}-NSIS" >> "$GITHUB_OUTPUT"\n echo "artifact-name-msi=salt-${{ inputs.salt-version }}-${{ matrix.arch }}-MSI" >> "$GITHUB_OUTPUT"\n else\n echo "artifact-name-nsis=salt-${{ inputs.salt-version }}-${{ matrix.arch }}-NSIS-from-src" >> "$GITHUB_OUTPUT"\n echo "artifact-name-msi=salt-${{ inputs.salt-version }}-${{ matrix.arch }}-MSI-from-src" >> "$GITHUB_OUTPUT"\n fi\n\n - name: Upload ${{ matrix.arch }} NSIS Packages\n uses: actions/upload-artifact@v4\n with:\n name: ${{ steps.set-artifact-name.outputs.artifact-name-nsis }}\n path: pkg/windows/build/Salt-*.exe\n retention-days: 7\n if-no-files-found: error\n\n - name: Upload ${{ matrix.arch }} MSI Package\n uses: actions/upload-artifact@v4\n with:\n name: ${{ steps.set-artifact-name.outputs.artifact-name-msi }}\n path: pkg/windows/build/Salt-*.msi\n retention-days: 7\n if-no-files-found: error\n
dataset_sample\yaml\saltstack_salt\.github\workflows\build-packages.yml
build-packages.yml
YAML
17,821
0.95
0.06823
0.019231
react-lib
115
2024-05-21T15:02:27.914128
Apache-2.0
false
fdb75da7499f0de24514714cecbd3e8d
---\nname: Build Salt Onedir\n\non:\n workflow_call:\n inputs:\n salt-version:\n type: string\n required: true\n description: The Salt version to set prior to building packages.\n cache-seed:\n required: true\n type: string\n description: Seed used to invalidate caches\n relenv-version:\n required: true\n type: string\n description: The version of relenv to use\n python-version:\n required: true\n type: string\n description: The version of python to use with relenv\n matrix:\n type: string\n required: true\n description: Json config for build matrix\n linux_arm_runner:\n required: true\n type: string\n description: Json job matrix config\n\nenv:\n RELENV_DATA: "${{ github.workspace }}/.relenv"\n COLUMNS: 190\n AWS_MAX_ATTEMPTS: "10"\n AWS_RETRY_MODE: "adaptive"\n PIP_INDEX_URL: ${{ vars.PIP_INDEX_URL }}\n PIP_TRUSTED_HOST: ${{ vars.PIP_TRUSTED_HOST }}\n PIP_EXTRA_INDEX_URL: ${{ vars.PIP_EXTRA_INDEX_URL }}\n PIP_DISABLE_PIP_VERSION_CHECK: "1"\n\njobs:\n\n\n build-salt-linux:\n name: Linux\n if: ${{ toJSON(fromJSON(inputs.matrix)['linux']) != '[]' }}\n env:\n USE_S3_CACHE: 'false'\n runs-on:\n - ${{ matrix.arch == 'x86_64' && 'ubuntu-24.04' || inputs.linux_arm_runner }}\n strategy:\n fail-fast: false\n matrix:\n include: ${{ fromJSON(inputs.matrix)['linux'] }}\n steps:\n\n - name: "Throttle Builds"\n shell: bash\n run: |\n t=$(python3 -c 'import random, sys; sys.stdout.write(str(random.randint(1, 15)))'); echo "Sleeping $t seconds"; sleep "$t"\n\n - uses: actions/checkout@v4\n\n - uses: actions/setup-python@v5\n with:\n python-version: '3.10'\n\n - name: Setup Python Tools Scripts\n uses: ./.github/actions/setup-python-tools-scripts\n with:\n cache-prefix: ${{ inputs.cache-seed }}|build-salt-onedir|linux\n\n - name: Setup Salt Version\n id: setup-salt-version\n uses: ./.github/actions/setup-salt-version\n with:\n salt-version: "${{ inputs.salt-version }}"\n\n - name: Setup Relenv\n uses: ./.github/actions/setup-relenv\n id: setup-relenv\n with:\n platform: linux\n arch: ${{ matrix.arch == 'arm64' && 'aarch64' || matrix.arch }}\n version: ${{ inputs.relenv-version }}\n cache-seed: ${{ inputs.cache-seed }}\n python-version: ${{ inputs.python-version }}\n\n - name: Install Salt into Relenv Onedir\n uses: ./.github/actions/build-onedir-salt\n with:\n platform: linux\n arch: ${{ matrix.arch }}\n salt-version: "${{ inputs.salt-version }}"\n python-version: "${{ inputs.python-version }}"\n cache-prefix: ${{ inputs.cache-seed }}|relenv|${{ steps.setup-relenv.outputs.version }}\n\n build-salt-macos:\n name: macOS\n if: ${{ toJSON(fromJSON(inputs.matrix)['macos']) != '[]' }}\n strategy:\n fail-fast: false\n max-parallel: 2\n matrix:\n include: ${{ fromJSON(inputs.matrix)['macos'] }}\n runs-on:\n - ${{ matrix.arch == 'arm64' && 'macos-14' || 'macos-13' }}\n env:\n PIP_INDEX_URL: https://pypi.org/simple\n USE_S3_CACHE: 'false'\n steps:\n - name: "Check cores"\n shell: bash\n run: sysctl -n hw.ncpu\n\n - name: "Throttle Builds"\n shell: bash\n run: |\n t=$(python3 -c 'import random, sys; sys.stdout.write(str(random.randint(1, 15)))'); echo "Sleeping $t seconds"; sleep "$t"\n\n - uses: actions/checkout@v4\n - name: Set up Python 3.10\n uses: actions/setup-python@v5\n with:\n python-version: "3.10"\n\n - name: Setup Python Tools Scripts\n uses: ./.github/actions/setup-python-tools-scripts\n with:\n cache-prefix: ${{ inputs.cache-seed }}|build-salt-onedir|macos\n\n - name: Setup Salt Version\n id: setup-salt-version\n uses: ./.github/actions/setup-salt-version\n with:\n salt-version: "${{ inputs.salt-version }}"\n\n - name: Setup Relenv\n id: setup-relenv\n uses: ./.github/actions/setup-relenv\n with:\n platform: macos\n arch: ${{ matrix.arch }}\n version: ${{ inputs.relenv-version }}\n cache-seed: ${{ inputs.cache-seed }}\n python-version: ${{ inputs.python-version }}\n\n - name: Install Salt into Relenv Onedir\n uses: ./.github/actions/build-onedir-salt\n with:\n platform: macos\n arch: ${{ matrix.arch }}\n salt-version: "${{ inputs.salt-version }}"\n python-version: "${{ inputs.python-version }}"\n cache-prefix: ${{ inputs.cache-seed }}|relenv|${{ steps.setup-relenv.outputs.version }}\n\n build-salt-windows:\n name: Windows\n if: ${{ toJSON(fromJSON(inputs.matrix)['windows']) != '[]' }}\n strategy:\n fail-fast: false\n max-parallel: 2\n matrix:\n include: ${{ fromJSON(inputs.matrix)['windows'] }}\n runs-on: windows-latest\n env:\n PIP_INDEX_URL: https://pypi.org/simple\n USE_S3_CACHE: 'false'\n steps:\n\n - name: "Throttle Builds"\n shell: bash\n run: |\n t=$(python3 -c 'import random, sys; sys.stdout.write(str(random.randint(1, 15)))'); echo "Sleeping $t seconds"; sleep "$t"\n\n - uses: actions/checkout@v4\n\n - name: Set up Python 3.10\n uses: actions/setup-python@v5\n with:\n python-version: "3.10"\n\n - name: Setup Python Tools Scripts\n uses: ./.github/actions/setup-python-tools-scripts\n with:\n cache-prefix: ${{ inputs.cache-seed }}|build-salt-onedir|windows\n\n - name: Setup Salt Version\n id: setup-salt-version\n uses: ./.github/actions/setup-salt-version\n with:\n salt-version: "${{ inputs.salt-version }}"\n\n - name: Setup Relenv\n id: setup-relenv\n uses: ./.github/actions/setup-relenv\n with:\n platform: windows\n arch: ${{ matrix.arch }}\n version: ${{ inputs.relenv-version }}\n cache-seed: ${{ inputs.cache-seed }}\n python-version: ${{ inputs.python-version }}\n\n - name: Install Salt into Relenv Onedir\n uses: ./.github/actions/build-onedir-salt\n with:\n platform: windows\n arch: ${{ matrix.arch }}\n salt-version: "${{ inputs.salt-version }}"\n python-version: "${{ inputs.python-version }}"\n cache-prefix: ${{ inputs.cache-seed }}|relenv|${{ steps.setup-relenv.outputs.version }}\n
dataset_sample\yaml\saltstack_salt\.github\workflows\build-salt-onedir.yml
build-salt-onedir.yml
YAML
6,587
0.95
0.018868
0
awesome-app
763
2024-08-29T19:16:54.696081
GPL-3.0
false
49572c89e8011dcc0ca5233a0945dfeb
# Do not edit these workflows directly as the changes made will be overwritten.\n# Instead, edit the template '.github/workflows/templates/ci.yml.jinja'\n---\nname: CI\nrun-name: "CI (${{ github.event_name == 'pull_request' && format('pr: #{0}', github.event.number) || format('{0}: {1}', startsWith(github.event.ref, 'refs/tags') && 'tag' || 'branch', github.ref_name) }})"\n\non:\n push: {}\n pull_request:\n types:\n - labeled\n - unlabeled\n - opened\n - reopened\n - synchronize\n\nenv:\n COLUMNS: 190\n CACHE_SEED: SEED-1 # Bump the number to invalidate all caches\n RELENV_DATA: "${{ github.workspace }}/.relenv"\n PIP_DISABLE_PIP_VERSION_CHECK: "1"\n RAISE_DEPRECATIONS_RUNTIME_ERRORS: "1"\n\npermissions:\n contents: read # for dorny/paths-filter to fetch a list of changed files\n pull-requests: read # for dorny/paths-filter to read pull requests\n actions: read # for technote-space/workflow-conclusion-action to get the job statuses\n\nconcurrency:\n # Concurrency is defined in a way that concurrent builds against branches do\n # not cancel previous builds.\n # However, for every new build against the same pull request source branch,\n # all older builds against that same branch get canceled.\n group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.repository }}-${{ github.head_ref || github.run_id }}\n cancel-in-progress: true\n\njobs:\n\n prepare-workflow:\n name: Prepare Workflow Run\n runs-on: ubuntu-22.04\n environment: ci\n outputs:\n changed-files: ${{ steps.process-changed-files.outputs.changed-files }}\n salt-version: ${{ steps.setup-salt-version.outputs.salt-version }}\n cache-seed: ${{ steps.set-cache-seed.outputs.cache-seed }}\n latest-release: ${{ steps.get-salt-releases.outputs.latest-release }}\n releases: ${{ steps.get-salt-releases.outputs.releases }}\n release-changelog-target: ${{ steps.get-release-changelog-target.outputs.release-changelog-target }}\n testing-releases: ${{ steps.get-testing-releases.outputs.testing-releases }}\n nox-archive-hash: ${{ steps.nox-archive-hash.outputs.nox-archive-hash }}\n config: ${{ steps.workflow-config.outputs.config }}\n env:\n LINUX_ARM_RUNNER: ${{ vars.LINUX_ARM_RUNNER }}\n FULL_TESTRUN_SLUGS: ${{ vars.FULL_TESTRUN_SLUGS }}\n PR_TESTRUN_SLUGS: ${{ vars.PR_TESTRUN_SLUGS }}\n steps:\n - uses: actions/checkout@v4\n with:\n fetch-depth: 0 # Full clone to also get the tags to get the right salt version\n\n - name: Get Changed Files\n if: ${{ github.event_name == 'pull_request'}}\n id: changed-files\n uses: dorny/paths-filter@v3\n with:\n token: ${{ github.token }}\n list-files: json\n filters: |\n repo:\n - added|modified:\n - '**'\n doc-requirements:\n - added|modified: &doc_requirements\n - requirements/static/ci/py3.*/docs.txt\n lint-requirements:\n - added|modified: &lint_requirements\n - requirements/static/ci/py3.*/lint.txt\n pkg_requirements:\n - added|modified: &pkg_requirements\n - requirements/static/pkg/py3.*/darwin.txt\n - requirements/static/pkg/py3.*/linux.txt\n - requirements/static/pkg/py3.*/freebsd.txt\n - requirements/static/pkg/py3.*/windows.txt\n test_requirements:\n - added|modified: &test_requirements\n - requirements/static/ci/py3.*/darwin.txt\n - requirements/static/ci/py3.*/linux.txt\n - requirements/static/ci/py3.*/freebsd.txt\n - requirements/static/ci/py3.*/windows.txt\n - requirements/static/ci/py3.*/darwin-crypto.txt\n - requirements/static/ci/py3.*/linux-crypto.txt\n - requirements/static/ci/py3.*/freebsd-crypto.txt\n - requirements/static/ci/py3.*/windows-crypto.txt\n deleted:\n - deleted:\n - '**'\n docs:\n - added|modified:\n - doc/**\n - .github/workflows/build-docs.yml\n - *doc_requirements\n workflows:\n - added|modified:\n - cicd/shared-gh-workflows-context.yml\n - .github/actions/**/action.yml\n - .github/workflows/*.yml\n - .github/workflows/templates/*.yml.jinja2\n - tools/precommit/workflows.py\n salt:\n - added|modified: &salt_added_modified\n - setup.py\n - noxfile.py\n - salt/**/*.py\n - tasks/**/*.py\n - tools/**/*.py\n tests:\n - added|modified: &tests_added_modified\n - tests/**/*.py\n lint:\n - added|modified:\n - .pylintrc\n - *lint_requirements\n golden_images:\n - added|modified:\n - cicd/golden-images.json\n pkg_tests:\n - added|modified: &pkg_tests_added_modified\n - pkg/**\n - *pkg_requirements\n - *salt_added_modified\n nsis_tests:\n - added|modified: &nsis_tests\n - pkg/windows/nsis/**\n testrun:\n - added|modified:\n - *pkg_requirements\n - *test_requirements\n - *salt_added_modified\n - *tests_added_modified\n - *pkg_tests_added_modified\n\n - name: Set up Python 3.10\n uses: actions/setup-python@v5\n with:\n python-version: "3.10"\n\n - name: Setup Python Tools Scripts\n uses: ./.github/actions/setup-python-tools-scripts\n with:\n cache-prefix: ${{ env.CACHE_SEED }}\n\n - name: Pretty Print The GH Actions Event\n run:\n tools ci print-gh-event\n\n - name: Set Cache Seed Output\n id: set-cache-seed\n run: |\n tools ci define-cache-seed ${{ env.CACHE_SEED }}\n\n - name: Setup Salt Version\n id: setup-salt-version\n uses: ./.github/actions/setup-salt-version\n with:\n salt-version: ""\n validate-version: true\n\n - name: Get Hash For Nox Tarball Cache\n id: nox-archive-hash\n run: |\n echo "nox-archive-hash=${{ hashFiles('requirements/**/*.txt', 'cicd/golden-images.json', 'noxfile.py', 'pkg/common/env-cleanup-rules.yml', '.github/workflows/build-deps-ci-action.yml') }}" | tee -a "$GITHUB_OUTPUT"\n\n - name: Write Changed Files To A Local File\n run:\n echo '${{ toJSON(steps.changed-files.outputs) }}' > changed-files.json\n\n - name: Check Local Changed Files Contents\n if: ${{ github.event_name == 'pull_request' }}\n run:\n cat changed-files.json\n\n - name: Process Changed Files\n id: process-changed-files\n run: |\n tools ci process-changed-files ${{ github.event_name }} changed-files.json\n\n - name: Check Collected Changed Files\n if: ${{ github.event_name == 'pull_request' }}\n run: |\n echo '${{ steps.process-changed-files.outputs.changed-files }}' | jq -C '.'\n\n - name: Get Salt Releases\n id: get-salt-releases\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n run: |\n tools ci get-releases\n\n - name: Get Latest Salt Releases for Testing\n id: get-testing-releases\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n run: |\n tools ci get-testing-releases ${{ join(fromJSON(steps.get-salt-releases.outputs.releases), ' ') }} --salt-version ${{ steps.setup-salt-version.outputs.salt-version }}\n\n - name: Define workflow config\n id: workflow-config\n run: |\n tools ci workflow-config ${{ steps.setup-salt-version.outputs.salt-version }} ${{ github.event_name }} changed-files.json\n\n - name: Check Contents of generated testrun-changed-files.txt\n if: ${{ fromJSON(steps.workflow-config.outputs.config)['testrun']['type'] != 'full' }}\n run: |\n cat testrun-changed-files.txt || true\n\n - name: Upload testrun-changed-files.txt\n if: ${{ fromJSON(steps.workflow-config.outputs.config)['testrun']['type'] != 'full' }}\n uses: actions/upload-artifact@v4\n with:\n name: testrun-changed-files.txt\n path: testrun-changed-files.txt\n\n - name: Get Release Changelog Target\n id: get-release-changelog-target\n run: |\n tools ci get-release-changelog-target ${{ github.event_name }}\n\n\n pre-commit:\n name: Pre-Commit\n uses: ./.github/workflows/pre-commit-action.yml\n needs:\n - prepare-workflow\n with:\n cache-seed: ${{ needs.prepare-workflow.outputs.cache-seed }}\n changed-files: ${{ needs.prepare-workflow.outputs.changed-files }}\n pre-commit-version: "3.0.4"\n\n lint:\n name: Lint\n if: ${{ !cancelled() && fromJSON(needs.prepare-workflow.outputs.config)['jobs']['lint'] }}\n uses: ./.github/workflows/lint-action.yml\n needs:\n - prepare-workflow\n with:\n changed-files: ${{ needs.prepare-workflow.outputs.changed-files }}\n nsis-tests:\n name: NSIS Tests\n uses: ./.github/workflows/nsis-tests.yml\n needs:\n - prepare-workflow\n with:\n changed-files: ${{ needs.prepare-workflow.outputs.changed-files }}\n\n prepare-release:\n name: "Prepare Release: ${{ needs.prepare-workflow.outputs.salt-version }}"\n runs-on:\n - ubuntu-22.04\n if: ${{ !cancelled() && fromJSON(needs.prepare-workflow.outputs.config)['jobs']['prepare-release'] }}\n needs:\n - prepare-workflow\n steps:\n - uses: actions/checkout@v4\n\n - name: Set up Python 3.10\n uses: actions/setup-python@v5\n with:\n python-version: "3.10"\n\n - name: Setup Python Tools Scripts\n uses: ./.github/actions/setup-python-tools-scripts\n with:\n cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}-changelog\n\n - name: Setup Salt Version\n id: setup-salt-version\n uses: ./.github/actions/setup-salt-version\n with:\n salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"\n\n - name: Update Debian changelog\n shell: bash\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n run: |\n tools changelog update-deb --draft\n tools changelog update-deb\n\n - name: Update RPM changelog\n shell: bash\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n run: |\n tools changelog update-rpm --draft\n tools changelog update-rpm\n\n - name: Create Release Notes Template\n shell: bash\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n run: |\n if [ "${{ needs.prepare-workflow.outputs.release-changelog-target }}" == "next-major-release" ]; then\n tools changelog update-release-notes --next-release --template-only\n else\n tools changelog update-release-notes --template-only\n fi\n\n - name: Update Release Notes\n shell: bash\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n run: |\n if [ "${{ needs.prepare-workflow.outputs.release-changelog-target }}" == "next-major-release" ]; then\n tools changelog update-release-notes --draft --next-release\n tools changelog update-release-notes --next-release\n else\n tools changelog update-release-notes --draft\n tools changelog update-release-notes\n fi\n\n - name: Generate MAN Pages\n shell: bash\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n env:\n LATEST_RELEASE: "${{ needs.prepare-workflow.outputs.salt-version }}"\n SALT_ON_SALTSTACK: "1"\n run: |\n tools docs man\n\n - name: Update Changelog\n shell: bash\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n run: |\n tools changelog update-changelog-md --draft\n tools changelog update-changelog-md\n\n - name: Show Changes Diff\n shell: bash\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n run: |\n git diff --color\n\n - name: Configure Git\n shell: bash\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n run: |\n git config --global user.name "Salt Project Packaging"\n git config --global user.email saltproject-packaging@vmware.com\n\n - name: Setup Pre-Commit\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n uses: ./.github/actions/setup-pre-commit\n with:\n version: "3.0.4"\n cache-seed: ${{ needs.prepare-workflow.outputs.cache-seed }}\n\n - name: Commit Changes\n shell: bash\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n env:\n SKIP: lint-salt,lint-tests\n PRE_COMMIT_COLOR: always\n run: |\n # Run it twice so that pre-commit can fix anything that can be automatically fixed.\n git commit -am "Release v${{ needs.prepare-workflow.outputs.salt-version }}" || \\n git commit -am "Release v${{ needs.prepare-workflow.outputs.salt-version }}"\n\n - name: Create release changes patch\n shell: bash\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n run: |\n git format-patch --keep-subject --binary --stdout HEAD^ > salt-${{ needs.prepare-workflow.outputs.salt-version }}.patch\n\n - name: Upload Changes Diff Artifact\n uses: actions/upload-artifact@v4\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n with:\n name: salt-${{ needs.prepare-workflow.outputs.salt-version }}.patch\n path: salt-${{ needs.prepare-workflow.outputs.salt-version }}.patch\n retention-days: 7\n if-no-files-found: error\n\n build-docs:\n name: Documentation\n if: ${{ !cancelled() && fromJSON(needs.prepare-workflow.outputs.config)['jobs']['build-docs'] }}\n needs:\n - prepare-workflow\n - build-source-tarball\n uses: ./.github/workflows/build-docs.yml\n with:\n cache-seed: ${{ needs.prepare-workflow.outputs.cache-seed }}\n salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"\n\n build-source-tarball:\n name: Build Source Tarball\n if: ${{ !cancelled() && fromJSON(needs.prepare-workflow.outputs.config)['jobs']['build-source-tarball'] }}\n needs:\n - prepare-workflow\n - prepare-release\n runs-on: ubuntu-22.04\n steps:\n - uses: actions/checkout@v4\n\n - name: Set up Python 3.10\n uses: actions/setup-python@v5\n with:\n python-version: "3.10"\n\n - name: Setup Python Tools Scripts\n uses: ./.github/actions/setup-python-tools-scripts\n with:\n cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}-build\n\n - name: Setup Salt Version\n id: setup-salt-version\n uses: ./.github/actions/setup-salt-version\n with:\n salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"\n\n - name: Build Source Tarball\n uses: ./.github/actions/build-source-tarball\n with:\n salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"\n\n build-salt-onedir:\n name: Build Salt Onedir\n if: ${{ !cancelled() && fromJSON(needs.prepare-workflow.outputs.config)['jobs']['build-salt-onedir'] }}\n needs:\n - prepare-workflow\n - build-source-tarball\n uses: ./.github/workflows/build-salt-onedir.yml\n with:\n cache-seed: ${{ needs.prepare-workflow.outputs.cache-seed }}\n salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"\n relenv-version: "0.18.1"\n python-version: "3.10.16"\n matrix: ${{ toJSON(fromJSON(needs.prepare-workflow.outputs.config)['build-matrix']) }}\n linux_arm_runner: ${{ fromJSON(needs.prepare-workflow.outputs.config)['linux_arm_runner'] }}\n\n build-pkgs-onedir:\n name: Build Packages\n if: ${{ fromJSON(needs.prepare-workflow.outputs.config)['jobs']['build-pkgs'] }}\n needs:\n - prepare-workflow\n - build-salt-onedir\n uses: ./.github/workflows/build-packages.yml\n with:\n salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"\n cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}\n relenv-version: "0.18.1"\n python-version: "3.10.16"\n source: "onedir"\n matrix: ${{ toJSON(fromJSON(needs.prepare-workflow.outputs.config)['build-matrix']) }}\n linux_arm_runner: ${{ fromJSON(needs.prepare-workflow.outputs.config)['linux_arm_runner'] }}\n build-ci-deps:\n name: CI Deps\n if: ${{ fromJSON(needs.prepare-workflow.outputs.config)['jobs']['build-deps-ci'] }}\n needs:\n - prepare-workflow\n - build-salt-onedir\n uses: ./.github/workflows/build-deps-ci-action.yml\n with:\n nox-session: ci-test-onedir\n nox-version: 2022.8.7\n python-version: "3.10"\n salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"\n cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}|3.10.16\n nox-archive-hash: "${{ needs.prepare-workflow.outputs.nox-archive-hash }}"\n matrix: ${{ toJSON(fromJSON(needs.prepare-workflow.outputs.config)['build-matrix']) }}\n linux_arm_runner: ${{ fromJSON(needs.prepare-workflow.outputs.config)['linux_arm_runner'] }}\n test-packages:\n name: Test Package\n if: ${{ fromJSON(needs.prepare-workflow.outputs.config)['jobs']['test-pkg'] }}\n needs:\n - prepare-workflow\n - build-pkgs-onedir\n - build-ci-deps\n uses: ./.github/workflows/test-packages-action.yml\n with:\n nox-session: ci-test-onedir\n salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"\n nox-version: 2022.8.7\n python-version: "3.10"\n cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}|3.10.16\n skip-code-coverage: ${{ fromJSON(needs.prepare-workflow.outputs.config)['skip_code_coverage'] }}\n testing-releases: ${{ needs.prepare-workflow.outputs.testing-releases }}\n matrix: ${{ toJSON(fromJSON(needs.prepare-workflow.outputs.config)['pkg-test-matrix']) }}\n linux_arm_runner: ${{ fromJSON(needs.prepare-workflow.outputs.config)['linux_arm_runner'] }}\n test:\n name: Test Salt\n if: ${{ fromJSON(needs.prepare-workflow.outputs.config)['jobs']['test'] }}\n needs:\n - prepare-workflow\n - build-ci-deps\n uses: ./.github/workflows/test-action.yml\n with:\n nox-session: ci-test-onedir\n nox-version: 2022.8.7\n python-version: "3.10"\n testrun: ${{ toJSON(fromJSON(needs.prepare-workflow.outputs.config)['testrun']) }}\n salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"\n cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}|3.10.16\n skip-code-coverage: ${{ fromJSON(needs.prepare-workflow.outputs.config)['skip_code_coverage'] }}\n workflow-slug: ci\n default-timeout: 180\n matrix: ${{ toJSON(fromJSON(needs.prepare-workflow.outputs.config)['test-matrix']) }}\n linux_arm_runner: ${{ fromJSON(needs.prepare-workflow.outputs.config)['linux_arm_runner'] }}\n\n combine-all-code-coverage:\n name: Combine Code Coverage\n if: ${{ !cancelled() && fromJSON(needs.prepare-workflow.outputs.config)['skip_code_coverage'] == false }}\n runs-on: ubuntu-22.04\n env:\n PIP_INDEX_URL: https://pypi.org/simple\n needs:\n - prepare-workflow\n - build-ci-deps\n steps:\n - uses: actions/checkout@v4\n\n - name: Set up Python 3.10\n uses: actions/setup-python@v5\n with:\n python-version: "3.10"\n\n - name: Setup Python Tools Scripts\n id: python-tools-scripts\n uses: ./.github/actions/setup-python-tools-scripts\n with:\n cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}-coverage\n\n - name: Install Nox\n run: |\n python3 -m pip install 'nox==2022.8.7'\n\n\n\n - name: Merge All Code Coverage Test Run Artifacts\n continue-on-error: true\n uses: actions/upload-artifact/merge@v4\n with:\n name: all-testrun-coverage-artifacts\n pattern: all-testrun-coverage-artifacts-*\n separate-directories: false\n delete-merged: true\n\n - name: Get coverage reports\n id: get-coverage-reports\n uses: actions/download-artifact@v4\n with:\n path: artifacts/coverage/\n pattern: all-testrun-coverage-artifacts*\n merge-multiple: true\n\n - name: Display structure of downloaded files\n run: tree -a artifacts/\n\n - name: Install Codecov CLI\n run: |\n # We can't yet use tokenless uploads with the codecov CLI\n # python3 -m pip install codecov-cli\n #\n curl https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --no-default-keyring --import\n curl -Os https://uploader.codecov.io/latest/linux/codecov\n curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM\n curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM.sig\n gpg --verify codecov.SHA256SUM.sig codecov.SHA256SUM\n shasum -a 256 -c codecov.SHA256SUM\n chmod +x codecov\n mv ./codecov /usr/local/bin/\n\n - name: Create XML Coverage Reports\n run: |\n nox --force-color -e create-xml-coverage-reports\n\n - name: Upload Code Coverage To Codecov\n if: ${{ ! github.event.repository.private && ! github.event.repository.fork }}\n env:\n CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}\n run: |\n tools ci upload-coverage --commit-sha=${{ github.event.pull_request.head.sha || github.sha }} artifacts/coverage/\n\n - name: Combine Code Coverage\n run: |\n nox --force-color -e combine-coverage\n\n - name: Report Salt Code Coverage\n run: |\n nox --force-color -e coverage-report -- salt\n\n - name: Create Salt Code Coverage HTML Report\n run: |\n nox --force-color -e create-html-coverage-report -- salt\n\n - name: Create Salt Code Coverage HTML Report\n run: |\n nox --force-color -e create-html-coverage-report -- salt\n\n - name: Upload Salt Code Coverage HTML Report\n uses: actions/upload-artifact@v4\n with:\n name: code-coverage-salt-html-report\n path: artifacts/coverage/html/salt\n retention-days: 7\n if-no-files-found: error\n include-hidden-files: true\n\n - name: Report Combined Code Coverage\n run: |\n nox --force-color -e coverage-report\n\n - name: Create Combined Code Coverage JSON Report\n run: |\n nox --force-color -e create-json-coverage-reports\n\n - name: Upload Combined Code Coverage JSON Report\n uses: actions/upload-artifact@v4\n with:\n name: code-coverage-full-json-report\n path: artifacts/coverage/coverage.json\n retention-days: 7\n if-no-files-found: error\n include-hidden-files: true\n\n - name: Create Combined Code Coverage HTML Report\n run: |\n nox --force-color -e create-html-coverage-report\n\n - name: Upload Combined Code Coverage HTML Report\n uses: actions/upload-artifact@v4\n with:\n name: code-coverage-full-html-report\n path: artifacts/coverage/html/full\n retention-days: 7\n if-no-files-found: error\n include-hidden-files: true\n set-pipeline-exit-status:\n # This step is just so we can make github require this step, to pass checks\n # on a pull request instead of requiring all\n name: Set the ${{ github.workflow }} Pipeline Exit Status\n if: ${{ !cancelled() && always() }}\n runs-on: ubuntu-22.04\n needs:\n - prepare-workflow\n - pre-commit\n - lint\n - nsis-tests\n - build-docs\n - build-salt-onedir\n - combine-all-code-coverage\n - build-ci-deps\n - test-packages\n - test\n steps:\n - name: Get workflow information\n id: get-workflow-info\n uses: im-open/workflow-conclusion@v2\n\n - name: Set Pipeline Exit Status\n shell: bash\n run: |\n if [ "${{ steps.get-workflow-info.outputs.workflow_conclusion }}" != "success" ]; then\n exit 1\n else\n exit 0\n fi\n
dataset_sample\yaml\saltstack_salt\.github\workflows\ci.yml
ci.yml
YAML
24,654
0.95
0.06184
0.020339
node-utils
963
2024-05-05T07:38:56.929428
BSD-3-Clause
false
9f412d6bb542c6df274d43a6bcbde85f
---\nname: Lint\n\non:\n workflow_call:\n inputs:\n changed-files:\n required: true\n type: string\n description: JSON string containing information about changed files\n\n\nenv:\n PIP_INDEX_URL: https://pypi.org/simple\n PIP_DISABLE_PIP_VERSION_CHECK: "1"\n\n\njobs:\n Salt:\n name: Lint Salt's Source Code\n runs-on: ubuntu-22.04\n if: ${{ contains(fromJSON('["push", "schedule", "workflow_dispatch"]'), github.event_name) || fromJSON(inputs.changed-files)['salt'] || fromJSON(inputs.changed-files)['lint'] }}\n\n container:\n image: ghcr.io/saltstack/salt-ci-containers/python:3.10\n\n steps:\n\n - name: Add Git Safe Directory\n run: |\n git config --global --add safe.directory "$(pwd)"\n\n - uses: actions/checkout@v4\n\n - name: Install Nox\n run: |\n python -m pip install --upgrade pip\n pip install nox\n\n - name: Install Python Requirements\n run:\n nox --install-only --forcecolor -e lint-salt\n\n - name: Lint Changed Files\n if: github.event_name == 'pull_request' && fromJSON(inputs.changed-files)['salt'] && ! fromJSON(inputs.changed-files)['lint']\n env:\n SKIP_REQUIREMENTS_INSTALL: YES\n run: |\n nox --forcecolor -e lint-salt -- ${{ join(fromJSON(inputs.changed-files)['salt_files'], ' ') }}\n\n - name: Lint ALL Files\n if: github.event_name != 'pull_request' || fromJSON(inputs.changed-files)['lint']\n env:\n SKIP_REQUIREMENTS_INSTALL: YES\n run: |\n nox --forcecolor -e lint-salt\n\n\n Tests:\n name: Lint Salt's Test Suite\n runs-on: ubuntu-22.04\n if: ${{ contains(fromJSON('["push", "schedule", "workflow_dispatch"]'), github.event_name) || fromJSON(inputs.changed-files)['tests'] || fromJSON(inputs.changed-files)['lint'] }}\n\n container:\n image: ghcr.io/saltstack/salt-ci-containers/python:3.10\n\n steps:\n\n - name: Add Git Safe Directory\n run: |\n git config --global --add safe.directory "$(pwd)"\n\n - uses: actions/checkout@v4\n\n - name: Install Nox\n run: |\n python -m pip install --upgrade pip\n pip install nox\n\n - name: Install Python Requirements\n run:\n nox --install-only --forcecolor -e lint-tests\n\n - name: Lint Changed Files\n if: github.event_name == 'pull_request' && fromJSON(inputs.changed-files)['tests'] && ! fromJSON(inputs.changed-files)['lint']\n env:\n SKIP_REQUIREMENTS_INSTALL: YES\n run: |\n nox --forcecolor -e lint-tests -- ${{ join(fromJSON(inputs.changed-files)['tests_files'], ' ') }}\n\n - name: Lint ALL Files\n if: github.event_name != 'pull_request' || fromJSON(inputs.changed-files)['lint']\n env:\n SKIP_REQUIREMENTS_INSTALL: YES\n run: |\n nox --forcecolor -e lint-tests\n
dataset_sample\yaml\saltstack_salt\.github\workflows\lint-action.yml
lint-action.yml
YAML
2,861
0.95
0.0625
0
node-utils
259
2025-03-05T19:06:54.731926
BSD-3-Clause
false
2e474cc54910b7e747480ed9595f09d2
# Do not edit these workflows directly as the changes made will be overwritten.\n# Instead, edit the template '.github/workflows/templates/nightly.yml.jinja'\n---\n\nname: Nightly\nrun-name: "Nightly (branch: ${{ github.ref_name }})"\n\non:\n workflow_dispatch:\n inputs:\n skip-salt-test-suite:\n type: boolean\n default: false\n description: Skip running the Salt test suite.\n skip-salt-pkg-test-suite:\n type: boolean\n default: false\n description: Skip running the Salt packages test suite.\n\nenv:\n COLUMNS: 190\n CACHE_SEED: SEED-1 # Bump the number to invalidate all caches\n RELENV_DATA: "${{ github.workspace }}/.relenv"\n PIP_DISABLE_PIP_VERSION_CHECK: "1"\n RAISE_DEPRECATIONS_RUNTIME_ERRORS: "1"\n\npermissions:\n contents: read # for dorny/paths-filter to fetch a list of changed files\n pull-requests: read # for dorny/paths-filter to read pull requests\n actions: write # to trigger branch nightly builds\n\nconcurrency:\n group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.repository }}-${{ github.head_ref || github.run_id }}\n cancel-in-progress: false\n\njobs:\n\n prepare-workflow:\n name: Prepare Workflow Run\n runs-on: ubuntu-22.04\n environment: ci\n outputs:\n changed-files: ${{ steps.process-changed-files.outputs.changed-files }}\n salt-version: ${{ steps.setup-salt-version.outputs.salt-version }}\n cache-seed: ${{ steps.set-cache-seed.outputs.cache-seed }}\n latest-release: ${{ steps.get-salt-releases.outputs.latest-release }}\n releases: ${{ steps.get-salt-releases.outputs.releases }}\n release-changelog-target: ${{ steps.get-release-changelog-target.outputs.release-changelog-target }}\n testing-releases: ${{ steps.get-testing-releases.outputs.testing-releases }}\n nox-archive-hash: ${{ steps.nox-archive-hash.outputs.nox-archive-hash }}\n config: ${{ steps.workflow-config.outputs.config }}\n env:\n LINUX_ARM_RUNNER: ${{ vars.LINUX_ARM_RUNNER }}\n FULL_TESTRUN_SLUGS: ${{ vars.FULL_TESTRUN_SLUGS }}\n PR_TESTRUN_SLUGS: ${{ vars.PR_TESTRUN_SLUGS }}\n steps:\n - uses: actions/checkout@v4\n with:\n fetch-depth: 0 # Full clone to also get the tags to get the right salt version\n\n - name: Get Changed Files\n if: ${{ github.event_name == 'pull_request'}}\n id: changed-files\n uses: dorny/paths-filter@v3\n with:\n token: ${{ github.token }}\n list-files: json\n filters: |\n repo:\n - added|modified:\n - '**'\n doc-requirements:\n - added|modified: &doc_requirements\n - requirements/static/ci/py3.*/docs.txt\n lint-requirements:\n - added|modified: &lint_requirements\n - requirements/static/ci/py3.*/lint.txt\n pkg_requirements:\n - added|modified: &pkg_requirements\n - requirements/static/pkg/py3.*/darwin.txt\n - requirements/static/pkg/py3.*/linux.txt\n - requirements/static/pkg/py3.*/freebsd.txt\n - requirements/static/pkg/py3.*/windows.txt\n test_requirements:\n - added|modified: &test_requirements\n - requirements/static/ci/py3.*/darwin.txt\n - requirements/static/ci/py3.*/linux.txt\n - requirements/static/ci/py3.*/freebsd.txt\n - requirements/static/ci/py3.*/windows.txt\n - requirements/static/ci/py3.*/darwin-crypto.txt\n - requirements/static/ci/py3.*/linux-crypto.txt\n - requirements/static/ci/py3.*/freebsd-crypto.txt\n - requirements/static/ci/py3.*/windows-crypto.txt\n deleted:\n - deleted:\n - '**'\n docs:\n - added|modified:\n - doc/**\n - .github/workflows/build-docs.yml\n - *doc_requirements\n workflows:\n - added|modified:\n - cicd/shared-gh-workflows-context.yml\n - .github/actions/**/action.yml\n - .github/workflows/*.yml\n - .github/workflows/templates/*.yml.jinja2\n - tools/precommit/workflows.py\n salt:\n - added|modified: &salt_added_modified\n - setup.py\n - noxfile.py\n - salt/**/*.py\n - tasks/**/*.py\n - tools/**/*.py\n tests:\n - added|modified: &tests_added_modified\n - tests/**/*.py\n lint:\n - added|modified:\n - .pylintrc\n - *lint_requirements\n golden_images:\n - added|modified:\n - cicd/golden-images.json\n pkg_tests:\n - added|modified: &pkg_tests_added_modified\n - pkg/**\n - *pkg_requirements\n - *salt_added_modified\n nsis_tests:\n - added|modified: &nsis_tests\n - pkg/windows/nsis/**\n testrun:\n - added|modified:\n - *pkg_requirements\n - *test_requirements\n - *salt_added_modified\n - *tests_added_modified\n - *pkg_tests_added_modified\n\n - name: Set up Python 3.10\n uses: actions/setup-python@v5\n with:\n python-version: "3.10"\n\n - name: Setup Python Tools Scripts\n uses: ./.github/actions/setup-python-tools-scripts\n with:\n cache-prefix: ${{ env.CACHE_SEED }}\n\n - name: Pretty Print The GH Actions Event\n run:\n tools ci print-gh-event\n\n - name: Set Cache Seed Output\n id: set-cache-seed\n run: |\n tools ci define-cache-seed ${{ env.CACHE_SEED }}\n\n - name: Setup Salt Version\n id: setup-salt-version\n uses: ./.github/actions/setup-salt-version\n with:\n salt-version: ""\n validate-version: true\n\n - name: Get Hash For Nox Tarball Cache\n id: nox-archive-hash\n run: |\n echo "nox-archive-hash=${{ hashFiles('requirements/**/*.txt', 'cicd/golden-images.json', 'noxfile.py', 'pkg/common/env-cleanup-rules.yml', '.github/workflows/build-deps-ci-action.yml') }}" | tee -a "$GITHUB_OUTPUT"\n\n - name: Write Changed Files To A Local File\n run:\n echo '${{ toJSON(steps.changed-files.outputs) }}' > changed-files.json\n\n - name: Check Local Changed Files Contents\n if: ${{ github.event_name == 'pull_request' }}\n run:\n cat changed-files.json\n\n - name: Process Changed Files\n id: process-changed-files\n run: |\n tools ci process-changed-files ${{ github.event_name }} changed-files.json\n\n - name: Check Collected Changed Files\n if: ${{ github.event_name == 'pull_request' }}\n run: |\n echo '${{ steps.process-changed-files.outputs.changed-files }}' | jq -C '.'\n\n - name: Get Salt Releases\n id: get-salt-releases\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n run: |\n tools ci get-releases\n\n - name: Get Latest Salt Releases for Testing\n id: get-testing-releases\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n run: |\n tools ci get-testing-releases ${{ join(fromJSON(steps.get-salt-releases.outputs.releases), ' ') }} --salt-version ${{ steps.setup-salt-version.outputs.salt-version }}\n\n - name: Define workflow config\n id: workflow-config\n run: |\n tools ci workflow-config${{ inputs.skip-salt-test-suite && ' --skip-tests' || '' }}${{ inputs.skip-salt-pkg-test-suite && ' --skip-pkg-tests' || '' }} ${{ steps.setup-salt-version.outputs.salt-version }} ${{ github.event_name }} changed-files.json\n\n - name: Check Contents of generated testrun-changed-files.txt\n if: ${{ fromJSON(steps.workflow-config.outputs.config)['testrun']['type'] != 'full' }}\n run: |\n cat testrun-changed-files.txt || true\n\n - name: Upload testrun-changed-files.txt\n if: ${{ fromJSON(steps.workflow-config.outputs.config)['testrun']['type'] != 'full' }}\n uses: actions/upload-artifact@v4\n with:\n name: testrun-changed-files.txt\n path: testrun-changed-files.txt\n\n - name: Get Release Changelog Target\n id: get-release-changelog-target\n run: |\n tools ci get-release-changelog-target ${{ github.event_name }}\n\n\n pre-commit:\n name: Pre-Commit\n uses: ./.github/workflows/pre-commit-action.yml\n needs:\n - prepare-workflow\n with:\n cache-seed: ${{ needs.prepare-workflow.outputs.cache-seed }}\n changed-files: ${{ needs.prepare-workflow.outputs.changed-files }}\n pre-commit-version: "3.0.4"\n\n lint:\n name: Lint\n if: ${{ !cancelled() && fromJSON(needs.prepare-workflow.outputs.config)['jobs']['lint'] }}\n uses: ./.github/workflows/lint-action.yml\n needs:\n - prepare-workflow\n with:\n changed-files: ${{ needs.prepare-workflow.outputs.changed-files }}\n nsis-tests:\n name: NSIS Tests\n uses: ./.github/workflows/nsis-tests.yml\n needs:\n - prepare-workflow\n with:\n changed-files: ${{ needs.prepare-workflow.outputs.changed-files }}\n\n prepare-release:\n name: "Prepare Release: ${{ needs.prepare-workflow.outputs.salt-version }}"\n runs-on:\n - ubuntu-22.04\n if: ${{ !cancelled() && fromJSON(needs.prepare-workflow.outputs.config)['jobs']['prepare-release'] }}\n needs:\n - prepare-workflow\n steps:\n - uses: actions/checkout@v4\n\n - name: Set up Python 3.10\n uses: actions/setup-python@v5\n with:\n python-version: "3.10"\n\n - name: Setup Python Tools Scripts\n uses: ./.github/actions/setup-python-tools-scripts\n with:\n cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}-changelog\n\n - name: Setup Salt Version\n id: setup-salt-version\n uses: ./.github/actions/setup-salt-version\n with:\n salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"\n\n - name: Update Debian changelog\n shell: bash\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n run: |\n tools changelog update-deb --draft\n tools changelog update-deb\n\n - name: Update RPM changelog\n shell: bash\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n run: |\n tools changelog update-rpm --draft\n tools changelog update-rpm\n\n - name: Create Release Notes Template\n shell: bash\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n run: |\n if [ "${{ needs.prepare-workflow.outputs.release-changelog-target }}" == "next-major-release" ]; then\n tools changelog update-release-notes --next-release --template-only\n else\n tools changelog update-release-notes --template-only\n fi\n\n - name: Update Release Notes\n shell: bash\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n run: |\n if [ "${{ needs.prepare-workflow.outputs.release-changelog-target }}" == "next-major-release" ]; then\n tools changelog update-release-notes --draft --next-release\n tools changelog update-release-notes --next-release\n else\n tools changelog update-release-notes --draft\n tools changelog update-release-notes\n fi\n\n - name: Generate MAN Pages\n shell: bash\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n env:\n LATEST_RELEASE: "${{ needs.prepare-workflow.outputs.salt-version }}"\n SALT_ON_SALTSTACK: "1"\n run: |\n tools docs man\n\n - name: Update Changelog\n shell: bash\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n run: |\n tools changelog update-changelog-md --draft\n tools changelog update-changelog-md\n\n - name: Show Changes Diff\n shell: bash\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n run: |\n git diff --color\n\n - name: Configure Git\n shell: bash\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n run: |\n git config --global user.name "Salt Project Packaging"\n git config --global user.email saltproject-packaging@vmware.com\n\n - name: Setup Pre-Commit\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n uses: ./.github/actions/setup-pre-commit\n with:\n version: "3.0.4"\n cache-seed: ${{ needs.prepare-workflow.outputs.cache-seed }}\n\n - name: Commit Changes\n shell: bash\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n env:\n SKIP: lint-salt,lint-tests\n PRE_COMMIT_COLOR: always\n run: |\n # Run it twice so that pre-commit can fix anything that can be automatically fixed.\n git commit -am "Release v${{ needs.prepare-workflow.outputs.salt-version }}" || \\n git commit -am "Release v${{ needs.prepare-workflow.outputs.salt-version }}"\n\n - name: Create release changes patch\n shell: bash\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n run: |\n git format-patch --keep-subject --binary --stdout HEAD^ > salt-${{ needs.prepare-workflow.outputs.salt-version }}.patch\n\n - name: Upload Changes Diff Artifact\n uses: actions/upload-artifact@v4\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n with:\n name: salt-${{ needs.prepare-workflow.outputs.salt-version }}.patch\n path: salt-${{ needs.prepare-workflow.outputs.salt-version }}.patch\n retention-days: 7\n if-no-files-found: error\n\n build-docs:\n name: Documentation\n if: ${{ !cancelled() && fromJSON(needs.prepare-workflow.outputs.config)['jobs']['build-docs'] }}\n needs:\n - prepare-workflow\n - build-source-tarball\n uses: ./.github/workflows/build-docs.yml\n with:\n cache-seed: ${{ needs.prepare-workflow.outputs.cache-seed }}\n salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"\n\n build-source-tarball:\n name: Build Source Tarball\n if: ${{ !cancelled() && fromJSON(needs.prepare-workflow.outputs.config)['jobs']['build-source-tarball'] }}\n needs:\n - prepare-workflow\n - prepare-release\n runs-on: ubuntu-22.04\n steps:\n - uses: actions/checkout@v4\n\n - name: Set up Python 3.10\n uses: actions/setup-python@v5\n with:\n python-version: "3.10"\n\n - name: Setup Python Tools Scripts\n uses: ./.github/actions/setup-python-tools-scripts\n with:\n cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}-build\n\n - name: Setup Salt Version\n id: setup-salt-version\n uses: ./.github/actions/setup-salt-version\n with:\n salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"\n\n - name: Build Source Tarball\n uses: ./.github/actions/build-source-tarball\n with:\n salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"\n\n build-salt-onedir:\n name: Build Salt Onedir\n if: ${{ !cancelled() && fromJSON(needs.prepare-workflow.outputs.config)['jobs']['build-salt-onedir'] }}\n needs:\n - prepare-workflow\n - build-source-tarball\n uses: ./.github/workflows/build-salt-onedir.yml\n with:\n cache-seed: ${{ needs.prepare-workflow.outputs.cache-seed }}\n salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"\n relenv-version: "0.18.1"\n python-version: "3.10.16"\n matrix: ${{ toJSON(fromJSON(needs.prepare-workflow.outputs.config)['build-matrix']) }}\n linux_arm_runner: ${{ fromJSON(needs.prepare-workflow.outputs.config)['linux_arm_runner'] }}\n\n build-pkgs-onedir:\n name: Build Packages\n if: ${{ fromJSON(needs.prepare-workflow.outputs.config)['jobs']['build-pkgs'] }}\n needs:\n - prepare-workflow\n - build-salt-onedir\n uses: ./.github/workflows/build-packages.yml\n with:\n salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"\n cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}\n relenv-version: "0.18.1"\n python-version: "3.10.16"\n source: "onedir"\n matrix: ${{ toJSON(fromJSON(needs.prepare-workflow.outputs.config)['build-matrix']) }}\n linux_arm_runner: ${{ fromJSON(needs.prepare-workflow.outputs.config)['linux_arm_runner'] }}\n environment: nightly\n sign-macos-packages: false\n sign-windows-packages: false\n secrets: inherit\n\n build-pkgs-src:\n name: Build Packages\n if: ${{ fromJSON(needs.prepare-workflow.outputs.config)['jobs']['build-pkgs'] }}\n needs:\n - prepare-workflow\n - build-salt-onedir\n uses: ./.github/workflows/build-packages.yml\n with:\n salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"\n cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}\n relenv-version: "0.18.1"\n python-version: "3.10.16"\n source: "src"\n matrix: ${{ toJSON(fromJSON(needs.prepare-workflow.outputs.config)['build-matrix']) }}\n linux_arm_runner: ${{ fromJSON(needs.prepare-workflow.outputs.config)['linux_arm_runner'] }}\n environment: nightly\n sign-macos-packages: false\n sign-windows-packages: false\n secrets: inherit\n build-ci-deps:\n name: CI Deps\n if: ${{ fromJSON(needs.prepare-workflow.outputs.config)['jobs']['build-deps-ci'] }}\n needs:\n - prepare-workflow\n - build-salt-onedir\n uses: ./.github/workflows/build-deps-ci-action.yml\n with:\n nox-session: ci-test-onedir\n nox-version: 2022.8.7\n python-version: "3.10"\n salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"\n cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}|3.10.16\n nox-archive-hash: "${{ needs.prepare-workflow.outputs.nox-archive-hash }}"\n matrix: ${{ toJSON(fromJSON(needs.prepare-workflow.outputs.config)['build-matrix']) }}\n linux_arm_runner: ${{ fromJSON(needs.prepare-workflow.outputs.config)['linux_arm_runner'] }}\n test-packages:\n name: Test Package\n if: ${{ fromJSON(needs.prepare-workflow.outputs.config)['jobs']['test-pkg'] }}\n needs:\n - prepare-workflow\n - build-pkgs-onedir\n - build-ci-deps\n uses: ./.github/workflows/test-packages-action.yml\n with:\n nox-session: ci-test-onedir\n salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"\n nox-version: 2022.8.7\n python-version: "3.10"\n cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}|3.10.16\n skip-code-coverage: true\n testing-releases: ${{ needs.prepare-workflow.outputs.testing-releases }}\n matrix: ${{ toJSON(fromJSON(needs.prepare-workflow.outputs.config)['pkg-test-matrix']) }}\n linux_arm_runner: ${{ fromJSON(needs.prepare-workflow.outputs.config)['linux_arm_runner'] }}\n test:\n name: Test Salt\n if: ${{ fromJSON(needs.prepare-workflow.outputs.config)['jobs']['test'] }}\n needs:\n - prepare-workflow\n - build-ci-deps\n uses: ./.github/workflows/test-action.yml\n with:\n nox-session: ci-test-onedir\n nox-version: 2022.8.7\n python-version: "3.10"\n testrun: ${{ toJSON(fromJSON(needs.prepare-workflow.outputs.config)['testrun']) }}\n salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"\n cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}|3.10.16\n skip-code-coverage: true\n workflow-slug: nightly\n default-timeout: 360\n matrix: ${{ toJSON(fromJSON(needs.prepare-workflow.outputs.config)['test-matrix']) }}\n linux_arm_runner: ${{ fromJSON(needs.prepare-workflow.outputs.config)['linux_arm_runner'] }}\n set-pipeline-exit-status:\n # This step is just so we can make github require this step, to pass checks\n # on a pull request instead of requiring all\n name: Set the ${{ github.workflow }} Pipeline Exit Status\n if: ${{ !cancelled() && always() }}\n runs-on: ubuntu-22.04\n environment: nightly\n needs:\n - prepare-workflow\n - pre-commit\n - lint\n - nsis-tests\n - build-docs\n - build-salt-onedir\n - build-pkgs-src\n - build-ci-deps\n - test-packages\n - test\n steps:\n - name: Get workflow information\n id: get-workflow-info\n uses: im-open/workflow-conclusion@v2\n\n - name: Set Pipeline Exit Status\n shell: bash\n run: |\n if [ "${{ steps.get-workflow-info.outputs.workflow_conclusion }}" != "success" ]; then\n exit 1\n else\n exit 0\n fi\n
dataset_sample\yaml\saltstack_salt\.github\workflows\nightly.yml
nightly.yml
YAML
20,964
0.95
0.062724
0.009901
python-kit
704
2024-05-13T17:01:13.358658
MIT
false
ccf20619bacc31d9d28f86c40bf73e40
---\nname: Pre-Commit\n\non:\n workflow_call:\n inputs:\n changed-files:\n required: true\n type: string\n description: JSON string containing information about changed files\n pre-commit-version:\n required: true\n type: string\n description: The pre-commit version to install\n cache-seed:\n required: true\n type: string\n description: Seed used to invalidate caches\n\njobs:\n Pre-Commit:\n name: Run Pre-Commit Against Salt\n\n runs-on: ubuntu-22.04\n\n container:\n image: ghcr.io/saltstack/salt-ci-containers/testing:ubuntu-22.04\n\n env:\n PRE_COMMIT_COLOR: always\n\n steps:\n\n - name: Add Git Safe Directory\n run: |\n git config --global --add safe.directory "$(pwd)"\n\n - uses: actions/checkout@v4\n - uses: ./.github/actions/setup-actionlint\n with:\n cache-seed: ${{ inputs.cache-seed }}\n - uses: ./.github/actions/setup-shellcheck\n with:\n cache-seed: ${{ inputs.cache-seed }}\n - uses: ./.github/actions/setup-pre-commit\n with:\n version: ${{ inputs.pre-commit-version }}\n cache-seed: ${{ inputs.cache-seed }}\n\n - name: Check ALL Files On Branch\n if: ${{ !cancelled() && github.event_name != 'pull_request' }}\n env:\n SKIP: lint-salt,lint-tests,remove-import-headers,pyupgrade\n run: |\n pre-commit run --show-diff-on-failure --color=always --all-files\n\n - name: Check Changed Files On PR\n if: ${{ !cancelled() && github.event_name == 'pull_request' && fromJSON(inputs.changed-files)['repo'] }}\n env:\n SKIP: lint-salt,lint-tests\n GH_ACTIONS_ANNOTATE: "1"\n run: |\n pre-commit run --show-diff-on-failure --color=always --files ${{ join(fromJSON(inputs.changed-files)['repo_files'], ' ') }}\n\n - name: Check Docs On Deleted Files\n if: ${{ !cancelled() && github.event_name == 'pull_request' && fromJSON(inputs.changed-files)['deleted'] }}\n run: |\n pre-commit run --show-diff-on-failure --color=always check-docs --files ${{ join(fromJSON(inputs.changed-files)['deleted_files'], ' ') }}\n
dataset_sample\yaml\saltstack_salt\.github\workflows\pre-commit-action.yml
pre-commit-action.yml
YAML
2,187
0.85
0.044118
0
python-kit
991
2023-11-15T18:54:35.473978
BSD-3-Clause
false
290262f7529570c9fd1d834fabe685f0
---\nname: Upload Release Artifact\n\non:\n workflow_call:\n inputs:\n name:\n type: string\n required: true\n description: The Salt version to set prior to building packages.\n upload_url:\n type: string\n required: true\n description: Release's upload url.\n pattern:\n type: string\n required: false\n description: Pattern of files to upload\n\n\njobs:\n\n list-files:\n name: List ${{ inputs.name }}\n runs-on: ubuntu-22.04\n outputs:\n files: ${{ steps.list-files.outputs.files }}\n steps:\n - uses: actions/download-artifact@v4\n with:\n name: ${{ inputs.name }}\n path: artifacts\n - run: find artifacts -maxdepth 1 -type f -printf '%f\n'\n - id: list-files\n run: |\n if [ "${{ inputs.pattern }}" != "" ]; then\n echo files="$(find artifacts -maxdepth 1 -type f -name '${{ inputs.pattern }}' -printf '%f\n' | jq -Rnc '[inputs | { file: "\(.)" }]')" >> "$GITHUB_OUTPUT"\n else\n echo files="$(find artifacts -maxdepth 1 -type f -printf '%f\n' | jq -Rnc '[inputs | { file: "\(.)" }]')" >> "$GITHUB_OUTPUT"\n fi\n\n upload-files:\n name: Upload ${{ matrix.file }} from ${{ inputs.name }}\n runs-on: ubuntu-22.04\n needs:\n - list-files\n strategy:\n matrix:\n include: ${{ fromJSON(needs.list-files.outputs.files) }}\n steps:\n - uses: actions/download-artifact@v4\n with:\n name: ${{ inputs.name }}\n path: artifacts\n\n - name: Detect type of ${{ matrix.file }}\n id: file-type\n run: echo "file_type=$( file --mime-type artifacts/${{ matrix.file }} )" >> "$GITHUB_OUTPUT"\n\n - name: Upload ${{ matrix.file }}\n id: upload-release-asset-source\n uses: actions/upload-release-asset@v1\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n with:\n upload_url: ${{ inputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps\n asset_path: artifacts/${{ matrix.file }}\n asset_name: ${{ matrix.file }}\n asset_content_type: ${{ steps.file-type.outputs.file_type }}\n
dataset_sample\yaml\saltstack_salt\.github\workflows\release-artifact.yml
release-artifact.yml
YAML
2,363
0.95
0.028986
0
node-utils
210
2024-12-23T23:38:52.845945
Apache-2.0
false
df571b724e1be8b1cdffccdf5345beda
---\nname: Generate Tag and Github Release\n\non:\n workflow_dispatch:\n inputs:\n saltVersion:\n description: 'Salt Version'\n required: true\n saltRepo:\n description: 'Salt Repo'\n default: saltstack/salt\n saltBranch:\n description: 'Salt Branch'\n default: freeze\n reTag:\n description: 'Re Tag (Deletes tag and release)'\n default: false\n\n\nenv:\n PIP_INDEX_URL: ${{ vars.PIP_INDEX_URL }}\n PIP_TRUSTED_HOST: ${{ vars.PIP_TRUSTED_HOST }}\n PIP_EXTRA_INDEX_URL: ${{ vars.PIP_EXTRA_INDEX_URL }}\n\n\npermissions:\n contents: read\n\njobs:\n GenerateTagRelease:\n permissions:\n contents: write # for dev-drprasad/delete-tag-and-release to delete tags or releases\n name: Generate Tag and Github Release\n runs-on: ubuntu-22.04\n steps:\n - uses: dev-drprasad/delete-tag-and-release@v0.2.0\n if: github.event.inputs.reTag == 'true'\n with:\n delete_release: true # default: false\n tag_name: v${{ github.event.inputs.saltVersion }}\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n\n - uses: actions/checkout@v4\n with:\n repository: ${{ github.event.inputs.saltRepo }}\n ref: ${{ github.event.inputs.saltBranch }}\n - name: Bump version and push tag\n id: tag_version\n uses: mathieudutour/github-tag-action@v5.6\n with:\n create_annotated_tag: True\n github_token: ${{ secrets.GITHUB_TOKEN }}\n custom_tag: ${{ github.event.inputs.saltVersion }}\n\n - name: Set up Python 3.8\n uses: actions/setup-python@v5\n with:\n python-version: 3.8\n\n - uses: actions/checkout@v4\n - name: Install pypa/build\n run: |\n python -m pip install build --user\n - name: Build a binary wheel and a source tarball\n run: |\n git fetch --tags origin\n git checkout v${{ github.event.inputs.saltVersion }}\n chmod 700 conf/cloud.*.d\n chmod 600 conf/cloud\n chmod 600 conf/cloud.profiles\n chmod 600 conf/cloud.providers\n python3 setup.py --ssh-packaging sdist\n python -m build --sdist --outdir dist/ .\n - name: Create a GitHub release\n uses: ncipollo/release-action@v1\n with:\n tag: ${{ steps.tag_version.outputs.new_tag }}\n name: Release ${{ steps.tag_version.outputs.new_tag }}\n body: |\n WARNING: The tarball generated by GitHub will not have the correct version information when using a version not ending in .0 . Please use the tarball generated by SaltStack instead. See issue #41847 for more information.\n Official Salt packages can be found at https://repo.saltproject.io/\n artifacts: dist/salt*.tar.gz\n
dataset_sample\yaml\saltstack_salt\.github\workflows\release-tag.yml
release-tag.yml
YAML
2,694
0.95
0.035714
0
react-lib
235
2024-01-27T14:11:44.900550
MIT
false
e76e0f188561828b38692032a492cbfb
---\nname: Update Winrepo\n\non:\n release:\n types: [released]\n workflow_dispatch:\n inputs:\n salt-version:\n type: string\n required: true\n description: >\n The Salt version to set prior to building packages and staging the release.\n (DO NOT prefix the version with a v, ie, 3006.0 NOT v3006.0).\n\npermissions:\n contents: read\n\njobs:\n update-winrepo:\n name: Update Winrepo\n runs-on: ubuntu-22.04\n steps:\n\n - name: Checkout Salt\n uses: actions/checkout@v4\n with:\n path: salt\n\n - name: Checkout WinRepo\n uses: actions/checkout@v4\n with:\n path: winrepo\n repository: saltstack/salt-winrepo-ng\n\n - name: Set Up Python 3.10\n uses: actions/setup-python@v5\n with:\n python-version: "3.10"\n\n - name: Add Version to Minion Definition File\n working-directory: salt\n run: |\n pwd\n ls -al ../winrepo/salt-minion.sls\n python .github/workflows/scripts/update_winrepo.py \\n --file ../winrepo/salt-minion.sls \\n --version ${{ inputs.salt-version || github.ref_name }}\n grep ${{ inputs.salt-version || github.ref_name }} ../winrepo/salt-minion.sls\n\n - name: Commit Changes\n working-directory: winrepo\n run: |\n git status\n git add .\n git config user.name 'saltbot-open'\n git config user.email 'saltbot-open@users.noreply.github.com'\n git commit -m "Adding salt minion ${{ inputs.salt-version && format('v{0}', inputs.salt-version) || github.ref_name }}"\n\n - name: Create Pull Request\n id: cpr\n uses: peter-evans/create-pull-request@v7\n with:\n path: winrepo\n push-to-fork: saltbot-open/salt-winrepo-ng\n token: ${{ secrets.SALTBOT_OPEN_SALT_WINREPO_NG }}\n\n# - name: Enable Pull Request Automerge\n# if: steps.cpr.outputs.pull-request-operation == 'created'\n# uses: peter-evans/enable-pull-request-automerge@v2\n# with:\n# token: ${{ secrets.SALTBOT_OPEN_SALT_WINREPO_NG }}\n# pull-request-number: ${{ steps.cpr.outputs.pull-request-number }}\n# merge-method: squash\n
dataset_sample\yaml\saltstack_salt\.github\workflows\release-update-winrepo.yml
release-update-winrepo.yml
YAML
2,145
0.95
0.013514
0.109375
python-kit
665
2024-10-25T09:59:47.083797
Apache-2.0
false
1a1a635790b86c7701be8db5c588ede4
---\nname: Upload VirusTotal\n\non:\n release:\n types: [released]\n workflow_dispatch:\n inputs:\n salt-version:\n type: string\n required: true\n description: >\n The Salt version to get from staging to upload to VirusTotal.\n (DO NOT prefix the version with a v, ie, 3006.0 NOT v3006.0).\n\npermissions:\n contents: read\n\nenv:\n COLUMNS: 190\n AWS_MAX_ATTEMPTS: "10"\n AWS_RETRY_MODE: "adaptive"\n PIP_INDEX_URL: ${{ vars.PIP_INDEX_URL }}\n PIP_TRUSTED_HOST: ${{ vars.PIP_TRUSTED_HOST }}\n PIP_EXTRA_INDEX_URL: ${{ vars.PIP_EXTRA_INDEX_URL }}\n\njobs:\n upload-virustotal:\n name: Upload VirusTotal\n environment: release\n runs-on:\n - self-hosted\n - linux\n steps:\n\n - name: Checkout Salt\n uses: actions/checkout@v4\n\n - name: Set Up Python 3.10\n uses: actions/setup-python@v5\n with:\n python-version: "3.10"\n\n - name: Setup Python Tools Scripts\n uses: ./.github/actions/setup-python-tools-scripts\n with:\n cache-prefix: virus-total\n\n - name: Upload to VirusTotal\n env:\n VIRUSTOTAL_API_KEY: ${{ secrets.VIRUSTOTAL_API_KEY }}\n run: |\n tools release upload-virustotal ${{ inputs.salt-version || github.ref_name }}\n
dataset_sample\yaml\saltstack_salt\.github\workflows\release-upload-virustotal.yml
release-upload-virustotal.yml
YAML
1,241
0.85
0
0
react-lib
405
2023-07-22T10:05:28.209315
GPL-3.0
false
cad0e931d0c108627d3c0b4ee05e1f70
# Do not edit these workflows directly as the changes made will be overwritten.\n# Instead, edit the template '.github/workflows/templates/release.yml.jinja'\n---\n\nname: Release\nrun-name: "Release (branch: ${{ github.ref_name }}; version: ${{ inputs.salt-version }})"\n\non:\n workflow_dispatch:\n inputs:\n salt-version:\n type: string\n required: true\n description: >\n The Salt version to get from staging to publish the release.\n (DO NOT prefix the version with a v, ie, 3006.0 NOT v3006.0).\n skip-salt-pkg-download-test-suite:\n type: boolean\n default: false\n description: Skip running the Salt packages download test suite.\n\nenv:\n COLUMNS: 190\n CACHE_SEED: SEED-1 # Bump the number to invalidate all caches\n RELENV_DATA: "${{ github.workspace }}/.relenv"\n PIP_DISABLE_PIP_VERSION_CHECK: "1"\n RAISE_DEPRECATIONS_RUNTIME_ERRORS: "1"\n\npermissions:\n contents: write # To be able to publish the release\n\nconcurrency:\n group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.repository }}\n cancel-in-progress: false\n\njobs:\n\n check-requirements:\n name: Check Requirements\n runs-on: ubuntu-22.04\n environment: release-check\n steps:\n - name: Check For Admin Permission\n uses: actions-cool/check-user-permission@v2\n with:\n require: admin\n username: ${{ github.triggering_actor }}\n\n prepare-workflow:\n name: Prepare Workflow Run\n runs-on:\n - linux-x86_64\n env:\n USE_S3_CACHE: 'false'\n environment: release\n needs:\n - check-requirements\n outputs:\n salt-version: ${{ steps.setup-salt-version.outputs.salt-version }}\n cache-seed: ${{ steps.set-cache-seed.outputs.cache-seed }}\n latest-release: ${{ steps.get-salt-releases.outputs.latest-release }}\n releases: ${{ steps.get-salt-releases.outputs.releases }}\n nox-archive-hash: ${{ steps.nox-archive-hash.outputs.nox-archive-hash }}\n config: ${{ steps.workflow-config.outputs.config }}\n steps:\n - uses: actions/checkout@v4\n with:\n fetch-depth: 0 # Full clone to also get the tags to get the right salt version\n\n - name: Set up Python 3.10\n uses: actions/setup-python@v5\n with:\n python-version: "3.10"\n\n - name: Setup Python Tools Scripts\n uses: ./.github/actions/setup-python-tools-scripts\n with:\n cache-prefix: ${{ env.CACHE_SEED }}\n\n - name: Pretty Print The GH Actions Event\n run:\n tools ci print-gh-event\n\n - name: Setup Salt Version\n id: setup-salt-version\n uses: ./.github/actions/setup-salt-version\n with:\n salt-version: "${{ inputs.salt-version }}"\n validate-version: true\n\n - name: Check Existing Releases\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n run: |\n tools pkg repo confirm-unreleased --repository ${{ github.repository }} ${{ steps.setup-salt-version.outputs.salt-version }}\n if [ "${{ github.event.repository.private }}" = "true" ]; then\n tools pkg repo confirm-unreleased --repository saltstack/salt ${{ steps.setup-salt-version.outputs.salt-version }}\n fi\n\n - name: Check Release Staged\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n run: |\n tools pkg repo confirm-staged --repository ${{ github.repository }} ${{ steps.setup-salt-version.outputs.salt-version }}\n\n - name: Get Salt Releases\n id: get-salt-releases\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n run: |\n tools ci get-releases\n\n - name: Set Cache Seed Output\n id: set-cache-seed\n run: |\n tools ci define-cache-seed ${{ env.CACHE_SEED }}\n\n - name: Get Hash For Nox Tarball Cache\n id: nox-archive-hash\n run: |\n echo "nox-archive-hash=${{ hashFiles('requirements/**/*.txt', 'cicd/golden-images.json', 'noxfile.py', 'pkg/common/env-cleanup-rules.yml', '.github/workflows/build-deps-ci-action.yml') }}" | tee -a "$GITHUB_OUTPUT"\n\n - name: Define workflow config\n id: workflow-config\n run: |\n tools ci workflow-config${{ inputs.skip-salt-pkg-download-test-suite && ' --skip-pkg-download-tests' || '' }} ${{ steps.setup-salt-version.outputs.salt-version }} ${{ github.event_name }} changed-files.json\n\n download-onedir-artifact:\n name: Download Staging Onedir Artifact\n runs-on:\n - linux-x86_64\n env:\n USE_S3_CACHE: 'true'\n environment: release\n needs:\n - prepare-workflow\n strategy:\n fail-fast: false\n matrix:\n include:\n - platform: linux\n arch: x86_64\n - platform: linux\n arch: arm64\n - platform: windows\n arch: amd64\n - platform: windows\n arch: x86\n - platform: macos\n arch: x86_64\n - platform: macos\n arch: arm64\n steps:\n - uses: actions/checkout@v4\n\n - name: Setup Python Tools Scripts\n uses: ./.github/actions/setup-python-tools-scripts\n with:\n cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}\n\n - name: Get Salt Project GitHub Actions Bot Environment\n run: |\n TOKEN=$(curl -sS -f -X PUT "http://169.254.169.254/latest/api/token" -H "X-aws-ec2-metadata-token-ttl-seconds: 30")\n SPB_ENVIRONMENT=$(curl -sS -f -H "X-aws-ec2-metadata-token: $TOKEN" http://169.254.169.254/latest/meta-data/tags/instance/spb:environment)\n echo "SPB_ENVIRONMENT=$SPB_ENVIRONMENT" >> "$GITHUB_ENV"\n\n - name: Download Onedir Tarball Artifact\n run: |\n tools release download-onedir-artifact --platform=${{ matrix.platform }} --arch=${{ matrix.arch }} ${{ inputs.salt-version }}\n\n - name: Upload Onedir Tarball as an Artifact\n uses: actions/upload-artifact@v4\n with:\n name: salt-${{ inputs.salt-version }}-onedir-${{ matrix.platform }}-${{ matrix.arch }}.tar.xz\n path: artifacts/salt-${{ inputs.salt-version }}-onedir-${{ matrix.platform }}-${{ matrix.arch }}.tar.xz*\n retention-days: 7\n if-no-files-found: error\n build-ci-deps:\n name: CI Deps\n needs:\n - prepare-workflow\n - download-onedir-artifact\n uses: ./.github/workflows/build-deps-ci-action.yml\n with:\n nox-session: ci-test-onedir\n nox-version: 2022.8.7\n python-version: "3.10"\n salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"\n cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}|3.10.16\n nox-archive-hash: "${{ needs.prepare-workflow.outputs.nox-archive-hash }}"\n matrix: ${{ toJSON(fromJSON(needs.prepare-workflow.outputs.config)['build-matrix']) }}\n linux_arm_runner: ${{ fromJSON(needs.prepare-workflow.outputs.config)['linux_arm_runner'] }}\n\n backup:\n name: Backup\n runs-on:\n - linux-x86_64\n needs:\n - prepare-workflow\n env:\n USE_S3_CACHE: 'true'\n environment: release\n outputs:\n backup-complete: ${{ steps.backup.outputs.backup-complete }}\n\n steps:\n - name: Clone The Salt Repository\n uses: actions/checkout@v4\n\n - name: Setup Rclone\n uses: AnimMouse/setup-rclone@v1\n with:\n version: v1.61.1\n\n - name: Setup Python Tools Scripts\n uses: ./.github/actions/setup-python-tools-scripts\n with:\n cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}\n\n - name: Backup Previous Releases\n id: backup\n run: |\n tools pkg repo backup-previous-releases\n\n publish-repositories:\n name: Publish Repositories\n runs-on:\n - linux-x86_64\n env:\n USE_S3_CACHE: 'true'\n needs:\n - prepare-workflow\n - backup\n - download-onedir-artifact\n environment: release\n steps:\n - name: Clone The Salt Repository\n uses: actions/checkout@v4\n\n - name: Get Salt Project GitHub Actions Bot Environment\n run: |\n TOKEN=$(curl -sS -f -X PUT "http://169.254.169.254/latest/api/token" -H "X-aws-ec2-metadata-token-ttl-seconds: 30")\n SPB_ENVIRONMENT=$(curl -sS -f -H "X-aws-ec2-metadata-token: $TOKEN" http://169.254.169.254/latest/meta-data/tags/instance/spb:environment)\n echo "SPB_ENVIRONMENT=$SPB_ENVIRONMENT" >> "$GITHUB_ENV"\n\n - name: Setup Python Tools Scripts\n uses: ./.github/actions/setup-python-tools-scripts\n with:\n cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}\n\n - name: Publish Release Repository\n env:\n SALT_REPO_DOMAIN_RELEASE: ${{ vars.SALT_REPO_DOMAIN_RELEASE || 'repo.saltproject.io' }}\n SALT_REPO_DOMAIN_STAGING: ${{ vars.SALT_REPO_DOMAIN_STAGING || 'staging.repo.saltproject.io' }}\n run: |\n tools pkg repo publish release ${{ needs.prepare-workflow.outputs.salt-version }}\n\n release:\n name: Release v${{ needs.prepare-workflow.outputs.salt-version }}\n if: ${{ always() && ! failure() && ! cancelled() }}\n runs-on:\n - linux-x86_64\n env:\n USE_S3_CACHE: 'true'\n needs:\n - prepare-workflow\n - backup\n - publish-repositories\n environment: release\n steps:\n - name: Clone The Salt Repository\n uses: actions/checkout@v4\n with:\n ssh-key: ${{ secrets.GHA_SSH_KEY }}\n\n - name: Setup Python Tools Scripts\n uses: ./.github/actions/setup-python-tools-scripts\n with:\n cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}\n\n - name: Setup GnuPG\n run: |\n sudo install -d -m 0700 -o "$(id -u)" -g "$(id -g)" /run/gpg\n GNUPGHOME="$(mktemp -d -p /run/gpg)"\n echo "GNUPGHOME=${GNUPGHOME}" >> "$GITHUB_ENV"\n cat <<EOF > "${GNUPGHOME}/gpg.conf"\n batch\n no-tty\n pinentry-mode loopback\n EOF\n\n - name: Get Secrets\n id: get-secrets\n env:\n SECRETS_KEY: ${{ secrets.SECRETS_KEY }}\n run: |\n SECRETS_KEY_FILE=$(mktemp /tmp/output.XXXXXXXXXX)\n echo "$SECRETS_KEY" > "$SECRETS_KEY_FILE"\n aws --region us-west-2 secretsmanager get-secret-value --secret-id /cmbu-saltstack/signing/repo-signing-keys-sha256-2023 \\n --query SecretString --output text | jq .default_key -r | base64 -d \\n | gpg --passphrase-file "${SECRETS_KEY_FILE}" -d - \\n | gpg --import -\n sync\n aws --region us-west-2 secretsmanager get-secret-value --secret-id /cmbu-saltstack/signing/repo-signing-keys-sha256-2023 \\n --query SecretString --output text| jq .default_passphrase -r | base64 -d \\n | gpg --passphrase-file "${SECRETS_KEY_FILE}" -o "${GNUPGHOME}/passphrase" -d -\n sync\n rm "$SECRETS_KEY_FILE"\n echo "passphrase-file ${GNUPGHOME}/passphrase" >> "${GNUPGHOME}/gpg.conf"\n\n - name: Prepare Release\n id: prepare-release\n run: |\n tools pkg repo publish github --repository ${{ github.repository }} --key-id=64CBBC8173D76B3F ${{ needs.prepare-workflow.outputs.salt-version }}\n\n - name: Configure Git\n shell: bash\n run: |\n git config --global --add safe.directory "$(pwd)"\n git config --global user.name "Salt Project Packaging"\n git config --global user.email saltproject-packaging@vmware.com\n git config --global user.signingkey 64CBBC8173D76B3F\n git config --global commit.gpgsign true\n\n - name: Apply The Release Patch\n run: |\n git am --committer-date-is-author-date release-artifacts/salt-${{ needs.prepare-workflow.outputs.salt-version }}.patch\n rm release-artifacts/salt-${{ needs.prepare-workflow.outputs.salt-version }}.patch\n\n - name: Tag The v${{ needs.prepare-workflow.outputs.salt-version }} Release\n run: |\n git tag -m "Release v${{ needs.prepare-workflow.outputs.salt-version }}" -as v${{ needs.prepare-workflow.outputs.salt-version }}\n\n - name: Push Changes\n uses: ad-m/github-push-action@b87afee92c6e70ea888be6203a3e9426fda49839\n with:\n ssh: true\n tags: true\n atomic: true\n branch: ${{ github.ref }}\n\n - name: Create Github Release\n uses: ncipollo/release-action@v1\n with:\n artifactErrorsFailBuild: true\n artifacts: ${{ steps.prepare-release.outputs.release-artifacts }}\n bodyFile: ${{ steps.prepare-release.outputs.release-messsage-file }}\n draft: false\n generateReleaseNotes: false\n makeLatest: fromJSON(${{ steps.prepare-release.outputs.make-latest }})\n name: v${{ needs.prepare-workflow.outputs.salt-version }}\n prerelease: ${{ contains(needs.prepare-workflow.outputs.salt-version, 'rc') }}\n removeArtifacts: true\n replacesArtifacts: true\n tag: v${{ needs.prepare-workflow.outputs.salt-version }}\n\n - name: Upload PyPi Artifacts\n uses: actions/upload-artifact@v4\n with:\n name: pypi-artifacts\n path: |\n release-artifacts/salt-${{ needs.prepare-workflow.outputs.salt-version }}.tar.gz\n release-artifacts/salt-${{ needs.prepare-workflow.outputs.salt-version }}.tar.gz.asc\n retention-days: 7\n if-no-files-found: error\n\n publish-pypi:\n name: Publish to PyPi\n if: ${{ always() && ! failure() && ! cancelled() && github.event.repository.fork != true }}\n needs:\n - prepare-workflow\n - release\n environment: release\n runs-on:\n - linux-x86_64\n env:\n USE_S3_CACHE: 'true'\n steps:\n - uses: actions/checkout@v4\n\n - name: Setup Python Tools Scripts\n uses: ./.github/actions/setup-python-tools-scripts\n with:\n cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}\n\n - name: Setup GnuPG\n run: |\n sudo install -d -m 0700 -o "$(id -u)" -g "$(id -g)" /run/gpg\n GNUPGHOME="$(mktemp -d -p /run/gpg)"\n echo "GNUPGHOME=${GNUPGHOME}" >> "$GITHUB_ENV"\n cat <<EOF > "${GNUPGHOME}/gpg.conf"\n batch\n no-tty\n pinentry-mode loopback\n EOF\n\n - name: Get Secrets\n id: get-secrets\n env:\n SECRETS_KEY: ${{ secrets.SECRETS_KEY }}\n run: |\n SECRETS_KEY_FILE=$(mktemp /tmp/output.XXXXXXXXXX)\n echo "$SECRETS_KEY" > "$SECRETS_KEY_FILE"\n TWINE_PASSWORD=$(aws --region us-west-2 secretsmanager get-secret-value --secret-id /cmbu-saltstack/publishing/publish-pypi \\n --query SecretString --output text | jq .default_passphrase -r | base64 -d \\n | gpg --passphrase-file "$SECRETS_KEY_FILE" -d -)\n echo "::add-mask::$TWINE_PASSWORD"\n echo "twine-password=$TWINE_PASSWORD" >> "${GITHUB_OUTPUT}"\n\n - name: Download PyPi Artifacts\n uses: actions/download-artifact@v4\n with:\n name: pypi-artifacts\n path: artifacts/release\n\n - name: Publish to PyPi\n env:\n TWINE_PASSWORD: "${{ steps.get-secrets.outputs.twine-password }}"\n run: |\n tools pkg pypi-upload artifacts/release/salt-${{ needs.prepare-workflow.outputs.salt-version }}.tar.gz\n set-pipeline-exit-status:\n # This step is just so we can make github require this step, to pass checks\n # on a pull request instead of requiring all\n name: Set the ${{ github.workflow }} Pipeline Exit Status\n if: ${{ !cancelled() && always() }}\n runs-on: ubuntu-22.04\n needs:\n - check-requirements\n - prepare-workflow\n - publish-repositories\n - release\n - publish-pypi\n - build-ci-deps\n steps:\n - name: Get workflow information\n id: get-workflow-info\n uses: im-open/workflow-conclusion@v2\n\n - run: |\n # shellcheck disable=SC2129\n if [ "${{ steps.get-workflow-info.outputs.conclusion }}" != "success" ]; then\n echo 'To restore the release bucket run:' >> "${GITHUB_STEP_SUMMARY}"\n echo '```' >> "${GITHUB_STEP_SUMMARY}"\n echo 'tools pkg repo restore-previous-releases' >> "${GITHUB_STEP_SUMMARY}"\n echo '```' >> "${GITHUB_STEP_SUMMARY}"\n fi\n\n - name: Set Pipeline Exit Status\n shell: bash\n run: |\n if [ "${{ steps.get-workflow-info.outputs.workflow_conclusion }}" != "success" ]; then\n exit 1\n else\n exit 0\n fi\n
dataset_sample\yaml\saltstack_salt\.github\workflows\release.yml
release.yml
YAML
16,546
0.95
0.017582
0.012376
vue-tools
142
2024-02-16T09:40:06.152569
MIT
false
5a819e850726d46ca7248b2b4c5d08c5
name: Run Nightly Builds\n\non:\n workflow_dispatch: {}\n schedule:\n # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onschedule\n - cron: '0 0 * * *' # Every day at 0AM\n\npermissions:\n contents: read # for dorny/paths-filter to fetch a list of changed files\n pull-requests: read # for dorny/paths-filter to read pull requests\n actions: write # to trigger branch nightly builds\n\njobs:\n\n workflow-requirements:\n name: Check Workflow Requirements\n runs-on: ubuntu-22.04\n outputs:\n requirements-met: ${{ steps.check-requirements.outputs.requirements-met }}\n steps:\n - name: Check Requirements\n id: check-requirements\n run: |\n if [ "${{ vars.RUN_SCHEDULED_BUILDS }}" = "1" ]; then\n MSG="Running workflow because RUN_SCHEDULED_BUILDS=1"\n echo "${MSG}"\n echo "${MSG}" >> "${GITHUB_STEP_SUMMARY}"\n echo "requirements-met=true" >> "${GITHUB_OUTPUT}"\n elif [ "${{ github.event.repository.fork }}" = "true" ]; then\n MSG="Not running workflow because ${{ github.repository }} is a fork"\n echo "${MSG}"\n echo "${MSG}" >> "${GITHUB_STEP_SUMMARY}"\n echo "requirements-met=false" >> "${GITHUB_OUTPUT}"\n elif [ "${{ github.event.repository.private }}" = "true" ]; then\n MSG="Not running workflow because ${{ github.repository }} is a private repository"\n echo "${MSG}"\n echo "${MSG}" >> "${GITHUB_STEP_SUMMARY}"\n echo "requirements-met=false" >> "${GITHUB_OUTPUT}"\n else\n MSG="Running workflow because ${{ github.repository }} is not a fork"\n echo "${MSG}"\n echo "${MSG}" >> "${GITHUB_STEP_SUMMARY}"\n echo "requirements-met=true" >> "${GITHUB_OUTPUT}"\n fi\n\n trigger-branch-nightly-builds:\n name: Trigger Branch Workflows\n if: ${{ fromJSON(needs.workflow-requirements.outputs.requirements-met) }}\n runs-on: ubuntu-24.04\n needs:\n - workflow-requirements\n environment: workflow-restart\n strategy:\n matrix:\n branch: [3006.x, 3007.x, master]\n steps:\n\n - name: Generate a token\n id: generate-token\n uses: actions/create-github-app-token@v1\n with:\n app-id: ${{ vars.APP_ID }}\n private-key: ${{ secrets.APP_PRIVATE_KEY }}\n\n - name: Trigger ${{ matrix.branch }} branch\n env:\n GH_TOKEN: ${{ steps.generate-token.outputs.token }}\n run: |\n gh workflow run nightly.yml --repo ${{ github.repository }} --ref ${{ matrix.branch }}\n
dataset_sample\yaml\saltstack_salt\.github\workflows\run-nightly.yml
run-nightly.yml
YAML
2,625
0.95
0.071429
0.015873
react-lib
48
2024-12-07T21:06:21.200316
Apache-2.0
false
8b3273fb2c7652f989062ab9012ebbd4
# Do not edit these workflows directly as the changes made will be overwritten.\n# Instead, edit the template '.github/workflows/templates/scheduled.yml.jinja'\n---\n\nname: Scheduled\nrun-name: "Scheduled (branch: ${{ github.ref_name }})"\n\non:\n schedule:\n # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onschedule\n - cron: '0 */8 * * *' # Run every 8 hours\n\nenv:\n COLUMNS: 190\n CACHE_SEED: SEED-1 # Bump the number to invalidate all caches\n RELENV_DATA: "${{ github.workspace }}/.relenv"\n PIP_DISABLE_PIP_VERSION_CHECK: "1"\n RAISE_DEPRECATIONS_RUNTIME_ERRORS: "1"\n\npermissions:\n contents: read # for dorny/paths-filter to fetch a list of changed files\n pull-requests: read # for dorny/paths-filter to read pull requests\n actions: write # to trigger branch scheduled builds\n\nconcurrency:\n group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.run_id }}\n cancel-in-progress: false\n\njobs:\n\n workflow-requirements:\n name: Check Workflow Requirements\n runs-on: ubuntu-22.04\n outputs:\n requirements-met: ${{ steps.check-requirements.outputs.requirements-met }}\n steps:\n - name: Check Requirements\n id: check-requirements\n run: |\n if [ "${{ vars.RUN_SCHEDULED_BUILDS }}" = "1" ]; then\n MSG="Running workflow because RUN_SCHEDULED_BUILDS=1"\n echo "${MSG}"\n echo "${MSG}" >> "${GITHUB_STEP_SUMMARY}"\n echo "requirements-met=true" >> "${GITHUB_OUTPUT}"\n elif [ "${{ github.event.repository.fork }}" = "true" ]; then\n MSG="Not running workflow because ${{ github.repository }} is a fork"\n echo "${MSG}"\n echo "${MSG}" >> "${GITHUB_STEP_SUMMARY}"\n echo "requirements-met=false" >> "${GITHUB_OUTPUT}"\n elif [ "${{ github.event.repository.private }}" = "true" ]; then\n MSG="Not running workflow because ${{ github.repository }} is a private repository"\n echo "${MSG}"\n echo "${MSG}" >> "${GITHUB_STEP_SUMMARY}"\n echo "requirements-met=false" >> "${GITHUB_OUTPUT}"\n else\n MSG="Running workflow because ${{ github.repository }} is not a fork"\n echo "${MSG}"\n echo "${MSG}" >> "${GITHUB_STEP_SUMMARY}"\n echo "requirements-met=true" >> "${GITHUB_OUTPUT}"\n fi\n\n trigger-branch-scheduled-builds:\n name: Trigger Branch Workflows\n if: ${{ github.event_name == 'schedule' && fromJSON(needs.workflow-requirements.outputs.requirements-met) }}\n runs-on: ubuntu-22.04\n needs:\n - workflow-requirements\n\n steps:\n\n - name: Trigger 3006.x branch\n env:\n GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n run: |\n gh workflow run scheduled.yml --repo ${{ github.repository }} --ref 3006.x\n\n - name: Trigger 3007.x branch\n env:\n GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n run: |\n gh workflow run scheduled.yml --repo ${{ github.repository }} --ref 3007.x\n\n prepare-workflow:\n name: Prepare Workflow Run\n runs-on: ubuntu-22.04\n environment: ci\n if: ${{ fromJSON(needs.workflow-requirements.outputs.requirements-met) }}\n needs:\n - workflow-requirements\n outputs:\n changed-files: ${{ steps.process-changed-files.outputs.changed-files }}\n salt-version: ${{ steps.setup-salt-version.outputs.salt-version }}\n cache-seed: ${{ steps.set-cache-seed.outputs.cache-seed }}\n latest-release: ${{ steps.get-salt-releases.outputs.latest-release }}\n releases: ${{ steps.get-salt-releases.outputs.releases }}\n release-changelog-target: ${{ steps.get-release-changelog-target.outputs.release-changelog-target }}\n testing-releases: ${{ steps.get-testing-releases.outputs.testing-releases }}\n nox-archive-hash: ${{ steps.nox-archive-hash.outputs.nox-archive-hash }}\n config: ${{ steps.workflow-config.outputs.config }}\n env:\n LINUX_ARM_RUNNER: ${{ vars.LINUX_ARM_RUNNER }}\n FULL_TESTRUN_SLUGS: ${{ vars.FULL_TESTRUN_SLUGS }}\n PR_TESTRUN_SLUGS: ${{ vars.PR_TESTRUN_SLUGS }}\n steps:\n - uses: actions/checkout@v4\n with:\n fetch-depth: 0 # Full clone to also get the tags to get the right salt version\n\n - name: Get Changed Files\n if: ${{ github.event_name == 'pull_request'}}\n id: changed-files\n uses: dorny/paths-filter@v3\n with:\n token: ${{ github.token }}\n list-files: json\n filters: |\n repo:\n - added|modified:\n - '**'\n doc-requirements:\n - added|modified: &doc_requirements\n - requirements/static/ci/py3.*/docs.txt\n lint-requirements:\n - added|modified: &lint_requirements\n - requirements/static/ci/py3.*/lint.txt\n pkg_requirements:\n - added|modified: &pkg_requirements\n - requirements/static/pkg/py3.*/darwin.txt\n - requirements/static/pkg/py3.*/linux.txt\n - requirements/static/pkg/py3.*/freebsd.txt\n - requirements/static/pkg/py3.*/windows.txt\n test_requirements:\n - added|modified: &test_requirements\n - requirements/static/ci/py3.*/darwin.txt\n - requirements/static/ci/py3.*/linux.txt\n - requirements/static/ci/py3.*/freebsd.txt\n - requirements/static/ci/py3.*/windows.txt\n - requirements/static/ci/py3.*/darwin-crypto.txt\n - requirements/static/ci/py3.*/linux-crypto.txt\n - requirements/static/ci/py3.*/freebsd-crypto.txt\n - requirements/static/ci/py3.*/windows-crypto.txt\n deleted:\n - deleted:\n - '**'\n docs:\n - added|modified:\n - doc/**\n - .github/workflows/build-docs.yml\n - *doc_requirements\n workflows:\n - added|modified:\n - cicd/shared-gh-workflows-context.yml\n - .github/actions/**/action.yml\n - .github/workflows/*.yml\n - .github/workflows/templates/*.yml.jinja2\n - tools/precommit/workflows.py\n salt:\n - added|modified: &salt_added_modified\n - setup.py\n - noxfile.py\n - salt/**/*.py\n - tasks/**/*.py\n - tools/**/*.py\n tests:\n - added|modified: &tests_added_modified\n - tests/**/*.py\n lint:\n - added|modified:\n - .pylintrc\n - *lint_requirements\n golden_images:\n - added|modified:\n - cicd/golden-images.json\n pkg_tests:\n - added|modified: &pkg_tests_added_modified\n - pkg/**\n - *pkg_requirements\n - *salt_added_modified\n nsis_tests:\n - added|modified: &nsis_tests\n - pkg/windows/nsis/**\n testrun:\n - added|modified:\n - *pkg_requirements\n - *test_requirements\n - *salt_added_modified\n - *tests_added_modified\n - *pkg_tests_added_modified\n\n - name: Set up Python 3.10\n uses: actions/setup-python@v5\n with:\n python-version: "3.10"\n\n - name: Setup Python Tools Scripts\n uses: ./.github/actions/setup-python-tools-scripts\n with:\n cache-prefix: ${{ env.CACHE_SEED }}\n\n - name: Pretty Print The GH Actions Event\n run:\n tools ci print-gh-event\n\n - name: Set Cache Seed Output\n id: set-cache-seed\n run: |\n tools ci define-cache-seed ${{ env.CACHE_SEED }}\n\n - name: Setup Salt Version\n id: setup-salt-version\n uses: ./.github/actions/setup-salt-version\n with:\n salt-version: ""\n validate-version: true\n\n - name: Get Hash For Nox Tarball Cache\n id: nox-archive-hash\n run: |\n echo "nox-archive-hash=${{ hashFiles('requirements/**/*.txt', 'cicd/golden-images.json', 'noxfile.py', 'pkg/common/env-cleanup-rules.yml', '.github/workflows/build-deps-ci-action.yml') }}" | tee -a "$GITHUB_OUTPUT"\n\n - name: Write Changed Files To A Local File\n run:\n echo '${{ toJSON(steps.changed-files.outputs) }}' > changed-files.json\n\n - name: Check Local Changed Files Contents\n if: ${{ github.event_name == 'pull_request' }}\n run:\n cat changed-files.json\n\n - name: Process Changed Files\n id: process-changed-files\n run: |\n tools ci process-changed-files ${{ github.event_name }} changed-files.json\n\n - name: Check Collected Changed Files\n if: ${{ github.event_name == 'pull_request' }}\n run: |\n echo '${{ steps.process-changed-files.outputs.changed-files }}' | jq -C '.'\n\n - name: Get Salt Releases\n id: get-salt-releases\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n run: |\n tools ci get-releases\n\n - name: Get Latest Salt Releases for Testing\n id: get-testing-releases\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n run: |\n tools ci get-testing-releases ${{ join(fromJSON(steps.get-salt-releases.outputs.releases), ' ') }} --salt-version ${{ steps.setup-salt-version.outputs.salt-version }}\n\n - name: Define workflow config\n id: workflow-config\n run: |\n tools ci workflow-config ${{ steps.setup-salt-version.outputs.salt-version }} ${{ github.event_name }} changed-files.json\n\n - name: Check Contents of generated testrun-changed-files.txt\n if: ${{ fromJSON(steps.workflow-config.outputs.config)['testrun']['type'] != 'full' }}\n run: |\n cat testrun-changed-files.txt || true\n\n - name: Upload testrun-changed-files.txt\n if: ${{ fromJSON(steps.workflow-config.outputs.config)['testrun']['type'] != 'full' }}\n uses: actions/upload-artifact@v4\n with:\n name: testrun-changed-files.txt\n path: testrun-changed-files.txt\n\n - name: Get Release Changelog Target\n id: get-release-changelog-target\n run: |\n tools ci get-release-changelog-target ${{ github.event_name }}\n\n\n pre-commit:\n name: Pre-Commit\n uses: ./.github/workflows/pre-commit-action.yml\n needs:\n - prepare-workflow\n with:\n cache-seed: ${{ needs.prepare-workflow.outputs.cache-seed }}\n changed-files: ${{ needs.prepare-workflow.outputs.changed-files }}\n pre-commit-version: "3.0.4"\n\n lint:\n name: Lint\n if: ${{ !cancelled() && fromJSON(needs.prepare-workflow.outputs.config)['jobs']['lint'] }}\n uses: ./.github/workflows/lint-action.yml\n needs:\n - prepare-workflow\n with:\n changed-files: ${{ needs.prepare-workflow.outputs.changed-files }}\n nsis-tests:\n name: NSIS Tests\n uses: ./.github/workflows/nsis-tests.yml\n needs:\n - prepare-workflow\n with:\n changed-files: ${{ needs.prepare-workflow.outputs.changed-files }}\n\n prepare-release:\n name: "Prepare Release: ${{ needs.prepare-workflow.outputs.salt-version }}"\n runs-on:\n - ubuntu-22.04\n if: ${{ !cancelled() && fromJSON(needs.prepare-workflow.outputs.config)['jobs']['prepare-release'] }}\n needs:\n - prepare-workflow\n steps:\n - uses: actions/checkout@v4\n\n - name: Set up Python 3.10\n uses: actions/setup-python@v5\n with:\n python-version: "3.10"\n\n - name: Setup Python Tools Scripts\n uses: ./.github/actions/setup-python-tools-scripts\n with:\n cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}-changelog\n\n - name: Setup Salt Version\n id: setup-salt-version\n uses: ./.github/actions/setup-salt-version\n with:\n salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"\n\n - name: Update Debian changelog\n shell: bash\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n run: |\n tools changelog update-deb --draft\n tools changelog update-deb\n\n - name: Update RPM changelog\n shell: bash\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n run: |\n tools changelog update-rpm --draft\n tools changelog update-rpm\n\n - name: Create Release Notes Template\n shell: bash\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n run: |\n if [ "${{ needs.prepare-workflow.outputs.release-changelog-target }}" == "next-major-release" ]; then\n tools changelog update-release-notes --next-release --template-only\n else\n tools changelog update-release-notes --template-only\n fi\n\n - name: Update Release Notes\n shell: bash\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n run: |\n if [ "${{ needs.prepare-workflow.outputs.release-changelog-target }}" == "next-major-release" ]; then\n tools changelog update-release-notes --draft --next-release\n tools changelog update-release-notes --next-release\n else\n tools changelog update-release-notes --draft\n tools changelog update-release-notes\n fi\n\n - name: Generate MAN Pages\n shell: bash\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n env:\n LATEST_RELEASE: "${{ needs.prepare-workflow.outputs.salt-version }}"\n SALT_ON_SALTSTACK: "1"\n run: |\n tools docs man\n\n - name: Update Changelog\n shell: bash\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n run: |\n tools changelog update-changelog-md --draft\n tools changelog update-changelog-md\n\n - name: Show Changes Diff\n shell: bash\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n run: |\n git diff --color\n\n - name: Configure Git\n shell: bash\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n run: |\n git config --global user.name "Salt Project Packaging"\n git config --global user.email saltproject-packaging@vmware.com\n\n - name: Setup Pre-Commit\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n uses: ./.github/actions/setup-pre-commit\n with:\n version: "3.0.4"\n cache-seed: ${{ needs.prepare-workflow.outputs.cache-seed }}\n\n - name: Commit Changes\n shell: bash\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n env:\n SKIP: lint-salt,lint-tests\n PRE_COMMIT_COLOR: always\n run: |\n # Run it twice so that pre-commit can fix anything that can be automatically fixed.\n git commit -am "Release v${{ needs.prepare-workflow.outputs.salt-version }}" || \\n git commit -am "Release v${{ needs.prepare-workflow.outputs.salt-version }}"\n\n - name: Create release changes patch\n shell: bash\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n run: |\n git format-patch --keep-subject --binary --stdout HEAD^ > salt-${{ needs.prepare-workflow.outputs.salt-version }}.patch\n\n - name: Upload Changes Diff Artifact\n uses: actions/upload-artifact@v4\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n with:\n name: salt-${{ needs.prepare-workflow.outputs.salt-version }}.patch\n path: salt-${{ needs.prepare-workflow.outputs.salt-version }}.patch\n retention-days: 7\n if-no-files-found: error\n\n build-docs:\n name: Documentation\n if: ${{ !cancelled() && fromJSON(needs.prepare-workflow.outputs.config)['jobs']['build-docs'] }}\n needs:\n - prepare-workflow\n - build-source-tarball\n uses: ./.github/workflows/build-docs.yml\n with:\n cache-seed: ${{ needs.prepare-workflow.outputs.cache-seed }}\n salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"\n\n build-source-tarball:\n name: Build Source Tarball\n if: ${{ !cancelled() && fromJSON(needs.prepare-workflow.outputs.config)['jobs']['build-source-tarball'] }}\n needs:\n - prepare-workflow\n - prepare-release\n runs-on: ubuntu-22.04\n steps:\n - uses: actions/checkout@v4\n\n - name: Set up Python 3.10\n uses: actions/setup-python@v5\n with:\n python-version: "3.10"\n\n - name: Setup Python Tools Scripts\n uses: ./.github/actions/setup-python-tools-scripts\n with:\n cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}-build\n\n - name: Setup Salt Version\n id: setup-salt-version\n uses: ./.github/actions/setup-salt-version\n with:\n salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"\n\n - name: Build Source Tarball\n uses: ./.github/actions/build-source-tarball\n with:\n salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"\n\n build-salt-onedir:\n name: Build Salt Onedir\n if: ${{ !cancelled() && fromJSON(needs.prepare-workflow.outputs.config)['jobs']['build-salt-onedir'] }}\n needs:\n - prepare-workflow\n - build-source-tarball\n uses: ./.github/workflows/build-salt-onedir.yml\n with:\n cache-seed: ${{ needs.prepare-workflow.outputs.cache-seed }}\n salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"\n relenv-version: "0.18.1"\n python-version: "3.10.16"\n matrix: ${{ toJSON(fromJSON(needs.prepare-workflow.outputs.config)['build-matrix']) }}\n linux_arm_runner: ${{ fromJSON(needs.prepare-workflow.outputs.config)['linux_arm_runner'] }}\n\n build-pkgs-onedir:\n name: Build Packages\n if: ${{ fromJSON(needs.prepare-workflow.outputs.config)['jobs']['build-pkgs'] }}\n needs:\n - prepare-workflow\n - build-salt-onedir\n uses: ./.github/workflows/build-packages.yml\n with:\n salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"\n cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}\n relenv-version: "0.18.1"\n python-version: "3.10.16"\n source: "onedir"\n matrix: ${{ toJSON(fromJSON(needs.prepare-workflow.outputs.config)['build-matrix']) }}\n linux_arm_runner: ${{ fromJSON(needs.prepare-workflow.outputs.config)['linux_arm_runner'] }}\n build-ci-deps:\n name: CI Deps\n if: ${{ fromJSON(needs.prepare-workflow.outputs.config)['jobs']['build-deps-ci'] }}\n needs:\n - prepare-workflow\n - build-salt-onedir\n uses: ./.github/workflows/build-deps-ci-action.yml\n with:\n nox-session: ci-test-onedir\n nox-version: 2022.8.7\n python-version: "3.10"\n salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"\n cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}|3.10.16\n nox-archive-hash: "${{ needs.prepare-workflow.outputs.nox-archive-hash }}"\n matrix: ${{ toJSON(fromJSON(needs.prepare-workflow.outputs.config)['build-matrix']) }}\n linux_arm_runner: ${{ fromJSON(needs.prepare-workflow.outputs.config)['linux_arm_runner'] }}\n test-packages:\n name: Test Package\n if: ${{ fromJSON(needs.prepare-workflow.outputs.config)['jobs']['test-pkg'] }}\n needs:\n - prepare-workflow\n - build-pkgs-onedir\n - build-ci-deps\n uses: ./.github/workflows/test-packages-action.yml\n with:\n nox-session: ci-test-onedir\n salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"\n nox-version: 2022.8.7\n python-version: "3.10"\n cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}|3.10.16\n skip-code-coverage: true\n testing-releases: ${{ needs.prepare-workflow.outputs.testing-releases }}\n matrix: ${{ toJSON(fromJSON(needs.prepare-workflow.outputs.config)['pkg-test-matrix']) }}\n linux_arm_runner: ${{ fromJSON(needs.prepare-workflow.outputs.config)['linux_arm_runner'] }}\n test:\n name: Test Salt\n if: ${{ fromJSON(needs.prepare-workflow.outputs.config)['jobs']['test'] }}\n needs:\n - prepare-workflow\n - build-ci-deps\n uses: ./.github/workflows/test-action.yml\n with:\n nox-session: ci-test-onedir\n nox-version: 2022.8.7\n python-version: "3.10"\n testrun: ${{ toJSON(fromJSON(needs.prepare-workflow.outputs.config)['testrun']) }}\n salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"\n cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}|3.10.16\n skip-code-coverage: true\n workflow-slug: scheduled\n default-timeout: 360\n matrix: ${{ toJSON(fromJSON(needs.prepare-workflow.outputs.config)['test-matrix']) }}\n linux_arm_runner: ${{ fromJSON(needs.prepare-workflow.outputs.config)['linux_arm_runner'] }}\n set-pipeline-exit-status:\n # This step is just so we can make github require this step, to pass checks\n # on a pull request instead of requiring all\n name: Set the ${{ github.workflow }} Pipeline Exit Status\n if: ${{ !cancelled() && always() }}\n runs-on: ubuntu-22.04\n needs:\n - workflow-requirements\n - trigger-branch-scheduled-builds\n - prepare-workflow\n - pre-commit\n - lint\n - nsis-tests\n - build-docs\n - build-salt-onedir\n - build-ci-deps\n - test-packages\n - test\n steps:\n - name: Get workflow information\n id: get-workflow-info\n uses: im-open/workflow-conclusion@v2\n\n - name: Set Pipeline Exit Status\n shell: bash\n run: |\n if [ "${{ steps.get-workflow-info.outputs.workflow_conclusion }}" != "success" ]; then\n exit 1\n else\n exit 0\n fi\n
dataset_sample\yaml\saltstack_salt\.github\workflows\scheduled.yml
scheduled.yml
YAML
21,997
0.95
0.065292
0.011429
python-kit
889
2025-04-09T23:45:32.350132
Apache-2.0
false
394cb8dc7a7ab4796969442756bdf1d9
name: SSH Debug\nrun-name: "SSH Debug ${{ inputs.runner }}"\non:\n workflow_dispatch:\n inputs:\n runner:\n type: string\n required: True\n description: The runner to start a tunnel on.\n offer:\n type: string\n required: True\n description: SDP Offer\n public_key:\n type: string\n required: True\n description: Your public key for ssh access.\n debug:\n required: false\n type: boolean\n default: false\n description: Run sshd with debug enabled.\n\n\n\njobs:\n debug:\n runs-on: ${{ inputs.runner }}\n if: ${{ inputs.runner }}\n environment: ci\n steps:\n\n - name: Checkout Source Code\n uses: actions/checkout@v4\n\n - name: Set up Python 3.10\n uses: actions/setup-python@v5\n with:\n python-version: "3.10"\n\n - name: Setup Python Tools Scripts\n uses: ./.github/actions/setup-python-tools-scripts\n with:\n cache-prefix: ssh-debug\n\n - name: Install Nox\n run: |\n python3 -m pip install 'nox==2022.8.7'\n env:\n PIP_INDEX_URL: https://pypi.org/simple\n\n - uses: ./.github/actions/ssh-tunnel\n with:\n public_key: ${{ inputs.public_key }}\n offer: ${{ inputs.offer }}\n debug: ${{ inputs.debug }}\n
dataset_sample\yaml\saltstack_salt\.github\workflows\ssh-debug.yml
ssh-debug.yml
YAML
1,325
0.95
0.035714
0
node-utils
31
2023-08-21T07:44:46.469077
MIT
false
933dbbeeb7a9bc5f2fbdb76e0c92c446
# Do not edit these workflows directly as the changes made will be overwritten.\n# Instead, edit the template '.github/workflows/templates/staging.yml.jinja'\n---\n\nname: Stage Release\nrun-name: "Stage Release (branch: ${{ github.ref_name }}; version: ${{ inputs.salt-version }})"\n\non:\n workflow_dispatch:\n inputs:\n salt-version:\n type: string\n required: true\n description: >\n The Salt version to set prior to building packages and staging the release.\n (DO NOT prefix the version with a v, ie, 3006.0 NOT v3006.0).\n sign-windows-packages:\n type: boolean\n default: false\n description: Sign Windows Packages\n skip-test-pypi-publish:\n type: boolean\n default: false\n description: Skip publishing the source package to Test PyPi(For example, CVE releases)\n skip-salt-test-suite:\n type: boolean\n default: false\n description: Skip running the Salt test suite.\n skip-salt-pkg-test-suite:\n type: boolean\n default: false\n description: Skip running the Salt packages test suite.\n skip-salt-pkg-download-test-suite:\n type: boolean\n default: false\n description: Skip running the Salt packages download test suite.\n\nenv:\n COLUMNS: 190\n CACHE_SEED: SEED-1 # Bump the number to invalidate all caches\n RELENV_DATA: "${{ github.workspace }}/.relenv"\n PIP_DISABLE_PIP_VERSION_CHECK: "1"\n RAISE_DEPRECATIONS_RUNTIME_ERRORS: "1"\n\npermissions:\n contents: read # for dorny/paths-filter to fetch a list of changed files\n pull-requests: read # for dorny/paths-filter to read pull requests\n actions: read # for technote-space/workflow-conclusion-action to get the job statuses\n\n#concurrency:\n# group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.repository }}\n# cancel-in-progress: false\n\njobs:\n\n check-requirements:\n name: Check Requirements\n runs-on: ubuntu-22.04\n environment: staging-check\n steps:\n - name: Check For Admin Permission\n uses: actions-cool/check-user-permission@v2\n with:\n require: admin\n username: ${{ github.triggering_actor }}\n\n prepare-workflow:\n name: Prepare Workflow Run\n runs-on: ubuntu-22.04\n environment: ci\n needs:\n - check-requirements\n outputs:\n changed-files: ${{ steps.process-changed-files.outputs.changed-files }}\n salt-version: ${{ steps.setup-salt-version.outputs.salt-version }}\n cache-seed: ${{ steps.set-cache-seed.outputs.cache-seed }}\n latest-release: ${{ steps.get-salt-releases.outputs.latest-release }}\n releases: ${{ steps.get-salt-releases.outputs.releases }}\n release-changelog-target: ${{ steps.get-release-changelog-target.outputs.release-changelog-target }}\n testing-releases: ${{ steps.get-testing-releases.outputs.testing-releases }}\n nox-archive-hash: ${{ steps.nox-archive-hash.outputs.nox-archive-hash }}\n config: ${{ steps.workflow-config.outputs.config }}\n env:\n LINUX_ARM_RUNNER: ${{ vars.LINUX_ARM_RUNNER }}\n FULL_TESTRUN_SLUGS: ${{ vars.FULL_TESTRUN_SLUGS }}\n PR_TESTRUN_SLUGS: ${{ vars.PR_TESTRUN_SLUGS }}\n steps:\n - uses: actions/checkout@v4\n with:\n fetch-depth: 0 # Full clone to also get the tags to get the right salt version\n\n - name: Get Changed Files\n if: ${{ github.event_name == 'pull_request'}}\n id: changed-files\n uses: dorny/paths-filter@v3\n with:\n token: ${{ github.token }}\n list-files: json\n filters: |\n repo:\n - added|modified:\n - '**'\n doc-requirements:\n - added|modified: &doc_requirements\n - requirements/static/ci/py3.*/docs.txt\n lint-requirements:\n - added|modified: &lint_requirements\n - requirements/static/ci/py3.*/lint.txt\n pkg_requirements:\n - added|modified: &pkg_requirements\n - requirements/static/pkg/py3.*/darwin.txt\n - requirements/static/pkg/py3.*/linux.txt\n - requirements/static/pkg/py3.*/freebsd.txt\n - requirements/static/pkg/py3.*/windows.txt\n test_requirements:\n - added|modified: &test_requirements\n - requirements/static/ci/py3.*/darwin.txt\n - requirements/static/ci/py3.*/linux.txt\n - requirements/static/ci/py3.*/freebsd.txt\n - requirements/static/ci/py3.*/windows.txt\n - requirements/static/ci/py3.*/darwin-crypto.txt\n - requirements/static/ci/py3.*/linux-crypto.txt\n - requirements/static/ci/py3.*/freebsd-crypto.txt\n - requirements/static/ci/py3.*/windows-crypto.txt\n deleted:\n - deleted:\n - '**'\n docs:\n - added|modified:\n - doc/**\n - .github/workflows/build-docs.yml\n - *doc_requirements\n workflows:\n - added|modified:\n - cicd/shared-gh-workflows-context.yml\n - .github/actions/**/action.yml\n - .github/workflows/*.yml\n - .github/workflows/templates/*.yml.jinja2\n - tools/precommit/workflows.py\n salt:\n - added|modified: &salt_added_modified\n - setup.py\n - noxfile.py\n - salt/**/*.py\n - tasks/**/*.py\n - tools/**/*.py\n tests:\n - added|modified: &tests_added_modified\n - tests/**/*.py\n lint:\n - added|modified:\n - .pylintrc\n - *lint_requirements\n golden_images:\n - added|modified:\n - cicd/golden-images.json\n pkg_tests:\n - added|modified: &pkg_tests_added_modified\n - pkg/**\n - *pkg_requirements\n - *salt_added_modified\n nsis_tests:\n - added|modified: &nsis_tests\n - pkg/windows/nsis/**\n testrun:\n - added|modified:\n - *pkg_requirements\n - *test_requirements\n - *salt_added_modified\n - *tests_added_modified\n - *pkg_tests_added_modified\n\n - name: Set up Python 3.10\n uses: actions/setup-python@v5\n with:\n python-version: "3.10"\n\n - name: Setup Python Tools Scripts\n uses: ./.github/actions/setup-python-tools-scripts\n with:\n cache-prefix: ${{ env.CACHE_SEED }}\n\n - name: Pretty Print The GH Actions Event\n run:\n tools ci print-gh-event\n\n - name: Set Cache Seed Output\n id: set-cache-seed\n run: |\n tools ci define-cache-seed ${{ env.CACHE_SEED }}\n\n - name: Setup Salt Version\n id: setup-salt-version\n uses: ./.github/actions/setup-salt-version\n with:\n salt-version: "${{ inputs.salt-version }}"\n validate-version: true\n\n - name: Get Hash For Nox Tarball Cache\n id: nox-archive-hash\n run: |\n echo "nox-archive-hash=${{ hashFiles('requirements/**/*.txt', 'cicd/golden-images.json', 'noxfile.py', 'pkg/common/env-cleanup-rules.yml', '.github/workflows/build-deps-ci-action.yml') }}" | tee -a "$GITHUB_OUTPUT"\n\n - name: Check Existing Releases\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n run: |\n tools pkg repo confirm-unreleased --repository ${{ github.repository }} ${{ steps.setup-salt-version.outputs.salt-version }}\n if [ "${{ github.event.repository.private }}" = "true" ]; then\n tools pkg repo confirm-unreleased --repository saltstack/salt ${{ steps.setup-salt-version.outputs.salt-version }}\n fi\n\n - name: Write Changed Files To A Local File\n run:\n echo '${{ toJSON(steps.changed-files.outputs) }}' > changed-files.json\n\n - name: Check Local Changed Files Contents\n if: ${{ github.event_name == 'pull_request' }}\n run:\n cat changed-files.json\n\n - name: Process Changed Files\n id: process-changed-files\n run: |\n tools ci process-changed-files ${{ github.event_name }} changed-files.json\n\n - name: Check Collected Changed Files\n if: ${{ github.event_name == 'pull_request' }}\n run: |\n echo '${{ steps.process-changed-files.outputs.changed-files }}' | jq -C '.'\n\n - name: Get Salt Releases\n id: get-salt-releases\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n run: |\n tools ci get-releases\n\n - name: Get Latest Salt Releases for Testing\n id: get-testing-releases\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n run: |\n tools ci get-testing-releases ${{ join(fromJSON(steps.get-salt-releases.outputs.releases), ' ') }} --salt-version ${{ steps.setup-salt-version.outputs.salt-version }}\n\n - name: Define workflow config\n id: workflow-config\n run: |\n tools ci workflow-config${{ inputs.skip-salt-test-suite && ' --skip-tests' || '' }}${{ inputs.skip-salt-pkg-test-suite && ' --skip-pkg-tests' || '' }}${{ inputs.skip-salt-pkg-download-test-suite && ' --skip-pkg-download-tests' || '' }} ${{ steps.setup-salt-version.outputs.salt-version }} ${{ github.event_name }} changed-files.json\n\n - name: Check Contents of generated testrun-changed-files.txt\n if: ${{ fromJSON(steps.workflow-config.outputs.config)['testrun']['type'] != 'full' }}\n run: |\n cat testrun-changed-files.txt || true\n\n - name: Upload testrun-changed-files.txt\n if: ${{ fromJSON(steps.workflow-config.outputs.config)['testrun']['type'] != 'full' }}\n uses: actions/upload-artifact@v4\n with:\n name: testrun-changed-files.txt\n path: testrun-changed-files.txt\n\n - name: Get Release Changelog Target\n id: get-release-changelog-target\n run: |\n tools ci get-release-changelog-target ${{ github.event_name }}\n\n\n pre-commit:\n name: Pre-Commit\n uses: ./.github/workflows/pre-commit-action.yml\n needs:\n - prepare-workflow\n with:\n cache-seed: ${{ needs.prepare-workflow.outputs.cache-seed }}\n changed-files: ${{ needs.prepare-workflow.outputs.changed-files }}\n pre-commit-version: "3.0.4"\n\n lint:\n name: Lint\n if: ${{ !cancelled() && fromJSON(needs.prepare-workflow.outputs.config)['jobs']['lint'] }}\n uses: ./.github/workflows/lint-action.yml\n needs:\n - prepare-workflow\n with:\n changed-files: ${{ needs.prepare-workflow.outputs.changed-files }}\n nsis-tests:\n name: NSIS Tests\n uses: ./.github/workflows/nsis-tests.yml\n needs:\n - prepare-workflow\n with:\n changed-files: ${{ needs.prepare-workflow.outputs.changed-files }}\n\n prepare-release:\n name: "Prepare Release: ${{ needs.prepare-workflow.outputs.salt-version }}"\n runs-on:\n - ubuntu-22.04\n if: ${{ !cancelled() && fromJSON(needs.prepare-workflow.outputs.config)['jobs']['prepare-release'] }}\n needs:\n - prepare-workflow\n steps:\n - uses: actions/checkout@v4\n\n - name: Set up Python 3.10\n uses: actions/setup-python@v5\n with:\n python-version: "3.10"\n\n - name: Setup Python Tools Scripts\n uses: ./.github/actions/setup-python-tools-scripts\n with:\n cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}-changelog\n\n - name: Setup Salt Version\n id: setup-salt-version\n uses: ./.github/actions/setup-salt-version\n with:\n salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"\n release: true\n\n - name: Update Debian changelog\n shell: bash\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n run: |\n tools changelog update-deb --draft\n tools changelog update-deb\n\n - name: Update RPM changelog\n shell: bash\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n run: |\n tools changelog update-rpm --draft\n tools changelog update-rpm\n\n - name: Create Release Notes Template\n shell: bash\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n run: |\n if [ "${{ needs.prepare-workflow.outputs.release-changelog-target }}" == "next-major-release" ]; then\n tools changelog update-release-notes --next-release --template-only\n else\n tools changelog update-release-notes --template-only\n fi\n\n - name: Update Release Notes\n shell: bash\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n run: |\n if [ "${{ needs.prepare-workflow.outputs.release-changelog-target }}" == "next-major-release" ]; then\n tools changelog update-release-notes --draft --release --next-release\n tools changelog update-release-notes --release --next-release\n else\n tools changelog update-release-notes --draft --release\n tools changelog update-release-notes --release\n fi\n\n - name: Generate MAN Pages\n shell: bash\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n env:\n LATEST_RELEASE: "${{ needs.prepare-workflow.outputs.salt-version }}"\n SALT_ON_SALTSTACK: "1"\n run: |\n tools docs man\n\n - name: Update Changelog\n shell: bash\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n run: |\n tools changelog update-changelog-md --draft\n tools changelog update-changelog-md\n\n - name: Show Changes Diff\n shell: bash\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n run: |\n git diff --color\n\n - name: Configure Git\n shell: bash\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n run: |\n git config --global user.name "Salt Project Packaging"\n git config --global user.email saltproject-packaging@vmware.com\n\n - name: Setup Pre-Commit\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n uses: ./.github/actions/setup-pre-commit\n with:\n version: "3.0.4"\n cache-seed: ${{ needs.prepare-workflow.outputs.cache-seed }}\n\n - name: Commit Changes\n shell: bash\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n env:\n SKIP: lint-salt,lint-tests\n PRE_COMMIT_COLOR: always\n run: |\n # Run it twice so that pre-commit can fix anything that can be automatically fixed.\n git commit -am "Release v${{ needs.prepare-workflow.outputs.salt-version }}" || \\n git commit -am "Release v${{ needs.prepare-workflow.outputs.salt-version }}"\n\n - name: Create release changes patch\n shell: bash\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n run: |\n git format-patch --keep-subject --binary --stdout HEAD^ > salt-${{ needs.prepare-workflow.outputs.salt-version }}.patch\n\n - name: Upload Changes Diff Artifact\n uses: actions/upload-artifact@v4\n if: ${{ startsWith(github.event.ref, 'refs/tags') == false }}\n with:\n name: salt-${{ needs.prepare-workflow.outputs.salt-version }}.patch\n path: salt-${{ needs.prepare-workflow.outputs.salt-version }}.patch\n retention-days: 7\n if-no-files-found: error\n\n build-docs:\n name: Documentation\n if: ${{ !cancelled() && fromJSON(needs.prepare-workflow.outputs.config)['jobs']['build-docs'] }}\n needs:\n - prepare-workflow\n - build-source-tarball\n uses: ./.github/workflows/build-docs.yml\n with:\n cache-seed: ${{ needs.prepare-workflow.outputs.cache-seed }}\n salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"\n\n build-source-tarball:\n name: Build Source Tarball\n if: ${{ !cancelled() && fromJSON(needs.prepare-workflow.outputs.config)['jobs']['build-source-tarball'] }}\n needs:\n - prepare-workflow\n - prepare-release\n runs-on: ubuntu-22.04\n steps:\n - uses: actions/checkout@v4\n\n - name: Set up Python 3.10\n uses: actions/setup-python@v5\n with:\n python-version: "3.10"\n\n - name: Setup Python Tools Scripts\n uses: ./.github/actions/setup-python-tools-scripts\n with:\n cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}-build\n\n - name: Setup Salt Version\n id: setup-salt-version\n uses: ./.github/actions/setup-salt-version\n with:\n salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"\n\n - name: Build Source Tarball\n uses: ./.github/actions/build-source-tarball\n with:\n salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"\n\n build-salt-onedir:\n name: Build Salt Onedir\n if: ${{ !cancelled() && fromJSON(needs.prepare-workflow.outputs.config)['jobs']['build-salt-onedir'] }}\n needs:\n - prepare-workflow\n - build-source-tarball\n uses: ./.github/workflows/build-salt-onedir.yml\n with:\n cache-seed: ${{ needs.prepare-workflow.outputs.cache-seed }}\n salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"\n relenv-version: "0.18.1"\n python-version: "3.10.16"\n matrix: ${{ toJSON(fromJSON(needs.prepare-workflow.outputs.config)['build-matrix']) }}\n linux_arm_runner: ${{ fromJSON(needs.prepare-workflow.outputs.config)['linux_arm_runner'] }}\n\n build-pkgs-onedir:\n name: Build Packages\n if: ${{ fromJSON(needs.prepare-workflow.outputs.config)['jobs']['build-pkgs'] }}\n needs:\n - prepare-workflow\n - build-salt-onedir\n uses: ./.github/workflows/build-packages.yml\n with:\n salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"\n cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}\n relenv-version: "0.18.1"\n python-version: "3.10.16"\n source: "onedir"\n matrix: ${{ toJSON(fromJSON(needs.prepare-workflow.outputs.config)['build-matrix']) }}\n linux_arm_runner: ${{ fromJSON(needs.prepare-workflow.outputs.config)['linux_arm_runner'] }}\n environment: staging\n sign-macos-packages: false\n sign-windows-packages: ${{ inputs.sign-windows-packages }}\n secrets: inherit\n\n build-pkgs-src:\n name: Build Packages\n if: ${{ fromJSON(needs.prepare-workflow.outputs.config)['jobs']['build-pkgs'] }}\n needs:\n - prepare-workflow\n - build-salt-onedir\n uses: ./.github/workflows/build-packages.yml\n with:\n salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"\n cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}\n relenv-version: "0.18.1"\n python-version: "3.10.16"\n source: "src"\n matrix: ${{ toJSON(fromJSON(needs.prepare-workflow.outputs.config)['build-matrix']) }}\n linux_arm_runner: ${{ fromJSON(needs.prepare-workflow.outputs.config)['linux_arm_runner'] }}\n environment: staging\n sign-macos-packages: false\n sign-windows-packages: ${{ inputs.sign-windows-packages }}\n secrets: inherit\n build-ci-deps:\n name: CI Deps\n if: ${{ fromJSON(needs.prepare-workflow.outputs.config)['jobs']['build-deps-ci'] }}\n needs:\n - prepare-workflow\n - build-salt-onedir\n uses: ./.github/workflows/build-deps-ci-action.yml\n with:\n nox-session: ci-test-onedir\n nox-version: 2022.8.7\n python-version: "3.10"\n salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"\n cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}|3.10.16\n nox-archive-hash: "${{ needs.prepare-workflow.outputs.nox-archive-hash }}"\n matrix: ${{ toJSON(fromJSON(needs.prepare-workflow.outputs.config)['build-matrix']) }}\n linux_arm_runner: ${{ fromJSON(needs.prepare-workflow.outputs.config)['linux_arm_runner'] }}\n test-packages:\n name: Test Package\n if: ${{ fromJSON(needs.prepare-workflow.outputs.config)['jobs']['test-pkg'] }}\n needs:\n - prepare-workflow\n - build-pkgs-onedir\n - build-ci-deps\n uses: ./.github/workflows/test-packages-action.yml\n with:\n nox-session: ci-test-onedir\n salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"\n nox-version: 2022.8.7\n python-version: "3.10"\n cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}|3.10.16\n skip-code-coverage: true\n testing-releases: ${{ needs.prepare-workflow.outputs.testing-releases }}\n matrix: ${{ toJSON(fromJSON(needs.prepare-workflow.outputs.config)['pkg-test-matrix']) }}\n linux_arm_runner: ${{ fromJSON(needs.prepare-workflow.outputs.config)['linux_arm_runner'] }}\n test:\n name: Test Salt\n if: ${{ fromJSON(needs.prepare-workflow.outputs.config)['jobs']['test'] }}\n needs:\n - prepare-workflow\n - build-ci-deps\n uses: ./.github/workflows/test-action.yml\n with:\n nox-session: ci-test-onedir\n nox-version: 2022.8.7\n python-version: "3.10"\n testrun: ${{ toJSON(fromJSON(needs.prepare-workflow.outputs.config)['testrun']) }}\n salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"\n cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}|3.10.16\n skip-code-coverage: true\n workflow-slug: staging\n default-timeout: 180\n matrix: ${{ toJSON(fromJSON(needs.prepare-workflow.outputs.config)['test-matrix']) }}\n linux_arm_runner: ${{ fromJSON(needs.prepare-workflow.outputs.config)['linux_arm_runner'] }}\n\n upload-release-artifacts:\n name: Upload Release Artifacts\n needs:\n - prepare-workflow\n - build-docs\n environment: staging\n runs-on:\n - ubuntu-22.04\n steps:\n - uses: actions/checkout@v4\n\n - name: Setup Python Tools Scripts\n uses: ./.github/actions/setup-python-tools-scripts\n with:\n cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}\n\n - name: Download Release Patch\n uses: actions/download-artifact@v4\n with:\n name: salt-${{ needs.prepare-workflow.outputs.salt-version }}.patch\n path: artifacts/release\n\n - name: Download Release Documentation (HTML)\n uses: actions/download-artifact@v4\n with:\n name: salt-${{ needs.prepare-workflow.outputs.salt-version }}-docs-html.tar.xz\n path: artifacts/release\n\n - name: Show Release Artifacts\n run: |\n tree -a artifacts/release\n\n publish-pypi:\n name: Publish to PyPi(test)\n if: ${{ !cancelled() && inputs.skip-test-pypi-publish != true && github.event.repository.fork != true }}\n needs:\n - prepare-workflow\n - upload-release-artifacts\n - build-ci-deps\n environment: staging\n runs-on:\n - ubuntu-22.04\n steps:\n - uses: actions/checkout@v4\n\n - name: Setup Python Tools Scripts\n uses: ./.github/actions/setup-python-tools-scripts\n with:\n cache-prefix: ${{ needs.prepare-workflow.outputs.cache-seed }}\n\n - name: Setup GnuPG\n run: |\n sudo install -d -m 0700 -o "$(id -u)" -g "$(id -g)" /run/gpg\n GNUPGHOME="$(mktemp -d -p /run/gpg)"\n echo "GNUPGHOME=${GNUPGHOME}" >> "$GITHUB_ENV"\n cat <<EOF > "${GNUPGHOME}/gpg.conf"\n batch\n no-tty\n pinentry-mode loopback\n EOF\n\n - name: Get Secrets\n id: get-secrets\n env:\n SECRETS_KEY: ${{ secrets.SECRETS_KEY }}\n run: |\n SECRETS_KEY_FILE=$(mktemp /tmp/output.XXXXXXXXXX)\n echo "$SECRETS_KEY" > "$SECRETS_KEY_FILE"\n TWINE_PASSWORD=$(aws --region us-west-2 secretsmanager get-secret-value --secret-id /cmbu-saltstack/publishing/publish-test-pypi \\n --query SecretString --output text | jq .default_passphrase -r | base64 -d \\n | gpg --passphrase-file "$SECRETS_KEY_FILE" -d -)\n echo "::add-mask::$TWINE_PASSWORD"\n echo "twine-password=$TWINE_PASSWORD" >> "${GITHUB_OUTPUT}"\n\n - name: Download PyPi Artifacts\n uses: actions/download-artifact@v4\n with:\n name: pypi-artifacts\n path: artifacts/release\n\n - name: Publish to Test PyPi\n env:\n TWINE_PASSWORD: "${{ steps.get-secrets.outputs.twine-password }}"\n run: |\n tools pkg pypi-upload --test artifacts/release/salt-${{ needs.prepare-workflow.outputs.salt-version }}.tar.gz\n\n draft-release:\n name: Draft Github Release\n if: ${{ !cancelled() && (needs.test.result == 'success' || needs.test.result == 'skipped') &&\n (needs.test-packages.result == 'success' || needs.test-packages.result == 'skipped') &&\n needs.prepare-workflow.result == 'success' && needs.build-salt-onedir.result == 'success' &&\n needs.build-pkgs-onedir.result == 'success' && needs.pre-commit.result == 'success' }}\n needs:\n - prepare-workflow\n - pre-commit\n - build-salt-onedir\n - build-pkgs-onedir\n - test-packages\n - test\n permissions:\n contents: write\n pull-requests: read\n id-token: write\n uses: ./.github/workflows/draft-release.yml\n with:\n salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"\n matrix: ${{ toJSON(fromJSON(needs.prepare-workflow.outputs.config)['artifact-matrix']) }}\n build-matrix: ${{ toJSON(fromJSON(needs.prepare-workflow.outputs.config)['build-matrix']) }}\n set-pipeline-exit-status:\n # This step is just so we can make github require this step, to pass checks\n # on a pull request instead of requiring all\n name: Set the ${{ github.workflow }} Pipeline Exit Status\n if: ${{ !cancelled() && always() }}\n runs-on: ubuntu-22.04\n needs:\n - check-requirements\n - prepare-workflow\n - pre-commit\n - lint\n - nsis-tests\n - build-docs\n - build-salt-onedir\n - build-pkgs-src\n - upload-release-artifacts\n - publish-pypi\n - test-packages\n - test\n steps:\n - name: Get workflow information\n id: get-workflow-info\n uses: im-open/workflow-conclusion@v2\n\n - name: Set Pipeline Exit Status\n shell: bash\n run: |\n if [ "${{ steps.get-workflow-info.outputs.workflow_conclusion }}" != "success" ]; then\n exit 1\n else\n exit 0\n fi\n
dataset_sample\yaml\saltstack_salt\.github\workflows\staging.yml
staging.yml
YAML
26,662
0.95
0.055007
0.012461
vue-tools
816
2024-04-29T13:35:41.109317
MIT
false
8bf99a23a564a41b7dbfa260c6e7a1cd
---\nname: New Issues Triage Assignment\nconcurrency: 1\non:\n issues:\n types: [opened]\n\n\nenv:\n PIP_INDEX_URL: https://pypi-proxy.saltstack.net/root/local/+simple/\n PIP_EXTRA_INDEX_URL: https://pypi.org/simple\n\n\npermissions:\n contents: read\n\njobs:\n label-and-assign:\n permissions:\n actions: read # for dawidd6/action-download-artifact to query and download artifacts\n contents: read # for actions/checkout to fetch code\n issues: write\n pull-requests: read # for dawidd6/action-download-artifact to query commit hash\n name: Triage New Issue\n runs-on: ubuntu-latest\n steps:\n\n - uses: actions/checkout@v4\n\n - name: Set up Python\n uses: actions/setup-python@v5\n with:\n python-version: 3.8\n\n - name: Install Dependencies\n run: |\n pip install pygithub\n\n - name: Download last assignment cache\n continue-on-error: true\n uses: dawidd6/action-download-artifact@v8\n with:\n workflow: triage.yml\n name: last-assignment\n path: .cache\n\n - name: Label And Assign\n env:\n GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n READ_ORG_TOKEN: ${{ secrets.READ_ORG_TEAM_MEMBERS_ISSUE_TRIAGE }}\n run: |\n python .github/workflows/scripts/label-and-assign.py \\n --org ${{ github.repository_owner }} \\n --repo ${{ github.event.repository.name }} \\n --team team-triage \\n --label needs-triage \\n --issue ${{ github.event.issue.number }}\n\n - name: Upload last assignment cache\n uses: actions/upload-artifact@v4\n with:\n name: last-assignment\n path: .cache\n
dataset_sample\yaml\saltstack_salt\.github\workflows\triage.yml
triage.yml
YAML
1,703
0.8
0.047619
0
python-kit
839
2024-07-01T16:48:27.816753
Apache-2.0
false
93336dac5019600627fe3fd6f3232114
name: Workflow Finished\nrun-name: Workflow Finished ${{ github.event.workflow_run.display_title }} (${{ github.event.workflow_run.conclusion }})\n\non:\n workflow_run:\n workflows: [Nightly, Scheduled, Stage Release]\n types:\n - completed\n\npermissions:\n contents: read\n pull-requests: read\n actions: write\n\njobs:\n\n restart-failed-jobs:\n runs-on: ubuntu-latest\n if: ${{ github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.run_attempt < 5 }}\n steps:\n - name: Restart failed jobs\n env:\n GH_REPO: ${{ github.repository }}\n GH_TOKEN: ${{ github.token }}\n run: |\n gh run rerun ${{ github.event.workflow_run.id }} --failed\n
dataset_sample\yaml\saltstack_salt\.github\workflows\workflow-finished.yml
workflow-finished.yml
YAML
709
0.7
0.038462
0
python-kit
231
2025-03-05T12:32:28.476631
MIT
false
fdb89e4b1715dce72a5a43f20a32d10b
name: Workflow PR Finished\nrun-name: Workflow PR Finished ${{ github.event.workflow_run.display_title }} (${{ github.event.workflow_run.conclusion }})\n\non:\n workflow_run:\n workflows:\n - CI\n types:\n - completed\n\npermissions:\n contents: read\n pull-requests: read\n actions: write\n\njobs:\n\n restart-failed-jobs:\n runs-on: ubuntu-latest\n if: ${{ github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.run_attempt < 5 }}\n steps:\n - name: Restart failed jobs\n env:\n GH_REPO: ${{ github.repository }}\n GH_TOKEN: ${{ github.token }}\n run: |\n gh run rerun ${{ github.event.workflow_run.id }} --failed\n
dataset_sample\yaml\saltstack_salt\.github\workflows\workflow-pr-finished.yml
workflow-pr-finished.yml
YAML
690
0.7
0.037037
0
python-kit
870
2025-02-01T00:39:03.924616
MIT
false
72eb90847108a544aade668928488496
nox_version: "2022.8.7"\npython_version: "3.10.16"\nrelenv_version: "0.18.1"\nrelease_branches:\n - "3006.x"\n - "3007.x"\npr-testrun-slugs:\n - ubuntu-24.04-pkg\n - ubuntu-24.04\n - rockylinux-9\n - rockylinux-9-pkg\n - windows-2022\n - windows-2022-pkg\n - macos-15\n - macos-15-pkg\nfull-testrun-slugs:\n - all\n
dataset_sample\yaml\saltstack_salt\cicd\shared-gh-workflows-context.yml
shared-gh-workflows-context.yml
YAML
309
0.7
0
0
awesome-app
435
2023-10-08T02:39:55.396646
GPL-3.0
false
6f844d13c8c2c4585ca28fd9d1619b63
---\ncommon:\n exclude_patterns: &common_exclude_patterns\n - "**/site-packages/ansible/plugins/test"\n - "**/site-packages/ansible/plugins/test/**"\n dir_patterns: &common_dir_patterns\n - "**/__pycache__"\n - "**/lib/python3.*/test"\n - "**/lib/python3.*/idlelib"\n - "**/lib/python3.*/tkinter"\n - "**/lib/python3.*/turtledemo"\n - "**/site-packages/test"\n - "**/site-packages/tests"\n - "**/site-packages/*/test"\n - "**/site-packages/*/tests"\n - "**/site-packages/ansible_collections/*/*/test"\n - "**/site-packages/ansible_collections/*/*/tests"\n # Bundled Tornado Test Suite\n - "**/salt/ext/tornado/test"\n file_patterns: &common_file_patterns\n - "*.pyc"\n - "*.pyo"\n - "**/test/test_*.py*"\n - "**/test/**/test_*.py*"\n - "**/tests/test_*.py*"\n - "**/tests/**/test_*.py*"\n\nci:\n darwin:\n exclude_patterns: &ci_darwin_exclude_patterns\n - *common_exclude_patterns\n dir_patterns: &ci_darwin_dir_patterns\n - *common_dir_patterns\n file_patterns: &ci_darwin_file_patterns\n - *common_file_patterns\n linux:\n exclude_patterns: &ci_linux_exclude_patterns\n - *common_exclude_patterns\n dir_patterns: &ci_linux_dir_patterns\n - *common_dir_patterns\n file_patterns: &ci_linux_file_patterns\n - *common_file_patterns\n windows:\n exclude_patterns: &ci_windows_exclude_patterns\n - *common_exclude_patterns\n dir_patterns: &ci_windows_dir_patterns\n - *common_dir_patterns\n - "**/artifacts/salt/configs"\n - "**/site-packages/adodbapi"\n - "**/site-packages/isapi"\n - "**/site-packages/pythonwin"\n - "**/site-packages/win32/demos"\n - "**/site-packages/tempora/tests"\n - "**/site-packages/win32/test"\n - "**/site-packages/win32com/test"\n file_patterns: &ci_windows_file_patterns\n - *common_file_patterns\n # Help files\n - "**/*.chm"\n - "**/Scripts/wmitest*"\n\npkg:\n darwin:\n exclude_patterns:\n - *ci_darwin_exclude_patterns\n dir_patterns:\n - *ci_darwin_dir_patterns\n - "**/pkgconfig"\n - "**/share"\n - "**/artifacts/salt/opt"\n - "**/artifacts/salt/etc"\n - "**/artifacts/salt/Lib"\n file_patterns:\n - *ci_darwin_file_patterns\n linux:\n exclude_patterns:\n - *ci_linux_exclude_patterns\n dir_patterns:\n - *ci_linux_dir_patterns\n file_patterns:\n - *ci_linux_file_patterns\n windows:\n exclude_patterns:\n - *ci_windows_exclude_patterns\n dir_patterns:\n - *ci_windows_dir_patterns\n - "**/salt/share"\n - "**/site-packages/pywin32_system32"\n file_patterns:\n - *ci_windows_file_patterns\n - "**/Scripts/py.exe"\n - "**/Scripts/pyw.exe"\n - "**/Scripts/venvlauncher.exe"\n - "**/Scripts/venvwlauncher.exe"\n - "**/Scripts/wheel*"\n - "**/doc"\n - "**/readme"\n - "**/salt/salt-api*"\n - "**/salt/salt-key*"\n - "**/salt/salt-run*"\n - "**/salt/salt-syndic*"\n - "**/salt/salt-unity*"\n - "**/salt/spm*"\n - "**/salt/wheel*"\n # Non Windows execution modules\n - "**/site-packages/salt/modules/aacme.py*"\n - "**/site-packages/salt/modules/aix.py*"\n - "**/site-packages/salt/modules/alternatives.py*"\n - "**/site-packages/salt/modules/apcups.py*"\n - "**/site-packages/salt/modules/apf.py*"\n - "**/site-packages/salt/modules/apt.py*"\n - "**/site-packages/salt/modules/arista.py*"\n - "**/site-packages/salt/modules/at.py*"\n - "**/site-packages/salt/modules/bcache.py*"\n - "**/site-packages/salt/modules/blockdev.py*"\n - "**/site-packages/salt/modules/bluez.py*"\n - "**/site-packages/salt/modules/bridge.py*"\n - "**/site-packages/salt/modules/bsd.py*"\n - "**/site-packages/salt/modules/btrfs.py*"\n - "**/site-packages/salt/modules/ceph.py*"\n - "**/site-packages/salt/modules/container_resource.py*"\n - "**/site-packages/salt/modules/cron.py*"\n - "**/site-packages/salt/modules/csf.py*"\n - "**/site-packages/salt/modules/daemontools.py*"\n - "**/site-packages/salt/modules/deb*.py*"\n - "**/site-packages/salt/modules/devmap.py*"\n - "**/site-packages/salt/modules/dpkg.py*"\n - "**/site-packages/salt/modules/ebuild.py*"\n - "**/site-packages/salt/modules/eix.py*"\n - "**/site-packages/salt/modules/eselect.py*"\n - "**/site-packages/salt/modules/ethtool.py*"\n - "**/site-packages/salt/modules/extfs.py*"\n - "**/site-packages/salt/modules/firewalld.py*"\n - "**/site-packages/salt/modules/freebsd.py*"\n - "**/site-packages/salt/modules/genesis.py*"\n - "**/site-packages/salt/modules/gentoo.py*"\n - "**/site-packages/salt/modules/glusterfs.py*"\n - "**/site-packages/salt/modules/gnomedesktop.py*"\n - "**/site-packages/salt/modules/groupadd.py*"\n - "**/site-packages/salt/modules/grub_legacy.py*"\n - "**/site-packages/salt/modules/guestfs.py*"\n - "**/site-packages/salt/modules/htpasswd.py*"\n - "**/site-packages/salt/modules/ilo.py*"\n - "**/site-packages/salt/modules/img.py*"\n - "**/site-packages/salt/modules/incron.py*"\n - "**/site-packages/salt/modules/inspector.py*"\n - "**/site-packages/salt/modules/ipset.py*"\n - "**/site-packages/salt/modules/iptables.py*"\n - "**/site-packages/salt/modules/iwtools.py*"\n - "**/site-packages/salt/modules/k8s.py*"\n - "**/site-packages/salt/modules/kapacitor.py*"\n - "**/site-packages/salt/modules/keyboard.py*"\n - "**/site-packages/salt/modules/keystone.py*"\n - "**/site-packages/salt/modules/kmod.py*"\n - "**/site-packages/salt/modules/layman.py*"\n - "**/site-packages/salt/modules/linux.py*"\n - "**/site-packages/salt/modules/localemod.py*"\n - "**/site-packages/salt/modules/locate.py*"\n - "**/site-packages/salt/modules/logadm.py*"\n - "**/site-packages/salt/modules/logrotate.py*"\n - "**/site-packages/salt/modules/lvs.py*"\n - "**/site-packages/salt/modules/lxc.py*"\n - "**/site-packages/salt/modules/mac.py*"\n - "**/site-packages/salt/modules/makeconf.py*"\n - "**/site-packages/salt/modules/mdadm.py*"\n - "**/site-packages/salt/modules/mdata.py*"\n - "**/site-packages/salt/modules/monit.py*"\n - "**/site-packages/salt/modules/moosefs.py*"\n - "**/site-packages/salt/modules/mount.py*"\n - "**/site-packages/salt/modules/napalm.py*"\n - "**/site-packages/salt/modules/netbsd.py*"\n - "**/site-packages/salt/modules/netscaler.py*"\n - "**/site-packages/salt/modules/neutron.py*"\n - "**/site-packages/salt/modules/nfs3.py*"\n - "**/site-packages/salt/modules/nftables.py*"\n - "**/site-packages/salt/modules/nova.py*"\n - "**/site-packages/salt/modules/nspawn.py*"\n - "**/site-packages/salt/modules/openbsd.py*"\n - "**/site-packages/salt/modules/openstack.py*"\n - "**/site-packages/salt/modules/openvswitch.py*"\n - "**/site-packages/salt/modules/opkg.py*"\n - "**/site-packages/salt/modules/pacman.py*"\n - "**/site-packages/salt/modules/parallels.py*"\n - "**/site-packages/salt/modules/parted.py*"\n - "**/site-packages/salt/modules/pcs.py*"\n - "**/site-packages/salt/modules/pkgin.py*"\n - "**/site-packages/salt/modules/pkgng.py*"\n - "**/site-packages/salt/modules/pkgutil.py*"\n - "**/site-packages/salt/modules/portage_config.py*"\n - "**/site-packages/salt/modules/postfix.py*"\n - "**/site-packages/salt/modules/poudriere.py*"\n - "**/site-packages/salt/modules/powerpath.py*"\n - "**/site-packages/salt/modules/pw_.py*"\n - "**/site-packages/salt/modules/qemu_.py*"\n - "**/site-packages/salt/modules/quota.py*"\n - "**/site-packages/salt/modules/redismod.py*"\n - "**/site-packages/salt/modules/restartcheck.py*"\n - "**/site-packages/salt/modules/rh_.py*"\n - "**/site-packages/salt/modules/riak.py*"\n - "**/site-packages/salt/modules/rpm.py*"\n - "**/site-packages/salt/modules/runit.py*"\n - "**/site-packages/salt/modules/s6.py*"\n - "**/site-packages/salt/modules/scsi.py*"\n - "**/site-packages/salt/modules/sensors.py*"\n - "**/site-packages/salt/modules/service.py*"\n - "**/site-packages/salt/modules/shadow.py*"\n - "**/site-packages/salt/modules/smartos.py*"\n - "**/site-packages/salt/modules/smf.py*"\n - "**/site-packages/salt/modules/snapper.py*"\n - "**/site-packages/salt/modules/solaris.py*"\n - "**/site-packages/salt/modules/solr.py*"\n - "**/site-packages/salt/modules/ssh_.py*"\n - "**/site-packages/salt/modules/supervisord.py*"\n - "**/site-packages/salt/modules/sysbench.py*"\n - "**/site-packages/salt/modules/sysfs.py*"\n - "**/site-packages/salt/modules/sysrc.py*"\n - "**/site-packages/salt/modules/system.py*"\n - "**/site-packages/salt/modules/test_virtual.py*"\n - "**/site-packages/salt/modules/timezone.py*"\n - "**/site-packages/salt/modules/trafficserver.py*"\n - "**/site-packages/salt/modules/tuned.py*"\n - "**/site-packages/salt/modules/udev.py*"\n - "**/site-packages/salt/modules/upstart.py*"\n - "**/site-packages/salt/modules/useradd.py*"\n - "**/site-packages/salt/modules/uswgi.py*"\n - "**/site-packages/salt/modules/varnish.py*"\n - "**/site-packages/salt/modules/vbox.py*"\n - "**/site-packages/salt/modules/virt.py*"\n - "**/site-packages/salt/modules/xapi.py*"\n - "**/site-packages/salt/modules/xbpspkg.py*"\n - "**/site-packages/salt/modules/xfs.py*"\n - "**/site-packages/salt/modules/yum*.py*"\n - "**/site-packages/salt/modules/zfs.py*"\n - "**/site-packages/salt/modules/znc.py*"\n - "**/site-packages/salt/modules/zpool.py*"\n - "**/site-packages/salt/modules/zypper.py*"\n # Non Windows state modules\n - "**/site-packages/salt/states/acme.py*"\n - "**/site-packages/salt/states/alternatives.py*"\n - "**/site-packages/salt/states/apt.py*"\n - "**/site-packages/salt/states/at.py*"\n - "**/site-packages/salt/states/blockdev.py*"\n - "**/site-packages/salt/states/ceph.py*"\n - "**/site-packages/salt/states/cron.py*"\n - "**/site-packages/salt/states/csf.py*"\n - "**/site-packages/salt/states/deb.py*"\n - "**/site-packages/salt/states/eselect.py*"\n - "**/site-packages/salt/states/ethtool.py*"\n - "**/site-packages/salt/states/firewalld.py*"\n - "**/site-packages/salt/states/glusterfs.py*"\n - "**/site-packages/salt/states/gnome.py*"\n - "**/site-packages/salt/states/htpasswd.py*"\n - "**/site-packages/salt/states/incron.py*"\n - "**/site-packages/salt/states/ipset.py*"\n - "**/site-packages/salt/states/iptables.py*"\n - "**/site-packages/salt/states/k8s.py*"\n - "**/site-packages/salt/states/kapacitor.py*"\n - "**/site-packages/salt/states/keyboard.py*"\n - "**/site-packages/salt/states/keystone.py*"\n - "**/site-packages/salt/states/kmod.py*"\n - "**/site-packages/salt/states/layman.py*"\n - "**/site-packages/salt/states/linux.py*"\n - "**/site-packages/salt/states/lxc.py*"\n - "**/site-packages/salt/states/mac.py*"\n - "**/site-packages/salt/states/makeconf.py*"\n - "**/site-packages/salt/states/mdadm.py*"\n - "**/site-packages/salt/states/monit.py*"\n - "**/site-packages/salt/states/mount.py*"\n - "**/site-packages/salt/states/nftables.py*"\n - "**/site-packages/salt/states/pcs.py*"\n - "**/site-packages/salt/states/pkgng.py*"\n - "**/site-packages/salt/states/portage.py*"\n - "**/site-packages/salt/states/powerpath.py*"\n - "**/site-packages/salt/states/quota.py*"\n - "**/site-packages/salt/states/redismod.py*"\n - "**/site-packages/salt/states/smartos.py*"\n - "**/site-packages/salt/states/snapper.py*"\n - "**/site-packages/salt/states/ssh.py*"\n - "**/site-packages/salt/states/supervisord.py*"\n - "**/site-packages/salt/states/sysrc.py*"\n - "**/site-packages/salt/states/trafficserver.py*"\n - "**/site-packages/salt/states/tuned.py*"\n - "**/site-packages/salt/states/vbox.py*"\n - "**/site-packages/salt/states/virt.py.py*"\n - "**/site-packages/salt/states/zfs.py*"\n - "**/site-packages/salt/states/zpool.py*"\n
dataset_sample\yaml\saltstack_salt\pkg\common\env-cleanup-rules.yml
env-cleanup-rules.yml
YAML
12,257
0.8
0
0.014085
react-lib
42
2024-05-20T12:19:50.663865
BSD-3-Clause
false
97db99b79b2d93a8507e561bffdb3c05
'*':\n - pytests.unit.utils.test_versions\n - unit.test_module_names\n - unit.test_virtualname\n - unit.utils.test_doc\n\nsetup.py:\n - pytests.scenarios.setup.test_man\n - pytests.scenarios.setup.test_install\n\nsalt/_logging/(impl|handlers).py:\n - pytests.integration._logging.test_jid_logging\n - pytests.integration._logging.test_multiple_processes_logging\n - pytests.unit._logging.handlers.test_deferred_stream_handler\n\n\nsalt/modules/(apkpkg|aptpkg|ebuildpkg|dpkg_lowpkg|freebsdpkg|mac_brew_pkg|mac_ports_pkg|openbsdpkg|opkg|pacmanpkg|pkgin|pkgng|pkg_resource|rpm_lowpkg|solarisipspkg|solarispkg|win_pkg|xbpspkg|yumpkg|zypperpkg)\.py:\n - pytests.unit.states.test_pkg\n - pytests.functional.modules.test_pkg\n - pytests.functional.modules.test_win_pkg\n - pytests.functional.states.test_pkg\n - pytests.functional.states.pkgrepo.test_centos\n - pytests.functional.states.pkgrepo.test_debian\n\nsalt/modules/(mac_user|useradd|pw_user|solaris_user|win_useradd)\.py:\n - pytests.unit.states.test_user\n - pytests.functional.states.test_user\n\nsalt/modules/(aix_group|groupadd|mac_group|pw_group|solaris_group|win_groupadd)\.py:\n - unit.states.test_group\n\nsalt/modules/(debian_service|freebsdservice|gentoo_service|launchctl_service|mac_service|netbsdservice|openbsdrcctl_service|openbsdservice|rh_service|runit|linux_service|smf_service|systemd_service|upstart_service|win_service)\.py:\n - pytests.unit.states.test_service\n - pytests.functional.modules.test_service\n - pytests.functional.states.test_service\n\n\nsalt/modules/ansiblegate.py:\n - pytests.unit.states.test_ansiblegate\n - pytests.integration.states.test_ansiblegate\n - pytests.functional.modules.test_ansiblegate\n - pytests.unit.modules.test_ansiblegate\n\nsalt/modules/*apache.py:\n - pytests.unit.states.apache.test_apache\n - pytests.unit.states.apache.test_conf\n - pytests.unit.states.apache.test_module\n - pytests.unit.states.apache.test_site\n\nsalt/modules/cp.py:\n - pytests.functional.modules.file.test_replace\n - pytests.unit.modules.file.test_file_basics\n - pytests.unit.modules.file.test_file_block_replace\n - pytests.unit.modules.file.test_file_chattr\n - pytests.unit.modules.file.test_file_comment_line\n - pytests.unit.modules.file.test_file_grep\n - pytests.unit.modules.file.test_file_line\n - pytests.unit.modules.file.test_file_lsattr\n - pytests.unit.modules.file.test_file_module\n - pytests.unit.modules.file.test_file_selinux\n - pytests.unit.states.file.test_copy\n - integration.modules.test_file\n - pytests.functional.states.file.test_copy\n\nsalt/modules/file.py:\n - pytests.integration.states.test_cron\n\nsalt/(states|modules)/.*postgres.py:\n - pytests.unit.states.postgresql.test_cluster\n - pytests.unit.states.postgresql.test_database\n - pytests.unit.states.postgresql.test_extension\n - pytests.unit.states.postgresql.test_group\n - pytests.unit.states.postgresql.test_initdb\n - pytests.unit.states.postgresql.test_language\n - pytests.unit.states.postgresql.test_privileges\n - pytests.unit.states.postgresql.test_schema\n - pytests.unit.states.postgresql.test_user\n\nsalt/modules/rabbitmq.py:\n - pytests.unit.states.rabbitmq.test_cluster\n - pytests.unit.states.rabbitmq.test_plugin\n - pytests.unit.states.rabbitmq.test_policy\n - pytests.unit.states.rabbitmq.test_vhost\n - integration.states.test_rabbitmq_user\n - integration.states.test_rabbitmq_vhost\n\nsalt/modules/ssh.py:\n - pytests.unit.states.test_ssh_auth\n - pytests.unit.states.test_ssh_known_hosts\n\nsalt/auth/*:\n - pytests.integration.cli.test_salt_auth\n\nsalt/cache/*:\n - pytests.unit.cache.test_cache\n - pytests.unit.cache.test_memcache\n - pytests.functional.cache.test_consul\n - pytests.functional.cache.test_etcd\n - pytests.functional.cache.test_localfs\n - pytests.functional.cache.test_memcache\n - pytests.functional.cache.test_mysql\n - pytests.functional.cache.test_redis\n\nsalt/cli/*:\n - integration.shell.test_arguments\n\nsalt/cli/call.py:\n - pytests.integration.cli.test_salt_call\n\nsalt/cli/cp.py:\n - pytests.integration.cli.test_salt_cp\n\nsalt/cli/key.py:\n - pytests.integration.cli.test_salt_key\n\nsalt/cli/salt.py:\n - integration.shell.test_enabled\n - pytests.integration.cli.test_salt\n - pytests.integration.cli.test_matcher\n\nsalt/client/*:\n - integration.client.test_kwarg\n - integration.client.test_standard\n - pytests.integration.client.test_runner\n\nsalt/cloud/*:\n - pytests.functional.cli.test_salt_cloud\n\nsalt/cloud/__init__.py:\n - pytests.functional.cli.test_salt_cloud\n\nsalt/engines/*:\n - pytests.unit.engines.test_engines\n\nsalt/grains/*:\n - pytests.integration.grains.test_custom\n\nsalt/matchers/*:\n - integration.states.test_match\n - pytests.integration.cli.test_matcher\n - pytests.unit.modules.test_match\n - pytests.unit.matchers.test_confirm_top\n\nsalt/proxy/*:\n - pytests.integration.proxy.test_shell\n - pytests.integration.proxy.test_simple\n\nsalt/state.py:\n - pytests.functional.modules.state.test_jinja_filters\n - integration.states.test_compiler\n - integration.states.test_handle_error\n - integration.states.test_handle_iorder\n - integration.states.test_match\n - integration.states.test_renderers\n\nsalt/utils/decorators/*:\n - integration.modules.test_decorators\n\nsalt/(utils|renderers)/jinja\.py:\n - pytests.functional.modules.state.test_jinja_filters\n - integration.states.test_renderers\n\nsalt/utils/minions.py:\n - pytests.integration.cli.test_matcher\n\nsalt/utils/reactor.py:\n - pytests.integration.reactor.test_reactor\n\nsalt/cli/daemons.py:\n - pytests.integration.cli.test_salt_master\n - pytests.integration.cli.test_salt_minion\n - pytests.integration.cli.test_salt_proxy\n - pytests.integration.cli.test_salt_syndic\n\nsalt/(client/ssh/.+|cli/ssh\.py):\n - integration.cli.test_custom_module\n - pytests.integration.ssh.test_deploy\n - pytests.integration.ssh.test_grains\n - pytests.integration.ssh.test_mine\n - pytests.integration.ssh.test_master\n - pytests.integration.ssh.test_jinja_filters\n - pytests.integration.ssh.test_pillar\n - pytests.integration.ssh.test_raw\n - integration.ssh.test_state\n - pytests.integration.ssh.test_py_versions\n - pytests.integration.netapi.test_ssh_client\n\nsalt/client/ssh/wrapper/*:\n - pytests.integration.ssh.test_deploy\n - pytests.integration.ssh.test_grains\n - pytests.integration.ssh.test_mine\n - pytests.integration.ssh.test_master\n - pytests.integration.ssh.test_jinja_filters\n - pytests.integration.ssh.test_pillar\n - pytests.integration.ssh.test_raw\n - integration.ssh.test_state\n - pytests.integration.ssh.test_py_versions\n - pytests.integration.netapi.test_ssh_client\n\nsalt/config/*:\n - unit.test_config\n - pytests.unit.config.test__validate_opts\n\nsalt/loader/*:\n - integration.loader.test_ext_modules\n - pytests.integration.loader.test_ext_grains\n - pytests.functional.loader.test_loader\n - pytests.functional.loader.test_loaded_base_name\n\nsalt/minion.py:\n - integration.client.test_syndic\n - integration.minion.test_timeout\n - pytests.integration.cli.test_matcher\n - pytests.functional.pillar.test_top\n - pytests.functional.pillar.test_gpg\n - pytests.integration.modules.test_pillar\n\nsalt/modules/*_sysctl.py:\n - pytests.unit.states.test_sysctl\n - integration.modules.test_sysctl\n\nsalt/netapi/rest_cherrypy/*:\n - pytests.functional.netapi.rest_cherrypy.test_auth\n - pytests.functional.netapi.rest_cherrypy.test_auth_pam\n - pytests.functional.netapi.rest_cherrypy.test_cors\n - pytests.functional.netapi.rest_cherrypy.test_external_auth_syntax\n - pytests.functional.netapi.rest_cherrypy.test_in_formats\n - pytests.functional.netapi.rest_cherrypy.test_out_formats\n - pytests.integration.netapi.rest_cherrypy.test_arg_kwarg\n - pytests.integration.netapi.rest_cherrypy.test_auth\n - pytests.integration.netapi.rest_cherrypy.test_jobs\n - pytests.integration.netapi.rest_cherrypy.test_run\n - pytests.integration.netapi.rest_cherrypy.test_webhook_disable_auth\n - pytests.integration.netapi.test_client\n - pytests.integration.netapi.test_ssh_client\n\nsalt/netapi/rest_tornado/*:\n - integration.netapi.rest_tornado.test_app\n - pytests.functional.netapi.rest_tornado.test_auth_handler\n - pytests.functional.netapi.rest_tornado.test_base_api_handler\n - pytests.functional.netapi.rest_tornado.test_event_listener\n - pytests.functional.netapi.rest_tornado.test_external_auth_syntax\n - pytests.functional.netapi.rest_tornado.test_utils\n - pytests.functional.netapi.rest_tornado.test_webhooks_handler\n - pytests.functional.netapi.rest_tornado.test_websockets_handler\n - pytests.integration.netapi.rest_tornado.test_events_api_handler\n - pytests.integration.netapi.rest_tornado.test_jobs_api_handler\n - pytests.integration.netapi.rest_tornado.test_minions_api_handler\n - pytests.integration.netapi.rest_tornado.test_root_handler\n - pytests.integration.netapi.rest_tornado.test_run_api_handler\n - pytests.integration.netapi.test_client\n - pytests.integration.netapi.test_ssh_client\n\nsalt/output/*:\n - integration.output.test_output\n\nsalt/pillar/__init__.py:\n - pytests.integration.pillar.test_pillar_include\n - pytests.functional.pillar.test_top\n - pytests.functional.pillar.test_gpg\n - pytests.integration.modules.test_pillar\n\nsalt/(cli/run\.py|runner\.py):\n - pytests.integration.cli.test_salt_run\n - integration.runners.test_runner_returns\n\nsalt/serializers/*:\n - pytests.unit.serializers.test_serializers\n\nsalt/(cli/spm\.py|spm/.+):\n - pytests.unit.spm.test_spm\n - pytests.unit.spm.test_pkgfiles\n - integration.shell.test_spm\n - integration.spm.test_build\n - integration.spm.test_files\n - integration.spm.test_info\n - integration.spm.test_install\n - integration.spm.test_remove\n - integration.spm.test_repo\n\nsalt/utils/schedule.py:\n - pytests.unit.utils.scheduler.test_error\n - pytests.unit.utils.scheduler.test_eval\n - pytests.unit.utils.scheduler.test_postpone\n - pytests.unit.utils.scheduler.test_skip\n - pytests.unit.utils.scheduler.test_maxrunning\n - pytests.unit.utils.scheduler.test_helpers\n - pytests.unit.utils.scheduler.test_schedule\n\nsalt/utils/vt.py:\n - integration.cli.test_custom_module\n - pytests.integration.ssh.test_grains\n - pytests.integration.ssh.test_mine\n - pytests.integration.ssh.test_jinja_filters\n - pytests.integration.ssh.test_pillar\n - pytests.integration.ssh.test_raw\n - integration.ssh.test_state\n - pytests.integration.netapi.test_ssh_client\n\nsalt/wheel/*:\n - pytests.integration.wheel.test_client\n\nsalt/(minion\.py|channel/.+|transport/.+):\n - pytests.scenarios.multimaster.test_multimaster\n - pytests.scenarios.multimaster.test_offline_master\n - pytests.scenarios.multimaster.beacons.test_inotify\n - pytests.scenarios.multimaster.modules.test_test\n - pytests.scenarios.failover.multimaster.test_failover_master\n\ntests/support/mock.py:\n - unit.test_mock\n\ntests/support/pytest/transport.py:\n - pytests.functional.transport.ipc.test_pub_server_channel\n - pytests.functional.transport.zeromq.test_pub_server_channel\n\ntests/pytests/scenarios/multimaster:\n - pytests.scenarios.multimaster.test_multimaster\n - pytests.scenarios.multimaster.test_offline_master\n - pytests.scenarios.multimaster.beacons.test_inotify\n - pytests.scenarios.multimaster.modules.test_test\n - pytests.scenarios.failover.multimaster.test_failover_master\n\ntests/integration/files/ssh/.*:\n - integration.modules.test_ssh\n - integration.states.test_ssh_auth\n - integration.states.test_ssh_known_hosts\n
dataset_sample\yaml\saltstack_salt\tests\filename_map.yml
filename_map.yml
YAML
11,370
0.95
0
0
vue-tools
799
2024-06-08T11:20:34.108098
MIT
true
0f9cf7a164ba8ae04e76267043a1195e
classes:\n - default.users\n - default.motd\n - default.empty\n\nstates:\n - openssh\n\npillars:\n default:\n network:\n dns:\n{% if __grains__['os'] == 'should_never_match' %}\n srv1: 192.168.0.1\n srv2: 192.168.0.2\n domain: example.com\n{% endif %}\n ntp:\n srv1: 192.168.10.10\n srv2: 192.168.10.20\n test_list:\n - a: ${default:network:ntp:srv1}\n - ${default:network:ntp:srv2}\n test_str: ${motd:text}\n test_str_var_first: ${default:network:ntp:srv2} is the second ntp srv\n test_str_var_not_first: The second ntp server is ${default:network:ntp:srv2}\n test_str_var_middle: The second ntp server - ${default:network:ntp:srv2} - is broken\n test_str_multiple_var: 'There is 2 NTP server: ${default:network:ntp:srv1} and ${default:network:ntp:srv2}'\n
dataset_sample\yaml\saltstack_salt\tests\integration\files\saltclass\examples\classes\default\init.yml
init.yml
YAML
794
0.7
0.035714
0
vue-tools
617
2024-01-18T18:54:30.799322
MIT
true
c0d3dc4b060e15b5b51065e750127b2b
pillars:\n motd:\n text: "Welcome to {{ __grains__['id'] }} system located in ${default:network:sub}"\n
dataset_sample\yaml\saltstack_salt\tests\integration\files\saltclass\examples\classes\default\motd.yml
motd.yml
YAML
104
0.7
0
0
node-utils
148
2024-10-15T04:15:22.985062
Apache-2.0
true
a4c4daec1999f058f046bda4b7f76f2a
states:\n - user_mgt\n\npillars:\n default:\n users:\n adm1:\n uid: 1201\n gid: 1201\n gecos: 'Super user admin1'\n homedir: /home/adm1\n adm2:\n uid: 1202\n gid: 1202\n gecos: 'Super user admin2'\n homedir: /home/adm2\n
dataset_sample\yaml\saltstack_salt\tests\integration\files\saltclass\examples\classes\default\users.yml
users.yml
YAML
275
0.7
0
0
python-kit
533
2025-04-25T12:04:48.754614
GPL-3.0
true
f379226600227862d3b36aa506cefcf0
states:\n - app\n\npillars:\n app:\n config:\n dns:\n srv1: ${default:network:dns:srv1}\n srv2: ${default:network:dns:srv2}\n uri: https://application.domain/call?\${test}\n prod_parameters:\n - p1\n - p2\n - p3\n pkg:\n - app-core\n - app-backend\n# Safe minion_id matching\n{% if minion_id == 'zrh.node3' %}\n safe_pillar: '_only_ zrh.node3 will see this pillar and this cannot be overridden like grains'\n{% endif %}\n
dataset_sample\yaml\saltstack_salt\tests\integration\files\saltclass\examples\classes\roles\app.yml
app.yml
YAML
469
0.8
0.047619
0.05
vue-tools
960
2024-05-10T12:18:37.206143
Apache-2.0
true
e2f219741a337925dba8ff777c05257f
pillars:\n default:\n network:\n sub: Geneva\n dns:\n srv1: 10.20.0.1\n srv2: 10.20.0.2\n srv3: 192.168.1.1\n domain: gnv.example.com\n users:\n adm1:\n uid: 1210\n gid: 1210\n gecos: 'Super user admin1'\n homedir: /srv/app/adm1\n adm3:\n uid: 1203\n gid: 1203\n gecos: 'Super user admin3'\n homedir: /home/adm3\n
dataset_sample\yaml\saltstack_salt\tests\integration\files\saltclass\examples\classes\subsidiaries\gnv.yml
gnv.yml
YAML
404
0.7
0
0
vue-tools
853
2024-05-24T07:08:39.106595
GPL-3.0
true
a8526de01c4fd0a5d18c331dda3916db
classes:\n - app.ssh.server\n - roles.nginx.server\n\npillars:\n default:\n network:\n sub: Lausanne\n dns:\n srv1: 10.10.0.1\n domain: qls.example.com\n users:\n nginx_adm:\n uid: 250\n gid: 200\n gecos: 'Nginx admin user'\n homedir: /srv/www\n
dataset_sample\yaml\saltstack_salt\tests\integration\files\saltclass\examples\classes\subsidiaries\qls.yml
qls.yml
YAML
294
0.7
0
0
node-utils
313
2024-04-08T06:38:28.819545
BSD-3-Clause
true
3898c62fd05b07052c1743bee9897fa1
classes:\n - roles.app\n # This should validate that we process a class only once\n - app.borgbackup\n # As this one should not be processed\n # and would override in turn overrides from app.borgbackup\n - app.ssh.server\n\npillars:\n default:\n network:\n sub: Zurich\n dns:\n srv1: 10.30.0.1\n srv2: 10.30.0.2\n domain: zrh.example.com\n ntp:\n srv1: 10.0.0.127\n users:\n adm1:\n uid: 250\n gid: 250\n gecos: 'Super user admin1'\n homedir: /srv/app/1\n
dataset_sample\yaml\saltstack_salt\tests\integration\files\saltclass\examples\classes\subsidiaries\zrh.yml
zrh.yml
YAML
520
0.95
0.041667
0.130435
vue-tools
429
2025-04-22T13:11:46.938547
BSD-3-Clause
true
d906c2e384d81f7e5969c175ece2eaa5
environment: base\n\nclasses:\n{% for class in ['default', 'roles.*', 'empty.*'] %}\n - {{ class }}\n{% endfor %}\n
dataset_sample\yaml\saltstack_salt\tests\integration\files\saltclass\examples\nodes\fake_id.yml
fake_id.yml
YAML
110
0.85
0.5
0
node-utils
21
2023-11-29T02:54:32.963758
GPL-3.0
true
225a597d74c80be3f91145e64f1c2dd9
---\n- name: update web servers\n hosts: webservers\n remote_user: root\n\n tasks:\n - name: ensure apache is at the latest version\n yum:\n name: httpd\n state: latest\n - name: write the apache config file\n template:\n src: /srv/httpd.j2\n dest: /etc/httpd.conf\n\n- name: update db servers\n hosts: databases\n remote_user: root\n\n tasks:\n - name: ensure postgresql is at the latest version\n yum:\n name: postgresql\n state: latest\n - name: ensure that postgresql is started\n service:\n name: postgresql\n state: started\n
dataset_sample\yaml\saltstack_salt\tests\unit\files\playbooks\example_playbooks\example-playbook2\site.yml
site.yml
YAML
565
0.7
0
0
python-kit
123
2025-02-01T13:02:10.466186
MIT
true
3a4f9341400f5b69c2e721ac4bd9f3fd
version: 2\nupdates:\n- package-ecosystem: "github-actions"\n directory: "/"\n schedule:\n interval: "weekly"\n- package-ecosystem: gomod\n directory: "/"\n schedule:\n interval: weekly\n
dataset_sample\yaml\seaweedfs_seaweedfs\.github\dependabot.yml
dependabot.yml
YAML
189
0.7
0
0
vue-tools
984
2025-03-30T21:57:14.456126
Apache-2.0
false
b439fd630b4674ecee4181bd8852ec8b
name: "go: build dev binaries"\n\non:\n push:\n branches: [ master ]\n\npermissions:\n contents: read\n\njobs:\n\n cleanup:\n permissions:\n contents: write # for mknejp/delete-release-assets to delete release assets\n runs-on: ubuntu-latest\n\n steps:\n\n - name: Delete old release assets\n uses: mknejp/delete-release-assets@v1\n with:\n token: ${{ github.token }}\n tag: dev\n fail-if-no-assets: false\n assets: |\n weed-*\n\n build_dev_linux_windows:\n permissions:\n contents: write # for wangyoucao577/go-release-action to upload release assets\n needs: cleanup\n runs-on: ubuntu-latest\n strategy:\n matrix:\n goos: [linux, windows]\n goarch: [amd64]\n\n steps:\n\n - name: Check out code into the Go module directory\n uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v2\n\n - name: Set BUILD_TIME env\n run: echo BUILD_TIME=$(date -u +%Y%m%d-%H%M) >> ${GITHUB_ENV}\n\n - name: Go Release Binaries Large Disk\n uses: wangyoucao577/go-release-action@481a2c1a0f1be199722e3e9b74d7199acafc30a8 # v1.22\n with:\n github_token: ${{ secrets.GITHUB_TOKEN }}\n goos: ${{ matrix.goos }}\n goarch: ${{ matrix.goarch }}\n release_tag: dev\n overwrite: true\n pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0\n build_flags: -tags 5BytesOffset # optional, default is\n ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=${{github.sha}}\n # Where to run `go build .`\n project_path: weed\n binary_name: weed-large-disk\n asset_name: "weed-large-disk-${{ env.BUILD_TIME }}-${{ matrix.goos }}-${{ matrix.goarch }}"\n\n - name: Go Release Binaries Normal Volume Size\n uses: wangyoucao577/go-release-action@481a2c1a0f1be199722e3e9b74d7199acafc30a8 # v1.22\n with:\n github_token: ${{ secrets.GITHUB_TOKEN }}\n goos: ${{ matrix.goos }}\n goarch: ${{ matrix.goarch }}\n release_tag: dev\n overwrite: true\n pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0\n ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=${{github.sha}}\n # Where to run `go build .`\n project_path: weed\n binary_name: weed-normal-disk\n asset_name: "weed-${{ env.BUILD_TIME }}-${{ matrix.goos }}-${{ matrix.goarch }}"\n\n build_dev_darwin:\n permissions:\n contents: write # for wangyoucao577/go-release-action to upload release assets\n needs: build_dev_linux_windows\n runs-on: ubuntu-latest\n strategy:\n matrix:\n goos: [darwin]\n goarch: [amd64, arm64]\n\n steps:\n\n - name: Check out code into the Go module directory\n uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v2\n\n - name: Set BUILD_TIME env\n run: echo BUILD_TIME=$(date -u +%Y%m%d-%H%M) >> ${GITHUB_ENV}\n\n - name: Go Release Binaries Large Disk\n uses: wangyoucao577/go-release-action@481a2c1a0f1be199722e3e9b74d7199acafc30a8 # v1.22\n with:\n github_token: ${{ secrets.GITHUB_TOKEN }}\n goos: ${{ matrix.goos }}\n goarch: ${{ matrix.goarch }}\n release_tag: dev\n overwrite: true\n pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0\n build_flags: -tags 5BytesOffset # optional, default is\n ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=${{github.sha}}\n # Where to run `go build .`\n project_path: weed\n binary_name: weed-large-disk\n asset_name: "weed-large-disk-${{ env.BUILD_TIME }}-${{ matrix.goos }}-${{ matrix.goarch }}"\n\n - name: Go Release Binaries Normal Volume Size\n uses: wangyoucao577/go-release-action@481a2c1a0f1be199722e3e9b74d7199acafc30a8 # v1.22\n with:\n github_token: ${{ secrets.GITHUB_TOKEN }}\n goos: ${{ matrix.goos }}\n goarch: ${{ matrix.goarch }}\n release_tag: dev\n overwrite: true\n pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0\n ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=${{github.sha}}\n # Where to run `go build .`\n project_path: weed\n binary_name: weed-normal-disk\n asset_name: "weed-${{ env.BUILD_TIME }}-${{ matrix.goos }}-${{ matrix.goarch }}"\n
dataset_sample\yaml\seaweedfs_seaweedfs\.github\workflows\binaries_dev.yml
binaries_dev.yml
YAML
4,567
0.8
0.032258
0.037736
awesome-app
407
2023-12-22T20:42:29.849087
Apache-2.0
false
91858dca6d3845b88ada04d7a8ee26e0
# This is a basic workflow to help you get started with Actions\n\nname: "go: build versioned binaries for windows"\n\non:\n push:\n tags:\n - '*'\n\n # Allows you to run this workflow manually from the Actions tab\n workflow_dispatch:\n\n# A workflow run is made up of one or more jobs that can run sequentially or in parallel\npermissions:\n contents: read\n\njobs:\n\n build-release-binaries_windows:\n permissions:\n contents: write # for wangyoucao577/go-release-action to upload release assets\n runs-on: ubuntu-latest\n strategy:\n matrix:\n goos: [windows]\n goarch: [amd64]\n\n # Steps represent a sequence of tasks that will be executed as part of the job\n steps:\n # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it\n - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v2\n - name: Go Release Binaries Normal Volume Size\n uses: wangyoucao577/go-release-action@481a2c1a0f1be199722e3e9b74d7199acafc30a8 # v1.22\n with:\n github_token: ${{ secrets.GITHUB_TOKEN }}\n goos: ${{ matrix.goos }}\n goarch: ${{ matrix.goarch }}\n overwrite: true\n pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0\n # build_flags: -tags 5BytesOffset # optional, default is\n ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=${{github.sha}}\n # Where to run `go build .`\n project_path: weed\n binary_name: weed\n asset_name: "${{ matrix.goos }}_${{ matrix.goarch }}"\n - name: Go Release Large Disk Binaries\n uses: wangyoucao577/go-release-action@481a2c1a0f1be199722e3e9b74d7199acafc30a8 # v1.22\n with:\n github_token: ${{ secrets.GITHUB_TOKEN }}\n goos: ${{ matrix.goos }}\n goarch: ${{ matrix.goarch }}\n overwrite: true\n pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0\n build_flags: -tags 5BytesOffset # optional, default is\n ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=${{github.sha}}\n # Where to run `go build .`\n project_path: weed\n binary_name: weed\n asset_name: "${{ matrix.goos }}_${{ matrix.goarch }}_large_disk"\n
dataset_sample\yaml\seaweedfs_seaweedfs\.github\workflows\binaries_release0.yml
binaries_release0.yml
YAML
2,320
0.8
0.033898
0.153846
awesome-app
474
2024-10-07T20:54:31.976445
MIT
false
0d3432281334f3c6d2077b6975892426
# This is a basic workflow to help you get started with Actions\n\nname: "go: build versioned binaries for linux"\n\non:\n push:\n tags:\n - '*'\n\n # Allows you to run this workflow manually from the Actions tab\n workflow_dispatch:\n\n# A workflow run is made up of one or more jobs that can run sequentially or in parallel\npermissions:\n contents: read\n\njobs:\n\n build-release-binaries_linux:\n permissions:\n contents: write # for wangyoucao577/go-release-action to upload release assets\n runs-on: ubuntu-latest\n strategy:\n matrix:\n goos: [linux]\n goarch: [amd64, arm, arm64]\n\n # Steps represent a sequence of tasks that will be executed as part of the job\n steps:\n # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it\n - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v2\n - name: Go Release Binaries Normal Volume Size\n uses: wangyoucao577/go-release-action@481a2c1a0f1be199722e3e9b74d7199acafc30a8 # v1.22\n with:\n github_token: ${{ secrets.GITHUB_TOKEN }}\n goos: ${{ matrix.goos }}\n goarch: ${{ matrix.goarch }}\n overwrite: true\n pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0\n # build_flags: -tags 5BytesOffset # optional, default is\n ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=${{github.sha}}\n # Where to run `go build .`\n project_path: weed\n binary_name: weed\n asset_name: "${{ matrix.goos }}_${{ matrix.goarch }}"\n - name: Go Release Large Disk Binaries\n uses: wangyoucao577/go-release-action@481a2c1a0f1be199722e3e9b74d7199acafc30a8 # v1.22\n with:\n github_token: ${{ secrets.GITHUB_TOKEN }}\n goos: ${{ matrix.goos }}\n goarch: ${{ matrix.goarch }}\n overwrite: true\n pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0\n build_flags: -tags 5BytesOffset # optional, default is\n ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=${{github.sha}}\n # Where to run `go build .`\n project_path: weed\n binary_name: weed\n asset_name: "${{ matrix.goos }}_${{ matrix.goarch }}_large_disk"\n
dataset_sample\yaml\seaweedfs_seaweedfs\.github\workflows\binaries_release1.yml
binaries_release1.yml
YAML
2,326
0.8
0.033898
0.153846
react-lib
784
2024-03-31T13:35:32.865258
MIT
false
98eb4fd64927adb22cb9f72691cdb70b
# This is a basic workflow to help you get started with Actions\n\nname: "go: build versioned binaries for darwin"\n\non:\n push:\n tags:\n - '*'\n\n # Allows you to run this workflow manually from the Actions tab\n workflow_dispatch:\n\n# A workflow run is made up of one or more jobs that can run sequentially or in parallel\npermissions:\n contents: read\n\njobs:\n\n build-release-binaries_darwin:\n permissions:\n contents: write # for wangyoucao577/go-release-action to upload release assets\n runs-on: ubuntu-latest\n strategy:\n matrix:\n goos: [darwin]\n goarch: [amd64, arm64]\n\n # Steps represent a sequence of tasks that will be executed as part of the job\n steps:\n # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it\n - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v2\n - name: Go Release Binaries Normal Volume Size\n uses: wangyoucao577/go-release-action@481a2c1a0f1be199722e3e9b74d7199acafc30a8 # v1.22\n with:\n github_token: ${{ secrets.GITHUB_TOKEN }}\n goos: ${{ matrix.goos }}\n goarch: ${{ matrix.goarch }}\n overwrite: true\n pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0\n # build_flags: -tags 5BytesOffset # optional, default is\n ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=${{github.sha}}\n # Where to run `go build .`\n project_path: weed\n binary_name: weed\n asset_name: "${{ matrix.goos }}_${{ matrix.goarch }}"\n - name: Go Release Large Disk Binaries\n uses: wangyoucao577/go-release-action@481a2c1a0f1be199722e3e9b74d7199acafc30a8 # v1.22\n with:\n github_token: ${{ secrets.GITHUB_TOKEN }}\n goos: ${{ matrix.goos }}\n goarch: ${{ matrix.goarch }}\n overwrite: true\n pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0\n build_flags: -tags 5BytesOffset # optional, default is\n ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=${{github.sha}}\n # Where to run `go build .`\n project_path: weed\n binary_name: weed\n asset_name: "${{ matrix.goos }}_${{ matrix.goarch }}_large_disk"\n
dataset_sample\yaml\seaweedfs_seaweedfs\.github\workflows\binaries_release2.yml
binaries_release2.yml
YAML
2,324
0.8
0.033898
0.153846
awesome-app
901
2023-12-01T02:39:08.001588
MIT
false
4b534a1b107f14afdd593c8e898276e0
# This is a basic workflow to help you get started with Actions\n\nname: "go: build versioned binaries for freebsd"\n\non:\n push:\n tags:\n - '*'\n\n # Allows you to run this workflow manually from the Actions tab\n workflow_dispatch:\n\n# A workflow run is made up of one or more jobs that can run sequentially or in parallel\npermissions:\n contents: read\n\njobs:\n\n build-release-binaries_freebsd:\n permissions:\n contents: write # for wangyoucao577/go-release-action to upload release assets\n runs-on: ubuntu-latest\n strategy:\n matrix:\n goos: [freebsd]\n goarch: [amd64, arm, arm64]\n\n # Steps represent a sequence of tasks that will be executed as part of the job\n steps:\n # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it\n - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v2\n - name: Go Release Binaries Normal Volume Size\n uses: wangyoucao577/go-release-action@481a2c1a0f1be199722e3e9b74d7199acafc30a8 # v1.22\n with:\n github_token: ${{ secrets.GITHUB_TOKEN }}\n goos: ${{ matrix.goos }}\n goarch: ${{ matrix.goarch }}\n overwrite: true\n pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0\n # build_flags: -tags 5BytesOffset # optional, default is\n ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=${{github.sha}}\n # Where to run `go build .`\n project_path: weed\n binary_name: weed\n asset_name: "${{ matrix.goos }}_${{ matrix.goarch }}"\n - name: Go Release Large Disk Binaries\n uses: wangyoucao577/go-release-action@481a2c1a0f1be199722e3e9b74d7199acafc30a8 # v1.22\n with:\n github_token: ${{ secrets.GITHUB_TOKEN }}\n goos: ${{ matrix.goos }}\n goarch: ${{ matrix.goarch }}\n overwrite: true\n pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0\n build_flags: -tags 5BytesOffset # optional, default is\n ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=${{github.sha}}\n # Where to run `go build .`\n project_path: weed\n binary_name: weed\n asset_name: "${{ matrix.goos }}_${{ matrix.goarch }}_large_disk"\n
dataset_sample\yaml\seaweedfs_seaweedfs\.github\workflows\binaries_release3.yml
binaries_release3.yml
YAML
2,332
0.8
0.033898
0.153846
python-kit
613
2025-06-22T12:02:11.792063
MIT
false
8315fb18d3591f9c25f07f3e0e495a12
# This is a basic workflow to help you get started with Actions\n\nname: "go: build versioned binaries for linux with all tags"\n\non:\n push:\n tags:\n - '*'\n\n # Allows you to run this workflow manually from the Actions tab\n workflow_dispatch:\n\n# A workflow run is made up of one or more jobs that can run sequentially or in parallel\npermissions:\n contents: read\n\njobs:\n\n build-release-binaries_linux:\n permissions:\n contents: write # for wangyoucao577/go-release-action to upload release assets\n runs-on: ubuntu-latest\n strategy:\n matrix:\n goos: [linux]\n goarch: [amd64]\n\n # Steps represent a sequence of tasks that will be executed as part of the job\n steps:\n # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it\n - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v2\n - name: Go Release Binaries Normal Volume Size\n uses: wangyoucao577/go-release-action@481a2c1a0f1be199722e3e9b74d7199acafc30a8 # v1.22\n with:\n github_token: ${{ secrets.GITHUB_TOKEN }}\n goos: ${{ matrix.goos }}\n goarch: ${{ matrix.goarch }}\n overwrite: true\n build_flags: -tags elastic,gocdk,rclone,sqlite,tarantool,tikv,ydb\n pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0\n # build_flags: -tags 5BytesOffset # optional, default is\n ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=${{github.sha}}\n # Where to run `go build .`\n project_path: weed\n binary_name: weed\n asset_name: "${{ matrix.goos }}_${{ matrix.goarch }}_full"\n - name: Go Release Large Disk Binaries\n uses: wangyoucao577/go-release-action@481a2c1a0f1be199722e3e9b74d7199acafc30a8 # v1.22\n with:\n github_token: ${{ secrets.GITHUB_TOKEN }}\n goos: ${{ matrix.goos }}\n goarch: ${{ matrix.goarch }}\n overwrite: true\n pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0\n build_flags: -tags 5BytesOffset,elastic,gocdk,rclone,sqlite,tarantool,tikv,ydb\n ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=${{github.sha}}\n # Where to run `go build .`\n project_path: weed\n binary_name: weed\n asset_name: "${{ matrix.goos }}_${{ matrix.goarch }}_full_large_disk"\n
dataset_sample\yaml\seaweedfs_seaweedfs\.github\workflows\binaries_release4.yml
binaries_release4.yml
YAML
2,438
0.8
0.033333
0.150943
vue-tools
211
2025-01-29T14:10:37.152672
Apache-2.0
false
886b4a5f08a9a1fe1824a1c3c41e3194
# This is a basic workflow to help you get started with Actions\n\nname: "go: build versioned binaries for openbsd"\n\non:\n push:\n tags:\n - '*'\n\n # Allows you to run this workflow manually from the Actions tab\n workflow_dispatch:\n\n# A workflow run is made up of one or more jobs that can run sequentially or in parallel\npermissions:\n contents: read\n\njobs:\n\n build-release-binaries_openbsd:\n permissions:\n contents: write # for wangyoucao577/go-release-action to upload release assets\n runs-on: ubuntu-latest\n strategy:\n matrix:\n goos: [openbsd]\n goarch: [amd64, arm, arm64]\n\n # Steps represent a sequence of tasks that will be executed as part of the job\n steps:\n # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it\n - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v2\n - name: Go Release Binaries Normal Volume Size\n uses: wangyoucao577/go-release-action@481a2c1a0f1be199722e3e9b74d7199acafc30a8 # v1.22\n with:\n github_token: ${{ secrets.GITHUB_TOKEN }}\n goos: ${{ matrix.goos }}\n goarch: ${{ matrix.goarch }}\n overwrite: true\n pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0\n # build_flags: -tags 5BytesOffset # optional, default is\n ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=${{github.sha}}\n # Where to run `go build .`\n project_path: weed\n binary_name: weed\n asset_name: "${{ matrix.goos }}_${{ matrix.goarch }}"\n - name: Go Release Large Disk Binaries\n uses: wangyoucao577/go-release-action@481a2c1a0f1be199722e3e9b74d7199acafc30a8 # v1.22\n with:\n github_token: ${{ secrets.GITHUB_TOKEN }}\n goos: ${{ matrix.goos }}\n goarch: ${{ matrix.goarch }}\n overwrite: true\n pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0\n build_flags: -tags 5BytesOffset # optional, default is\n ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=${{github.sha}}\n # Where to run `go build .`\n project_path: weed\n binary_name: weed\n asset_name: "${{ matrix.goos }}_${{ matrix.goarch }}_large_disk"\n
dataset_sample\yaml\seaweedfs_seaweedfs\.github\workflows\binaries_release5.yml
binaries_release5.yml
YAML
2,332
0.8
0.033898
0.153846
awesome-app
915
2024-08-17T16:11:37.330189
BSD-3-Clause
false
c0a6bd88d79f05d9d0d9435236eff4d6
name: "Code Scanning - Action"\n\non:\n pull_request:\n\nconcurrency:\n group: ${{ github.head_ref }}/codeql\n cancel-in-progress: true\n\njobs:\n CodeQL-Build:\n # CodeQL runs on ubuntu-latest, windows-latest, and macos-latest\n runs-on: ubuntu-latest\n\n permissions:\n # required for all workflows\n security-events: write\n\n steps:\n - name: Checkout repository\n uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633\n\n # Initializes the CodeQL tools for scanning.\n - name: Initialize CodeQL\n uses: github/codeql-action/init@v3\n # Override language selection by uncommenting this and choosing your languages\n with:\n languages: go\n\n # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).\n # If this step fails, then you should remove it and run the build manually (see below).\n - name: Autobuild\n uses: github/codeql-action/autobuild@v3\n\n # ℹ️ Command-line programs to run using the OS shell.\n # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun\n\n # ✏️ If the Autobuild fails above, remove it and uncomment the following\n # three lines and modify them (or add more) to build your code if your\n # project uses a compiled language\n\n #- run: |\n # make bootstrap\n # make release\n\n - name: Perform CodeQL Analysis\n uses: github/codeql-action/analyze@v3\n
dataset_sample\yaml\seaweedfs_seaweedfs\.github\workflows\codeql.yml
codeql.yml
YAML
1,500
0.95
0.085106
0.388889
node-utils
982
2025-03-25T00:50:00.956433
MIT
false
26128025815e5771ca9734067aa0b1ca
name: "docker: build dev containers"\n\non:\n push:\n branches: [ master ]\n workflow_dispatch: {}\n\npermissions:\n contents: read\n\njobs:\n\n build-dev-containers:\n runs-on: [ubuntu-latest]\n\n steps:\n -\n name: Checkout\n uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v2\n -\n name: Docker meta\n id: docker_meta\n uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v3\n with:\n images: |\n chrislusf/seaweedfs\n ghcr.io/chrislusf/seaweedfs\n tags: |\n type=raw,value=dev\n labels: |\n org.opencontainers.image.title=seaweedfs\n org.opencontainers.image.description=SeaweedFS is a distributed storage system for blobs, objects, files, and data lake, to store and serve billions of files fast!\n org.opencontainers.image.vendor=Chris Lu\n -\n name: Set up QEMU\n uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v1\n -\n name: Set up Docker Buildx\n uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v1\n with:\n buildkitd-flags: "--debug"\n -\n name: Login to Docker Hub\n if: github.event_name != 'pull_request'\n uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v1\n with:\n username: ${{ secrets.DOCKER_USERNAME }}\n password: ${{ secrets.DOCKER_PASSWORD }}\n -\n name: Login to GHCR\n if: github.event_name != 'pull_request'\n uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v1\n with:\n registry: ghcr.io\n username: ${{ secrets.GHCR_USERNAME }}\n password: ${{ secrets.GHCR_TOKEN }}\n -\n name: Build\n uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v2\n with:\n context: ./docker\n push: ${{ github.event_name != 'pull_request' }}\n file: ./docker/Dockerfile.go_build\n platforms: linux/amd64, linux/arm64\n tags: ${{ steps.docker_meta.outputs.tags }}\n labels: ${{ steps.docker_meta.outputs.labels }}\n
dataset_sample\yaml\seaweedfs_seaweedfs\.github\workflows\container_dev.yml
container_dev.yml
YAML
2,213
0.8
0.045455
0
react-lib
110
2025-01-24T09:33:39.356215
BSD-3-Clause
false
b443045e28af2e7e20c3b87b01cccafe
name: "docker: build release containers for normal volume"\n\non:\n push:\n tags:\n - '*'\n workflow_dispatch: {}\n\npermissions:\n contents: read\n\njobs:\n build-default-release-container:\n runs-on: [ubuntu-latest]\n\n steps:\n -\n name: Checkout\n uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v2\n -\n name: Docker meta\n id: docker_meta\n uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v3\n with:\n images: |\n chrislusf/seaweedfs\n tags: |\n type=ref,event=tag\n flavor: |\n latest=false\n labels: |\n org.opencontainers.image.title=seaweedfs\n org.opencontainers.image.description=SeaweedFS is a distributed storage system for blobs, objects, files, and data lake, to store and serve billions of files fast!\n org.opencontainers.image.vendor=Chris Lu\n -\n name: Set up QEMU\n uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v1\n -\n name: Set up Docker Buildx\n uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v1\n -\n name: Login to Docker Hub\n if: github.event_name != 'pull_request'\n uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v1\n with:\n username: ${{ secrets.DOCKER_USERNAME }}\n password: ${{ secrets.DOCKER_PASSWORD }}\n -\n name: Build\n uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v2\n with:\n context: ./docker\n push: ${{ github.event_name != 'pull_request' }}\n file: ./docker/Dockerfile.go_build\n platforms: linux/amd64, linux/arm, linux/arm64, linux/386\n tags: ${{ steps.docker_meta.outputs.tags }}\n labels: ${{ steps.docker_meta.outputs.labels }}\n
dataset_sample\yaml\seaweedfs_seaweedfs\.github\workflows\container_release1.yml
container_release1.yml
YAML
1,917
0.8
0.052632
0
vue-tools
169
2023-08-25T03:10:08.404480
Apache-2.0
false
97d4fb52e275a3a642dd2cd49498fd6d
name: "docker: build release containers for large volume"\n\non:\n push:\n tags:\n - '*'\n workflow_dispatch: {}\n\npermissions:\n contents: read\n\njobs:\n\n build-large-release-container:\n runs-on: [ubuntu-latest]\n\n steps:\n -\n name: Checkout\n uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v2\n -\n name: Docker meta\n id: docker_meta\n uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v3\n with:\n images: |\n chrislusf/seaweedfs\n tags: |\n type=ref,event=tag,suffix=_large_disk\n flavor: |\n latest=false\n labels: |\n org.opencontainers.image.title=seaweedfs\n org.opencontainers.image.description=SeaweedFS is a distributed storage system for blobs, objects, files, and data lake, to store and serve billions of files fast!\n org.opencontainers.image.vendor=Chris Lu\n -\n name: Set up QEMU\n uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v1\n -\n name: Set up Docker Buildx\n uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v1\n -\n name: Login to Docker Hub\n if: github.event_name != 'pull_request'\n uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v1\n with:\n username: ${{ secrets.DOCKER_USERNAME }}\n password: ${{ secrets.DOCKER_PASSWORD }}\n -\n name: Build\n uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v2\n with:\n context: ./docker\n push: ${{ github.event_name != 'pull_request' }}\n file: ./docker/Dockerfile.go_build\n build-args: TAGS=5BytesOffset\n platforms: linux/amd64, linux/arm, linux/arm64, linux/386\n tags: ${{ steps.docker_meta.outputs.tags }}\n labels: ${{ steps.docker_meta.outputs.labels }}\n
dataset_sample\yaml\seaweedfs_seaweedfs\.github\workflows\container_release2.yml
container_release2.yml
YAML
1,974
0.8
0.050847
0
vue-tools
385
2024-03-04T04:32:37.581842
Apache-2.0
false
c1981aff3fa33e1ec96517479a9d83b1
name: "docker: build release containers for rocksdb"\n\non:\n push:\n tags:\n - '*'\n workflow_dispatch: {}\n\npermissions:\n contents: read\n\njobs:\n\n build-large-release-container_rocksdb:\n runs-on: [ubuntu-latest]\n\n steps:\n -\n name: Checkout\n uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v2\n -\n name: Docker meta\n id: docker_meta\n uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v3\n with:\n images: |\n chrislusf/seaweedfs\n tags: |\n type=ref,event=tag,suffix=_large_disk_rocksdb\n flavor: |\n latest=false\n labels: |\n org.opencontainers.image.title=seaweedfs\n org.opencontainers.image.description=SeaweedFS is a distributed storage system for blobs, objects, files, and data lake, to store and serve billions of files fast!\n org.opencontainers.image.vendor=Chris Lu\n -\n name: Set up QEMU\n uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v1\n -\n name: Set up Docker Buildx\n uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v1\n -\n name: Login to Docker Hub\n if: github.event_name != 'pull_request'\n uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v1\n with:\n username: ${{ secrets.DOCKER_USERNAME }}\n password: ${{ secrets.DOCKER_PASSWORD }}\n -\n name: Build\n uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v2\n with:\n context: ./docker\n push: ${{ github.event_name != 'pull_request' }}\n file: ./docker/Dockerfile.rocksdb_large\n platforms: linux/amd64\n tags: ${{ steps.docker_meta.outputs.tags }}\n labels: ${{ steps.docker_meta.outputs.labels }}\n
dataset_sample\yaml\seaweedfs_seaweedfs\.github\workflows\container_release3.yml
container_release3.yml
YAML
1,915
0.8
0.051724
0
node-utils
308
2024-01-23T14:21:30.609334
MIT
false
b83b39a31e6290feabe7da3d9d51d7a9