|
|
@@ -19,6 +19,8 @@ jobs:
|
|
|
- name: Retrieve information from package.json
|
|
|
uses: myrotvorets/info-from-package-json-action@1.1.0
|
|
|
id: package-json
|
|
|
+ with:
|
|
|
+ workingDir: packages/slackbot-proxy
|
|
|
|
|
|
- name: Docker meta
|
|
|
id: meta
|
|
|
@@ -78,6 +80,13 @@ jobs:
|
|
|
rm -rf /tmp/.buildx-cache
|
|
|
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
|
|
|
|
|
|
+ - name: Add tag
|
|
|
+ uses: anothrNick/github-tag-action@1.36.0
|
|
|
+ env:
|
|
|
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
+ CUSTOM_TAG: v${{ steps.package-json.outputs.packageVersion }}
|
|
|
+ VERBOSE : true
|
|
|
+
|
|
|
- name: Update Docker Hub Description
|
|
|
uses: peter-evans/dockerhub-description@v2
|
|
|
with:
|
|
|
@@ -85,3 +94,52 @@ jobs:
|
|
|
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
|
|
|
repository: weseek/growi-slackbot-proxy
|
|
|
readme-filepath: ./packages/slackbot-proxy/docker/README.md
|
|
|
+
|
|
|
+
|
|
|
+ create-pr-for-next-rc:
|
|
|
+ needs: build-and-push-image
|
|
|
+
|
|
|
+ runs-on: ubuntu-latest
|
|
|
+
|
|
|
+ steps:
|
|
|
+ - uses: actions/checkout@v2
|
|
|
+ with:
|
|
|
+ ref: ${{ github.event.pull_request.base.ref }}
|
|
|
+
|
|
|
+ - uses: actions/setup-node@v2
|
|
|
+ with:
|
|
|
+ node-version: '14'
|
|
|
+ cache: 'yarn'
|
|
|
+ cache-dependency-path: '**/yarn.lock'
|
|
|
+
|
|
|
+ - name: Install dependencies
|
|
|
+ run: |
|
|
|
+ npx lerna bootstrap
|
|
|
+
|
|
|
+ - name: Bump versions for next RC
|
|
|
+ run: |
|
|
|
+ node ./bin/github-actions/bump-versions -i prerelease -d packages/slackbot-proxy --preid slackbot-proxy --update-dependencies false
|
|
|
+
|
|
|
+ - name: Retrieve information from package.json
|
|
|
+ uses: myrotvorets/info-from-package-json-action@1.1.0
|
|
|
+ id: package-json
|
|
|
+ with:
|
|
|
+ workingDir: packages/slackbot
|
|
|
+
|
|
|
+ - name: Commit
|
|
|
+ uses: github-actions-x/commit@v2.8
|
|
|
+ with:
|
|
|
+ github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
+ push-branch: support/prepare-v${{ steps.package-json.outputs.packageVersion }}
|
|
|
+ commit-message: 'Bump version'
|
|
|
+ name: GitHub Action
|
|
|
+
|
|
|
+ - name: Create PR
|
|
|
+ uses: repo-sync/pull-request@v2
|
|
|
+ with:
|
|
|
+ source_branch: support/prepare-v${{ steps.package-json.outputs.packageVersion }}
|
|
|
+ destination_branch: master
|
|
|
+ pr_title: Prepare v${{ steps.package-json.outputs.packageVersion }}
|
|
|
+ pr_label: exclude from changelog
|
|
|
+ pr_body: "An automated PR generated by ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}"
|
|
|
+ github_token: ${{ secrets.GITHUB_TOKEN }}
|