diff --git a/.github/workflows/hello.yml b/.github/workflows/hello.yml new file mode 100644 index 0000000..a1ff283 --- /dev/null +++ b/.github/workflows/hello.yml @@ -0,0 +1,10 @@ +name: Hello + +on: [push] + +jobs: + say-hello: + runs-on: ubuntu-latest + steps: + - name: Say hello + run: echo "hello" diff --git a/.github/workflows/secret.yml b/.github/workflows/secret.yml new file mode 100644 index 0000000..b654a04 --- /dev/null +++ b/.github/workflows/secret.yml @@ -0,0 +1,13 @@ +name: Use Secret Token +on: [push] +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Use secret in env + run: echo "The secret is $MY_SECRET_TOKEN" + env: + MY_SECRET_TOKEN: ${{ secrets.MY_SECRET_TOKEN }}