Skip to content

Commit

Permalink
test ci
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyShorokhov committed Jun 18, 2024
1 parent bd5a1fb commit 4e74487
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ jobs:
build:
name: "Build"
runs-on: ubuntu-latest
outputs:
COMMIT_SHA: ${{ steps.declare_sha.outputs.COMMIT_SHA }}
SEMVER: ${{ steps.declare_sha.outputs.SEMVER }}
steps:
- name: Checkout
uses: actions/[email protected]
Expand All @@ -41,7 +38,16 @@ jobs:
run: |
SHA=$(git rev-parse --short HEAD)
echo "COMMIT_SHA=$SHA" >> $GITHUB_OUTPUT
echo "SEMVER=${{ steps.semver_parser.outputs.fullversion }}" >> $GITHUB_OUTPUT
echo "SEMVER_PATCH=${{ steps.semver_parser.outputs.patch }}.${{ steps.semver_parser.outputs.prerelease }}" >> $GITHUB_OUTPUT
- name: Use parsed semver
run: |
echo "-- ${{ steps.semver_parser.outputs.major }}"
echo "-- ${{ steps.semver_parser.outputs.minor }}"
echo "-- ${{ steps.semver_parser.outputs.patch }}"
echo "-- ${{ steps.semver_parser.outputs.prerelease }}"
echo "-- ${{ steps.semver_parser.outputs.build }}"
echo "-- ${{ steps.semver_parser.outputs.fullversion }}"
- name: Setup latest ReAPI includes
env:
Expand All @@ -68,14 +74,14 @@ jobs:
github.event.action == 'published' &&
startsWith(github.ref, 'refs/tags/')
env:
PLUGIN_VERSION: "${{ steps.declare_sha.outputs.SEMVER }}"
run: sed -i "s|%VERSION%|$PLUGIN_VERSION|g" redm_version.inc
PLUGIN_VERSION: "${{ steps.declare_sha.outputs.SEMVER_PATCH }}"
run: sed -i "s|manual|$PLUGIN_VERSION|g" redm_version.inc

- name: Update versions for plugins (only for artifacts builds)
working-directory: cstrike/addons/amxmodx/scripting/include/
env:
PLUGIN_VERSION: "${{ steps.declare_sha.outputs.COMMIT_SHA }}"
run: sed -i "s|%VERSION%|$PLUGIN_VERSION|g" redm_version.inc
run: sed -i "s|manual|$PLUGIN_VERSION|g" redm_version.inc

- name: Setup AMXXPawn Compiler
uses: wopox1337/[email protected]
Expand Down

0 comments on commit 4e74487

Please sign in to comment.