diff --git a/.github/workflows/debug.yml b/.github/workflows/debug.yml new file mode 100644 index 0000000..728436c --- /dev/null +++ b/.github/workflows/debug.yml @@ -0,0 +1,38 @@ +name: Worflow for Debugging +on: workflow_dispatch +permissions: + contents: read + actions: read +jobs: + creating-artefacts: + runs-on: ubuntu-latest + steps: + - name: Create test file + run: echo "This is a test file." > test.txt + - name: Upload artifacts + uses: actions/upload-artifact@v4 + with: + name: logs + path: test.txt + configuring-enviroment-variables: + runs-on: ubuntu-latest + needs: creating-artefacts + steps: + - name: Set 2 environment variables + run: | + echo ACTIONS_RUNNER_DEBUG=${{ vars.ACTIONS_RUNNER_DEBUG }} + echo ACTIONS_STEP_DEBUG=${{ vars.ACTIONS_STEP_DEBUG }} + configuring-step-summary: + runs-on: ubuntu-latest + steps: + - name: Set step summary + run: echo "This is a log about the step summary" >> $GITHUB_STEP_SUMMARY + - name: Set other step summary + run: echo "This is other log about the step summary" >> $GITHUB_STEP_SUMMARY + adding-logs-by-step: + runs-on: ubuntu-latest + steps: + - name: Add logs by step + run: | + echo "This is a log about the step" + echo "This is another log about the step"