📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-07-03 19:53:47
📂
/ (Root)
/
home
/
orkouolp
/
web
/
testing.orkobd
/
laravel
/
vendor
/
fakerphp
/
faker
/
.github
/
workflows
📍 /home/orkouolp/web/testing.orkobd/laravel/vendor/fakerphp/faker/.github/workflows
🔄 Refresh
✏️
Editing: branch-alias.yaml
Writable
name: "Update branch alias" on: # yamllint disable-line rule:truthy push: tags: ["*"] jobs: branch-alias: name: "Update branch alias" runs-on: "ubuntu-latest" steps: - name: "Set up PHP" uses: "shivammathur/setup-php@v2" with: php-version: "7.4" coverage: "none" - name: "Checkout code" uses: "actions/checkout@v4" with: ref: "main" - name: "Find branch alias" id: "find_alias" run: | TAG=$(echo $GITHUB_REF | cut -d'/' -f 3) echo "Last tag was $TAG" ARR=(${TAG//./ }) ARR[1]=$((${ARR[1]}+1)) echo "name=alias::${ARR[0]}.${ARR[1]}" >> $GITHUB_OUTPUT - name: "Update branch alias" run: | CURRENT_ALIAS=$(composer config extra.branch-alias.dev-main | cut -d'-' -f 1) # If there is a current value on the branch alias if [ ! -z $CURRENT_ALIAS ]; then NEW_ALIAS=${{ steps.find_alias.outputs.alias }} CURRENT_ARR=(${CURRENT_ALIAS//./ }) NEW_ARR=(${NEW_ALIAS//./ }) if [ ${CURRENT_ARR[0]} -gt ${NEW_ARR[0]} ]; then echo "The current value for major version is larger" exit 1; fi if [ ${CURRENT_ARR[0]} -eq ${NEW_ARR[0]} ] && [ ${CURRENT_ARR[1]} -gt ${NEW_ARR[1]} ]; then echo "The current value for minor version is larger" exit 1; fi fi composer config extra.branch-alias.dev-main ${{ steps.find_alias.outputs.alias }}-dev - name: "Create Pull Request" uses: "peter-evans/create-pull-request@v5" with: base: "main" branch: "branch-alias-update" author: "GitHub <noreply@github.com>" committer: "GitHub <noreply@github.com>" commit-message: "Updating branch alias to ${{ steps.find_alias.outputs.alias }}" title: "Update branch alias" labels: "pinned, do not merge" body: | Since we just tagged a new version, we need to update composer.json branch alias. This should not be merged until there are new features, as it would prevent patch releases.
💾 Save Changes
❌ Cancel