diff --git a/.github/steps.yml b/.github/steps.yml deleted file mode 100644 index 86e8ceda..00000000 --- a/.github/steps.yml +++ /dev/null @@ -1,12 +0,0 @@ -name: STEPS - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - id: generate-number - run: echo "number=$RANDOM" >> $GITHUB_ENV - - - id: use-number - run: echo "The number is ${{ env.number }}" \ No newline at end of file diff --git a/.github/workflows/steps.yml b/.github/workflows/steps.yml new file mode 100644 index 00000000..63e46ea8 --- /dev/null +++ b/.github/workflows/steps.yml @@ -0,0 +1,20 @@ +name: steps + +on: + push: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Generate number + id: generate-number + run: echo "number=$RANDOM" >> $GITHUB_OUTPUT + + - name: Use number + id: use-number + run: echo "The number is ${{ steps.generate-number.outputs.number }}" \ No newline at end of file