diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml index 17bc71e8..8c139c7b 100644 --- a/.github/dependabot.yaml +++ b/.github/dependabot.yaml @@ -1,9 +1,5 @@ version: 2 updates: -- package-ecosystem: "pip" - directory: "/" - schedule: - interval: "weekly" - package-ecosystem: "github-actions" directory: "/" schedule: diff --git a/.github/workflows/merge-dev.yml b/.github/workflows/merge-dev.yml deleted file mode 100644 index d1834b96..00000000 --- a/.github/workflows/merge-dev.yml +++ /dev/null @@ -1,60 +0,0 @@ -name: Merge into develop branch - - -on: - push: - branches: - - dev - - -jobs: - prepare: - name: Calculate Version and Build Number - runs-on: ubuntu-20.04 - - outputs: - version: ${{ steps.version.outputs.value }} - - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Find Latest Tag - id: latest_tag - uses: oprypin/find-latest-tag@v1.1.0 - with: - repository: ${{ github.repository }} - regex: '^\d+\.\d+\.\d+' - releases-only: false - - - name: Extract semantic version - id: semantic - run: echo "value=$(echo ${{ steps.latest_tag.outputs.tag }} | sed -r 's|([0-9]+.[0-9]+.[0-9]+).*|\1|g')" >> $GITHUB_OUTPUT - - - name: Computed Semantic Version - run: echo ${{ steps.semantic.outputs.value }} - - - name: Count number or releases for tag - id: build_number - run: echo "value=$(($(git tag | grep -c ${{ steps.semantic.outputs.value }}.pre) + 1))" >> $GITHUB_OUTPUT - - - name: Compute version - id: version - run: echo "value=${{ steps.semantic.outputs.value }}.pre${{ steps.build_number.outputs.value }}" >> $GITHUB_OUTPUT - - - prerelease-tag: - name: Create Prerelease Tag - runs-on: ubuntu-20.04 - - needs: - - prepare - - steps: - - uses: simpleactions/create-tag@v1.0.0 - env: - GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} - with: - tag: ${{ needs.prepare.outputs.version }} - message: ${{ github.event.head_commit.message }} diff --git a/.github/workflows/merge-master.yml b/.github/workflows/merge-master.yml deleted file mode 100644 index cbcd90f9..00000000 --- a/.github/workflows/merge-master.yml +++ /dev/null @@ -1,84 +0,0 @@ -name: Merge into master branch - - -on: - push: - branches: - - master - - -jobs: - prepare: - name: Calculate Version and Build Number - runs-on: ubuntu-20.04 - - outputs: - build_number: ${{ steps.build_number.outputs.value }} - new_release: ${{ steps.semantic.outputs.new_release_published }} - release: v${{ steps.semantic.outputs.new_release_version }} - release_notes: ${{ steps.semantic.outputs.new_release_notes }} - version: v${{ steps.version.outputs.value }} - - steps: - - uses: actions/checkout@v3 - with: - token: ${{ secrets.ACCESS_TOKEN }} - - - uses: cycjimmy/semantic-release-action@v2 - id: semantic - env: - GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} - with: - branch: master - dry_run: true - - - name: Count number or releases for tag - id: build_number - run: echo "value=$(($(git tag | grep -c ${{ steps.semantic.outputs.new_release_version }}.rc) + 1))" >> $GITHUB_OUTPUT - run: echo "::set-output name=value::$(($(git tag | grep -c ${{ steps.semantic.outputs.new_release_version }}.rc) + 1))" - - - name: Compute version - id: version - run: echo "value=${{ steps.semantic.outputs.new_release_version }}.pre${{ steps.build_number.outputs.value }}" >> $GITHUB_OUTPUT - - prerelease-tag: - if: needs.prepare.outputs.new_release == 'true' - - name: Create Prerelease Tag - runs-on: ubuntu-20.04 - - needs: - - prepare - - steps: - - uses: simpleactions/create-tag@v1.0.0 - env: - GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} - with: - tag: ${{ needs.prepare.outputs.version }} - message: ${{ github.event.head_commit.message }} - - draft-release: - if: needs.prepare.outputs.new_release == 'true' - - name: Draft Release - runs-on: ubuntu-20.04 - - needs: - - prepare - - steps: - - name: Delete Previous drafts - uses: hugo19941994/delete-draft-releases@v1.0.0 - env: - GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} - - - name: Create Draft Release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} - with: - tag_name: ${{ needs.prepare.outputs.release }} - release_name: ${{ needs.prepare.outputs.release }} - body: ${{ needs.prepare.outputs.release_notes }} - draft: true diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index ca3bf1d9..d098627b 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -2,6 +2,7 @@ name: pull request on: pull_request: + branches: [ master ] jobs: validate: