mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-20 10:02:29 +00:00
[ci] use simple push
This commit is contained in:
parent
f73a76ff0d
commit
5e3006182e
37
.github/workflows/build_scoped_rector.yaml
vendored
37
.github/workflows/build_scoped_rector.yaml
vendored
|
@ -58,33 +58,22 @@ jobs:
|
|||
|
||||
# 6. publish it to remote repository without tag
|
||||
-
|
||||
uses: symplify/github-action-monorepo-split@1.1
|
||||
name: "Commit Prefixed - main"
|
||||
working-directory: rector-prefixed-downgraded
|
||||
if: "!startsWith(github.ref, 'refs/tags/')"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
||||
with:
|
||||
package-directory: 'rector-prefixed-downgraded'
|
||||
split-repository-organization: 'rectorphp'
|
||||
split-repository-name: 'rector-prefixed'
|
||||
user-name: "kaizen-ci"
|
||||
user-email: "info@kaizen-ci.org"
|
||||
|
||||
# get the tag
|
||||
-
|
||||
id: tag_value
|
||||
run: |
|
||||
echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/}
|
||||
git add .
|
||||
git commit -m "Updated Rector to commit ${{ github.event.after }}" -m "${{ steps.git-log.outputs.log }}"
|
||||
git push --quiet origin main
|
||||
|
||||
# 7. publish it to remote repository with tag
|
||||
-
|
||||
uses: symplify/github-action-monorepo-split@1.1
|
||||
name: "Commit Prefixed - tag"
|
||||
working-directory: rector-prefixed-downgraded
|
||||
if: "startsWith(github.ref, 'refs/tags/')"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
||||
with:
|
||||
package-directory: 'rector-prefixed-downgraded'
|
||||
split-repository-organization: 'rectorphp'
|
||||
split-repository-name: 'rector-prefixed'
|
||||
tag: ${{ steps.tag_value.outputs.SOURCE_TAG }}
|
||||
user-name: "kaizen-ci"
|
||||
user-email: "info@kaizen-ci.org"
|
||||
run: |
|
||||
git add .
|
||||
git commit -m "Rector ${GITHUB_REF#refs/tags/}" -m "${{ steps.git-log.outputs.log }}"
|
||||
git push --quiet origin main
|
||||
git tag ${GITHUB_REF#refs/tags/} -m "${GITHUB_REF#refs/tags/}"
|
||||
git push --quiet origin ${GITHUB_REF#refs/tags/}
|
||||
|
|
Loading…
Reference in New Issue
Block a user