diff --git a/.github/workflows/copy-workflow.yml b/.github/workflows/copy-workflow.yml index 5b14f86f..fca2bc0f 100644 --- a/.github/workflows/copy-workflow.yml +++ b/.github/workflows/copy-workflow.yml @@ -92,7 +92,7 @@ jobs: git commit -m "remove .gx" fi - name: add version.json file (in order to deploy versioning workflows) - if: matrix.cfg.deploy_versioning && hashFiles(format('{0}/version.json', env.TARGET_REPO_DIR)) == '' + if: hashFiles(format('{0}/version.json', env.TARGET_REPO_DIR)) == '' working-directory: ${{ env.TARGET_REPO_DIR }} run: | git fetch origin --unshallow # we need the entire commit history @@ -155,13 +155,9 @@ jobs: git commit -m "run gofmt -s" fi - name: determine files to add + # By setting the environment variable, it's possible to programmatically add / modify this list. + # See https://github.com/protocol/.github/blob/38135c75e47839623bf9b2748275d8c6167a8fa8/.github/workflows/copy-workflow.yml#L163-L168 for an example, how we used to make use of this. run: echo "FILES=${{ toJson(github.event.inputs.files) }}" >> $GITHUB_ENV - - name: add more versioning workflows files, if necessary - if: matrix.cfg.deploy_versioning - run: | - files=$(jq -r '.[]' <<< '${{ env.FILES }}') - files+=(".github/workflows/releaser.yml" ".github/workflows/release-check.yml" ".github/workflows/tagpush.yml") - echo "FILES=$(jq -nc '$ARGS.positional' --args ${files[@]})" >> $GITHUB_ENV - name: Add files run: | for f in $(jq -r ".[]" <<< ${{ toJson(env.FILES) }}); do diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml index 4e693ac3..e8d4ae8c 100644 --- a/.github/workflows/dispatch.yml +++ b/.github/workflows/dispatch.yml @@ -9,7 +9,7 @@ on: env: # We could use a higher number here. We use a small number just to make sure to create multiple batches. MAX_REPOS_PER_WORKFLOW: 16 - FILES: '[ ".github/workflows/automerge.yml", ".github/workflows/go-test.yml", ".github/workflows/go-check.yml" ]' # a JSON array of the files to distribute + FILES: '[ ".github/workflows/automerge.yml", ".github/workflows/go-test.yml", ".github/workflows/go-check.yml", ".github/workflows/releaser.yml", ".github/workflows/release-check.yml", ".github/workflows/tagpush.yml" ]' # a JSON array of the files to distribute jobs: matrix: diff --git a/config.json b/config.json index 698a0127..d7f444d1 100644 --- a/config.json +++ b/config.json @@ -15,81 +15,81 @@ { "target": "ipfs-shipyard/w3rc" }, { "target": "ipfs/bbloom" }, { "target": "ipfs/go-bitfield" }, - { "target": "ipfs/go-bitswap", "deploy_versioning": true }, + { "target": "ipfs/go-bitswap" }, { "target": "ipfs/go-block-format" }, - { "target": "ipfs/go-blockservice", "deploy_versioning": true }, + { "target": "ipfs/go-blockservice" }, { "target": "ipfs/go-bs-sqlite3" }, { "target": "ipfs/go-cid" }, { "target": "ipfs/go-cidutil" }, { "target": "ipfs/go-dagwriter" }, - { "target": "ipfs/go-datastore", "deploy_versioning": true }, + { "target": "ipfs/go-datastore" }, { "target": "ipfs/go-detect-race" }, { "target": "ipfs/go-dnslink" }, - { "target": "ipfs/go-ds-badger", "deploy_versioning": true }, + { "target": "ipfs/go-ds-badger" }, { "target": "ipfs/go-ds-badger2" }, { "target": "ipfs/go-ds-bitcask" }, { "target": "ipfs/go-ds-crdt" }, - { "target": "ipfs/go-ds-flatfs", "deploy_versioning": true }, - { "target": "ipfs/go-ds-leveldb", "deploy_versioning": true }, - { "target": "ipfs/go-ds-measure", "deploy_versioning": true }, + { "target": "ipfs/go-ds-flatfs" }, + { "target": "ipfs/go-ds-leveldb" }, + { "target": "ipfs/go-ds-measure" }, { "target": "ipfs/go-ds-pebble" }, { "target": "ipfs/go-ds-redis" }, { "target": "ipfs/go-ds-s3" }, { "target": "ipfs/go-ds-sql" }, - { "target": "ipfs/go-fetcher", "deploy_versioning": true }, - { "target": "ipfs/go-filestore", "deploy_versioning": true }, + { "target": "ipfs/go-fetcher" }, + { "target": "ipfs/go-filestore" }, { "target": "ipfs/go-fs-lock" }, - { "target": "ipfs/go-graphsync", "deploy_versioning": true }, + { "target": "ipfs/go-graphsync" }, { "target": "ipfs/go-ipfs-api" }, - { "target": "ipfs/go-ipfs-blockstore", "deploy_versioning": true }, + { "target": "ipfs/go-ipfs-blockstore" }, { "target": "ipfs/go-ipfs-blocksutil" }, { "target": "ipfs/go-ipfs-chunker" }, { "target": "ipfs/go-ipfs-cmds" }, - { "target": "ipfs/go-ipfs-config", "deploy_versioning": true }, + { "target": "ipfs/go-ipfs-config" }, { "target": "ipfs/go-ipfs-delay" }, - { "target": "ipfs/go-ipfs-ds-help", "deploy_versioning": true }, + { "target": "ipfs/go-ipfs-ds-help" }, { "target": "ipfs/go-ipfs-example-plugin" }, - { "target": "ipfs/go-ipfs-exchange-interface", "deploy_versioning": true }, - { "target": "ipfs/go-ipfs-exchange-offline", "deploy_versioning": true }, + { "target": "ipfs/go-ipfs-exchange-interface" }, + { "target": "ipfs/go-ipfs-exchange-offline" }, { "target": "ipfs/go-ipfs-files" }, { "target": "ipfs/go-ipfs-http-client" }, { "target": "ipfs/go-ipfs-keystore" }, - { "target": "ipfs/go-ipfs-pinner", "deploy_versioning": true }, + { "target": "ipfs/go-ipfs-pinner" }, { "target": "ipfs/go-ipfs-posinfo" }, { "target": "ipfs/go-ipfs-pq" }, - { "target": "ipfs/go-ipfs-provider", "deploy_versioning": true }, - { "target": "ipfs/go-ipfs-routing", "deploy_versioning": true }, + { "target": "ipfs/go-ipfs-provider" }, + { "target": "ipfs/go-ipfs-routing" }, { "target": "ipfs/go-ipfs-util" }, { "target": "ipfs/go-ipld-cbor" }, { "target": "ipfs/go-ipld-format" }, { "target": "ipfs/go-ipld-git" }, { "target": "ipfs/go-ipld-legacy" }, - { "target": "ipfs/go-ipns", "deploy_versioning": true }, + { "target": "ipfs/go-ipns" }, { "target": "ipfs/go-log" }, - { "target": "ipfs/go-merkledag", "deploy_versioning": true }, + { "target": "ipfs/go-merkledag" }, { "target": "ipfs/go-metrics-interface" }, { "target": "ipfs/go-metrics-prometheus" }, - { "target": "ipfs/go-mfs", "deploy_versioning": true }, - { "target": "ipfs/go-namesys", "deploy_versioning": true }, - { "target": "ipfs/go-path", "deploy_versioning": true }, + { "target": "ipfs/go-mfs" }, + { "target": "ipfs/go-namesys" }, + { "target": "ipfs/go-path" }, { "target": "ipfs/go-peertaskqueue" }, { "target": "ipfs/go-qringbuf" }, { "target": "ipfs/go-todocounter" }, - { "target": "ipfs/go-unixfs", "deploy_versioning": true }, - { "target": "ipfs/go-unixfsnode", "deploy_versioning": true }, + { "target": "ipfs/go-unixfs" }, + { "target": "ipfs/go-unixfsnode" }, { "target": "ipfs/go-verifcid" }, { "target": "ipfs/hang-fds" }, { "target": "ipfs/http-api-docs" }, - { "target": "ipfs/interface-go-ipfs-core", "deploy_versioning": true }, + { "target": "ipfs/interface-go-ipfs-core" }, { "target": "ipfs/ipfs-ds-convert" }, { "target": "ipfs/ipfs-update" }, { "target": "ipfs/ipget" }, { "target": "ipfs/iptb" }, { "target": "ipfs/iptb-plugins" }, { "target": "ipfs/pinbot-irc" }, - { "target": "ipfs/tar-utils", "deploy_versioning": true }, + { "target": "ipfs/tar-utils" }, { "target": "ipld/codec-fixtures" }, - { "target": "ipld/go-car", "deploy_versioning": true }, + { "target": "ipld/go-car" }, { "target": "ipld/go-codec-dagpb" }, { "target": "ipld/go-ipld-adl-hamt" }, { "target": "ipld/go-ipld-btc" }, @@ -109,43 +109,43 @@ { "target": "libp2p/go-doh-resolver" }, { "target": "libp2p/go-eventbus" }, { "target": "libp2p/go-flow-metrics" }, - { "target": "libp2p/go-libp2p", "deploy_versioning": true }, + { "target": "libp2p/go-libp2p" }, { "target": "libp2p/go-libp2p-asn-util" }, - { "target": "libp2p/go-libp2p-autonat", "deploy_versioning": true }, + { "target": "libp2p/go-libp2p-autonat" }, { "target": "libp2p/go-libp2p-backoff" }, { "target": "libp2p/go-libp2p-blankhost" }, - { "target": "libp2p/go-libp2p-circuit", "deploy_versioning": true }, + { "target": "libp2p/go-libp2p-circuit" }, { "target": "libp2p/go-libp2p-connmgr" }, { "target": "libp2p/go-libp2p-consensus" }, - { "target": "libp2p/go-libp2p-core", "deploy_versioning": true }, + { "target": "libp2p/go-libp2p-core" }, { "target": "libp2p/go-libp2p-daemon" }, - { "target": "libp2p/go-libp2p-discovery", "deploy_versioning": true }, + { "target": "libp2p/go-libp2p-discovery" }, { "target": "libp2p/go-libp2p-gorpc" }, - { "target": "libp2p/go-libp2p-gostream", "deploy_versioning": true }, - { "target": "libp2p/go-libp2p-http", "deploy_versioning": true }, + { "target": "libp2p/go-libp2p-gostream" }, + { "target": "libp2p/go-libp2p-http" }, { "target": "libp2p/go-libp2p-introspector" }, - { "target": "libp2p/go-libp2p-kad-dht", "deploy_versioning": true }, - { "target": "libp2p/go-libp2p-kbucket", "deploy_versioning": true }, + { "target": "libp2p/go-libp2p-kad-dht" }, + { "target": "libp2p/go-libp2p-kbucket" }, { "target": "libp2p/go-libp2p-loggables" }, { "target": "libp2p/go-libp2p-mplex" }, { "target": "libp2p/go-libp2p-nat" }, { "target": "libp2p/go-libp2p-netutil" }, - { "target": "libp2p/go-libp2p-noise", "deploy_versioning": true }, - { "target": "libp2p/go-libp2p-peerstore", "deploy_versioning": true }, + { "target": "libp2p/go-libp2p-noise" }, + { "target": "libp2p/go-libp2p-peerstore" }, { "target": "libp2p/go-libp2p-pnet" }, - { "target": "libp2p/go-libp2p-pubsub-router", "deploy_versioning": true }, + { "target": "libp2p/go-libp2p-pubsub-router" }, { "target": "libp2p/go-libp2p-pubsub-tracer" }, - { "target": "libp2p/go-libp2p-quic-transport", "deploy_versioning": true }, + { "target": "libp2p/go-libp2p-quic-transport" }, { "target": "libp2p/go-libp2p-raft" }, { "target": "libp2p/go-libp2p-record" }, { "target": "libp2p/go-libp2p-relay-daemon" }, { "target": "libp2p/go-libp2p-routing-helpers" }, - { "target": "libp2p/go-libp2p-swarm", "deploy_versioning": true }, - { "target": "libp2p/go-libp2p-testing", "deploy_versioning": true }, - { "target": "libp2p/go-libp2p-tls", "deploy_versioning": true }, - { "target": "libp2p/go-libp2p-transport-upgrader", "deploy_versioning": true }, + { "target": "libp2p/go-libp2p-swarm" }, + { "target": "libp2p/go-libp2p-testing" }, + { "target": "libp2p/go-libp2p-tls" }, + { "target": "libp2p/go-libp2p-transport-upgrader" }, { "target": "libp2p/go-libp2p-webrtc-direct" }, - { "target": "libp2p/go-libp2p-xor", "deploy_versioning": true }, + { "target": "libp2p/go-libp2p-xor" }, { "target": "libp2p/go-libp2p-yamux" }, { "target": "libp2p/go-mplex" }, { "target": "libp2p/go-msgio" }, @@ -159,7 +159,7 @@ { "target": "libp2p/go-sockaddr" }, { "target": "libp2p/go-socket-activation" }, { "target": "libp2p/go-stream-muxer-multistream" }, - { "target": "libp2p/go-tcp-transport", "deploy_versioning": true }, + { "target": "libp2p/go-tcp-transport" }, { "target": "libp2p/go-ws-transport" }, { "target": "libp2p/go-yamux" }, { "target": "libp2p/hydra-booster" }, @@ -172,7 +172,7 @@ { "target": "multiformats/go-multiaddr-fmt" }, { "target": "multiformats/go-multibase" }, { "target": "multiformats/go-multicodec" }, - { "target": "multiformats/go-multihash", "deploy_versioning": true }, + { "target": "multiformats/go-multihash" }, { "target": "multiformats/go-multistream" }, { "target": "multiformats/go-varint" }, { "target": "multiformats/ma-pipe" }