From a41c601a70fb950a2aab3d487ef474a2d5e57dd7 Mon Sep 17 00:00:00 2001 From: Valentin Matton Date: Tue, 16 Apr 2024 18:39:38 +0200 Subject: [PATCH] wip --- .github/workflows/foo.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/foo.yml diff --git a/.github/workflows/foo.yml b/.github/workflows/foo.yml new file mode 100644 index 000000000..bc32755a9 --- /dev/null +++ b/.github/workflows/foo.yml @@ -0,0 +1,24 @@ +name: foo + +on: + pull_request: + branches: [main] + + +jobs: + foo: + runs-on: ubuntu-latest + env: + FOO: ${{ secrets.FOO }} + + environment: prod + + steps: + - run: | + echo "$FOO" | while IFS='=' read -r key value; do + echo "::add-mask::$value" + echo "$key=$value" >> "$GITHUB_ENV" + done + - run: | + env +