diff --git a/.github/workflows/commands-handler.yml b/.github/workflows/commands-handler.yml new file mode 100644 index 0000000..51f8668 --- /dev/null +++ b/.github/workflows/commands-handler.yml @@ -0,0 +1,44 @@ +name: Commands processor + +on: + issue_comment: + types: [created] +defaults: + run: + shell: bash + +jobs: + process: + name: Process command + if: github.event.issue.pull_request && endsWith(github.repository, '-private') != true + runs-on: + group: organization/Default + steps: + - name: Check referred user + id: user-check + env: + CLEN_BOT: ${{ secrets.CLEN_BOT }} + run: echo "expected-user=${{ startsWith(github.event.comment.body, format('@{0} ', env.CLEN_BOT)) }}" >> $GITHUB_OUTPUT + - name: Regular comment + if: steps.user-check.outputs.expected-user != 'true' + run: echo -e "\033[38;2;19;181;255mThis is regular commit which should be ignored.\033[0m" + - name: Checkout repository + if: steps.user-check.outputs.expected-user == 'true' + uses: actions/checkout@v4 + with: + token: ${{ secrets.GH_TOKEN }} + - name: Checkout release actions + if: steps.user-check.outputs.expected-user == 'true' + uses: actions/checkout@v4 + with: + repository: pubnub/client-engineering-deployment-tools + ref: v1 + token: ${{ secrets.GH_TOKEN }} + path: .github/.release/actions + - name: Process changelog entries + if: steps.user-check.outputs.expected-user == 'true' + uses: ./.github/.release/actions/actions/commands + with: + token: ${{ secrets.GH_TOKEN }} + listener: ${{ secrets.CLEN_BOT }} + jira-api-key: ${{ secrets.JIRA_API_KEY }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..57643b3 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,59 @@ +name: Automated product release + +on: + pull_request: + branches: [master] + types: [closed] + +jobs: + check-release: + name: Check release required + if: github.event.pull_request.merged && endsWith(github.repository, '-private') != true + runs-on: + group: organization/Default + outputs: + release: ${{ steps.check.outputs.ready }} + steps: + - name: Checkout actions + uses: actions/checkout@v4 + with: + repository: pubnub/client-engineering-deployment-tools + ref: v1 + token: ${{ secrets.GH_TOKEN }} + path: .github/.release/actions + - name: Check pre-release completed + id: check + uses: ./.github/.release/actions/actions/checks/release + with: + token: ${{ secrets.GH_TOKEN }} + publish: + name: Publish package + needs: check-release + if: needs.check-release.outputs.release == 'true' + runs-on: + group: organization/Default + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + # This should be the same as the one specified for on.pull_request.branches + ref: master + token: ${{ secrets.GH_TOKEN }} + - name: Checkout actions + uses: actions/checkout@v4 + with: + repository: pubnub/client-engineering-deployment-tools + ref: v1 + token: ${{ secrets.GH_TOKEN }} + path: .github/.release/actions + - name: Create Release + uses: ./.github/.release/actions/actions/services/github-release + with: + token: ${{ secrets.GH_TOKEN }} + jira-api-key: ${{ secrets.JIRA_API_KEY }} + last-service: true + - name: Upload test reports + uses: ./.github/.release/actions/actions/test-reports/upload + with: + token: ${{ secrets.GH_TOKEN }} + acceptance-tests-workflow: Tests diff --git a/.github/workflows/release/versions.json b/.github/workflows/release/versions.json new file mode 100644 index 0000000..cfbb882 --- /dev/null +++ b/.github/workflows/release/versions.json @@ -0,0 +1,10 @@ +{ + ".pubnub.yml": [ + { "pattern": "^version: \"(.+)\"$", "cleared": true }, + { "pattern": "\/releases\/tag\/v([0-9]+\\.[0-9]+\\.[0-9]+(\\.[0-9]+)?)", "cleared": true } + ], + "PubnubLibrary.uplugin": [ + { "pattern": "\"VersionName\": \"(.+)\",$", "cleared": true }, + { "pattern": "\"Version\": ([0-9]+),", "cleared": true } + ] +} diff --git a/.pubnub.yml b/.pubnub.yml index 64c9f5d..dc5e3a1 100644 --- a/.pubnub.yml +++ b/.pubnub.yml @@ -1,8 +1,13 @@ name: unreal-engine -version: 0.1.0 +version: 0.2.3 schema: 1 scm: github.com/pubnub/unreal-engine changelog: + - date: 2024-11-28 + version: 0.2.3 + changes: + - type: bug + text: "Fix incorrect memberships input object Json checks" - date: 2024-11-25 version: 0.2.2 changes: