From 9cdcfd1499c894900d4c8677fe867ff44d729f5f Mon Sep 17 00:00:00 2001 From: Facebook GitHub Bot Date: Thu, 21 May 2026 11:33:05 -0700 Subject: [PATCH] Re-sync with internal repository The internal and external repositories are out of sync. This Pull Request attempts to brings them back in sync by patching the GitHub repository. Please carefully review this patch. You must disable ShipIt for your project in order to merge this pull request. DO NOT IMPORT this pull request. Instead, merge it directly on GitHub using the MERGE BUTTON. Re-enable ShipIt after merging. fbshipit-source-id: f33249e69ca993e25579bfe17145829c5a0003b8 --- .github/workflows/TagIt.yml | 73 +++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 .github/workflows/TagIt.yml diff --git a/.github/workflows/TagIt.yml b/.github/workflows/TagIt.yml new file mode 100644 index 0000000000..6d0b485e4a --- /dev/null +++ b/.github/workflows/TagIt.yml @@ -0,0 +1,73 @@ +on: + push: + tags: + # Only match TagIt tags, which always start with this prefix + - 'v20*' + +name: TagIt + +permissions: + contents: read + +jobs: + build: + permissions: + contents: write # for actions/create-release to create a release + name: Release + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v6 + - name: Archive project + id: archive_project + run: | + FILE_NAME=${GITHUB_REPOSITORY#*/}-${GITHUB_REF##*/} + git archive ${{ github.ref }} -o ${FILE_NAME}.zip + git archive ${{ github.ref }} -o ${FILE_NAME}.tar.gz + echo "file_name=${FILE_NAME}" >> $GITHUB_OUTPUT + - name: Compute digests + id: compute_digests + run: | + echo "tgz_256=$(openssl dgst -sha256 ${{ steps.archive_project.outputs.file_name }}.tar.gz)" >> $GITHUB_OUTPUT + echo "tgz_512=$(openssl dgst -sha512 ${{ steps.archive_project.outputs.file_name }}.tar.gz)" >> $GITHUB_OUTPUT + echo "zip_256=$(openssl dgst -sha256 ${{ steps.archive_project.outputs.file_name }}.zip)" >> $GITHUB_OUTPUT + echo "zip_512=$(openssl dgst -sha512 ${{ steps.archive_project.outputs.file_name }}.zip)" >> $GITHUB_OUTPUT + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: ${{ github.ref }} + body: | + Automated release from TagIt +
+ File Hashes + +
+ draft: false + prerelease: false + - name: Upload zip + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./${{ steps.archive_project.outputs.file_name }}.zip + asset_name: ${{ steps.archive_project.outputs.file_name }}.zip + asset_content_type: application/zip + - name: Upload tar.gz + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./${{ steps.archive_project.outputs.file_name }}.tar.gz + asset_name: ${{ steps.archive_project.outputs.file_name }}.tar.gz + asset_content_type: application/gzip