From 6ed2cfad4adefaa02b3240b53d9f3a99fcfc7425 Mon Sep 17 00:00:00 2001 From: Manuel Mena Date: Tue, 14 Jun 2022 14:29:21 -0300 Subject: [PATCH] chore: add release action and pr title validation (#33) --- .github/dependabot.yml | 10 ++++++++++ .github/workflows/release.yml | 21 +++++++++++++++++++++ .github/workflows/validate-pr-title.yml | 9 +++++++++ 3 files changed, 40 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/release.yml create mode 100644 .github/workflows/validate-pr-title.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..2700ff5 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,10 @@ +version: 2 +updates: +- package-ecosystem: npm + directory: "/" + schedule: + interval: weekly + day: monday + time: "09:00" + timezone: "America/Buenos_Aires" + open-pull-requests-limit: 10 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..8ab01fa --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,21 @@ +name: 'release' +on: + workflow_dispatch: + inputs: + dry_run: + description: dry run + type: boolean + required: false + default: false + schedule: + - cron: '30 13 * * 6' # Every Saturday at 13:30 UTC +jobs: + release: + runs-on: ubuntu-latest + permissions: write-all + steps: + - uses: decentraland/gh-action-release@0.3.2 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + dry_run: ${{ github.event.inputs.dry_run }} + repository: ${{ github.repository }} diff --git a/.github/workflows/validate-pr-title.yml b/.github/workflows/validate-pr-title.yml new file mode 100644 index 0000000..bbb21e9 --- /dev/null +++ b/.github/workflows/validate-pr-title.yml @@ -0,0 +1,9 @@ +name: validate-pr-title + +on: + pull_request: + types: [edited, opened, reopened, synchronize] + +jobs: + title-matches-convention: + uses: decentraland/actions/.github/workflows/validate-pr-title.yml@main