Skip to content

Commit

Permalink
NGSTACK-886 update checkout action version
Browse files Browse the repository at this point in the history
  • Loading branch information
vesnacustic committed Oct 28, 2024
1 parent ca6848b commit 947c6d2
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 6 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/callable-flex-update-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Update Flex endpoint

on:
workflow_call:
inputs:
branch:
default: symfony-skeleton-test
required: false
type: string

jobs:
flex-update:
name: Update Flex endpoint
runs-on: Ubuntu-20.04

steps:
-
name: Checkout
uses: actions/checkout@v4
id: checkout
with:
fetch-depth: 0

-
name: Install tools
run: |
git config --global user.email "[email protected]"
git config --global user.name "Netgen Bot"
cd .github
wget -q -O recipes-checker.zip https://codeload.github.com/symfony-tools/recipes-checker/zip/refs/heads/main
unzip recipes-checker.zip
cd recipes-checker-main
composer install --ansi --no-dev
-
name: Update Flex endpoint
run: |
mkdir .github/flex-endpoint
git ls-tree HEAD */*/* | php .github/recipes-checker-main/run generate:flex-endpoint ${{ github.repository }} symfony-skeleton-test flex-test .github/flex-endpoint
git switch flex-test
git rm -q *.json
mv .github/flex-endpoint/*.json .
git add *.json
git commit -m 'Update Flex endpoint' || true
git push origin -f flex-test
10 changes: 5 additions & 5 deletions .github/workflows/callable-flex-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_call:
inputs:
branch:
default: symfony-skeleton-test
default: master
required: false
type: string

Expand All @@ -16,7 +16,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
id: checkout
with:
fetch-depth: 0
Expand All @@ -35,10 +35,10 @@ jobs:
name: Update Flex endpoint
run: |
mkdir .github/flex-endpoint
git ls-tree HEAD */*/* | php .github/recipes-checker-main/run generate:flex-endpoint ${{ github.repository }} symfony-skeleton-test flex-test .github/flex-endpoint
git switch flex-test
git ls-tree HEAD */*/* | php .github/recipes-checker-main/run generate:flex-endpoint ${{ github.repository }} master flex .github/flex-endpoint
git switch flex
git rm -q *.json
mv .github/flex-endpoint/*.json .
git add *.json
git commit -m 'Update Flex endpoint' || true
git push origin -f flex-test
git push origin -f flex
2 changes: 1 addition & 1 deletion .github/workflows/flex-update-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ defaults:

jobs:
call-flex-update:
uses: netgen/recipes/.github/workflows/callable-flex-update.yml@symfony-skeleton-test
uses: netgen/recipes/.github/workflows/callable-flex-update-test.yml@symfony-skeleton-test

0 comments on commit 947c6d2

Please sign in to comment.