diff --git a/.gitattributes b/.gitattributes index a3feebc2..e6433892 100644 --- a/.gitattributes +++ b/.gitattributes @@ -6,7 +6,6 @@ /.github/pull_request_template.md linguist-generated /.github/workflows/build.yml linguist-generated /.github/workflows/release.yml linguist-generated -/.github/workflows/upgrade-master.yml linguist-generated /.github/workflows/upgrade-projen-master.yml linguist-generated /.gitignore linguist-generated /.npmignore linguist-generated diff --git a/.github/workflows/upgrade-master.yml b/.github/workflows/upgrade-master.yml deleted file mode 100644 index ea309dac..00000000 --- a/.github/workflows/upgrade-master.yml +++ /dev/null @@ -1,90 +0,0 @@ -# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". - -name: upgrade-master -on: - workflow_dispatch: {} - schedule: - - cron: 0 0 * * 1 -jobs: - upgrade: - name: Upgrade - runs-on: ubuntu-latest - permissions: - contents: read - outputs: - patch_created: ${{ steps.create_patch.outputs.patch_created }} - steps: - - name: Checkout - uses: actions/checkout@v3 - with: - ref: master - - name: Setup Node.js - uses: actions/setup-node@v3 - with: - node-version: 18.x - - name: Install dependencies - run: yarn install --check-files --frozen-lockfile - - name: Upgrade dependencies - run: npx projen upgrade - - name: Find mutations - id: create_patch - run: |- - git add . - git diff --staged --patch --exit-code > .repo.patch || echo "patch_created=true" >> $GITHUB_OUTPUT - - name: Upload patch - if: steps.create_patch.outputs.patch_created - uses: actions/upload-artifact@v3 - with: - name: .repo.patch - path: .repo.patch - pr: - name: Create Pull Request - needs: upgrade - runs-on: ubuntu-latest - permissions: - contents: read - if: ${{ needs.upgrade.outputs.patch_created }} - steps: - - name: Checkout - uses: actions/checkout@v3 - with: - ref: master - - name: Download patch - uses: actions/download-artifact@v3 - with: - name: .repo.patch - path: ${{ runner.temp }} - - name: Apply patch - run: '[ -s ${{ runner.temp }}/.repo.patch ] && git apply ${{ runner.temp }}/.repo.patch || echo "Empty patch. Skipping."' - - name: Set git identity - run: |- - git config user.name "github-actions" - git config user.email "github-actions@github.com" - - name: Create Pull Request - id: create-pr - uses: peter-evans/create-pull-request@v4 - with: - token: ${{ secrets.PROJEN_GITHUB_TOKEN }} - commit-message: |- - chore(deps): upgrade dependencies - - Upgrades project dependencies. See details in [workflow run]. - - [Workflow Run]: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} - - ------ - - *Automatically created by projen via the "upgrade-master" workflow* - branch: github-actions/upgrade-master - title: "chore(deps): upgrade dependencies" - body: |- - Upgrades project dependencies. See details in [workflow run]. - - [Workflow Run]: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} - - ------ - - *Automatically created by projen via the "upgrade-master" workflow* - author: github-actions - committer: github-actions - signoff: true diff --git a/.gitignore b/.gitignore index 46b0f385..69e837ac 100644 --- a/.gitignore +++ b/.gitignore @@ -37,7 +37,6 @@ junit.xml /dist/changelog.md /dist/version.txt !/.github/workflows/release.yml -!/.github/workflows/upgrade-master.yml !/.github/pull_request_template.md !/test/ !/tsconfig.dev.json diff --git a/.projen/files.json b/.projen/files.json index 1bf9bddf..f264d813 100644 --- a/.projen/files.json +++ b/.projen/files.json @@ -5,7 +5,6 @@ ".github/pull_request_template.md", ".github/workflows/build.yml", ".github/workflows/release.yml", - ".github/workflows/upgrade-master.yml", ".github/workflows/upgrade-projen-master.yml", ".gitignore", ".projen/deps.json",